Beat, this is the response given by Geraint, one of the Joomfish developers
I suspect the problem could be elsewhere...
Re: Possible bug with 1.5.3 language strings
Postby Geraint on Fri Jun 20, 2008 3:24 pm
1. The following code is Joomla core and not Joomfish
Code: Select all
$lang =& JFactory::getLanguage();
$x = $lang->getBackwardLang();
2. On my server it returns "english" and not "en-GB" which is what you want I believe.
3. The backwards compatible language value is directly loaded by Joomla code (not Joomfish) from the language xml metadata file - for en-GB.xml this string is "english". Joomfish does not go anywhere near this value in native or legacy mode
4. The Joomla class JLanguage never returns the meta data by reference and has no methods to write it apart from reading it from the xml files.
5. A grep of all Joomfish source files will not find a single reference to the JLanguage meta data field.
In summary Joomfish is not your problem. If your installation is returning "en-GB" instead of "english" then I suspect some other component/plugin is making this change.
Geraint