Currently I'm developing, respectively upgrading my first J1.5 system plugin, adding multi language support. Unfortunately the languages are not loaded at the back end's plugin interface and I only can see the LANGUAGE_PLACEHOLDERS I definded at the plugin's manifest file.
Here are the steps I was going through:
1. Created the folder "language" at the plugin's root directory and stored the
(?:en-GB|de-DE|da-DK).plg_system_myplugin.ini in there.
2. Created an entry at the manifest file as follows.
Code: Select all
<languages folder="language">
<language tag="en-GB">en-GB.plg_system_myplugin.ini</language>
<language tag="de-DE">de-DE.plg_system_myplugin.ini</language>
<language tag="da-DK">da-DK.plg_system_myplugin.ini</language>
</languages>
Code: Select all
<param name="core" type="radio" default="0" label="CORE_LABEL" description="CORE_DESCRIPTION">
<option value="1">ENABLE</option>
<option value="0">DISABLE</option>
</param>
The languages are installed correctly and after installation they can be found under ~/administrator/language/de-DE/......
For testing purposes I used the following code at my ~/plugins/system/plg_system_myplugin.php in order to check if the language strings are set properly.
Code: Select all
$lang =& JFactory::getLanguage();
die(print_r($lang));
Code: Select all
$lang->_paths['plg_system_debug'] => Array
(
[/path/to/joomla/administrator/language/de-DE/de-DE.plg_system_myplugin.ini] => 1
)
System is: Joomla! 1.5.8 (tested on 1.5.7 also)
Could please nudge me someone to the right direction? I can't see the wood for the trees right now.
Thank you very much in advance.
Best Regards
Uwe