Groups
Groups
Sign in
Groups
Groups
Joomla! General Development
Conversations
About
Send feedback
Help
Use English Language as Default in JText
44 views
Skip to first unread message
Soheil Novinfard
unread,
Apr 23, 2013, 8:49:00 AM
4/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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 AM
4/23/13
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
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