Use English Language as Default in JText

44 views
Skip to first unread message

Soheil Novinfard

unread,
Apr 23, 2013, 8:49:00 AM4/23/13
to joomla-de...@googlegroups.com
Hello friends, 

I want to use English language as default in JText, if any string does not exist.

 Is there any library class for it?

Kind Regards,
Soheil

Bakual

unread,
Apr 23, 2013, 9:06:07 AM4/23/13
to joomla-de...@googlegroups.com
I use this code in my component.php file to get english as a fallback language:

// Load languages and merge with fallbacks
$jlang = JFactory::getLanguage();
$jlang->load('com_component', JPATH_COMPONENT, 'en-GB', true);
$jlang->load('com_component', JPATH_COMPONENT, null, true);
Reply all
Reply to author
Forward
0 new messages