I have a a library inside
That library contains an
include.php which uses following to load language files that are also inside a
/language folder in the library:
$lang = JFactory::getLanguage(); // load english language file if some constants are not translated $lang->load('mylib', JPATH_SITE . '/libraries/mylib', 'en-GB', true); // load active language file $lang->load('mylib', JPATH_SITE . '/libraries/mylib', null, true);
My site uses the two languages German and English. The folders inside the library look like this:
Now to the problem.
German is setup as the the standard language inside Joomla. So if I run the site in german, the language files in the library get loaded correctly, as shown by the language debugger:
**Loaded** : JROOT/libraries/mylib/language/en-GB/en-GB.mylib.ini **Loaded** : JROOT/libraries/mylib/language/de-DE/de-DE.mylib.ini
If i switch the language to english the library languages don't get loaded anymore:
Not loaded : JROOT/language/en-GB/en-GB.mylib.ini
Looks like in english the whole library folder path gets lost...?
I checked everything like filenames, parsing errors, folders ans so on. No idea whats going on.
Maybe someone has an idea. Thanks!