Language problem with plugin - Joomla! Forum - community, help and support


hi, i've got problem getting language files work in plugin. plugin works fine, strings show up. how correct that?

here's set (only relevant bits):

code: select all

my_plugin.xml
<?xml version="1.0" encoding="utf-8"?>
<extension type="plugin" version="2.5" group="system" method="upgrade">
<name>system - my_plugin</name>
<files folder="site">
    <filename plugin="my_plugin">my_plugin.php</filename>
    <folder>my_plugin</folder>
    <folder>language</folder>
    <filename>index.html</filename>
  </files>

language
en-gb
en-gb/en-gb.plg_system_my_plugin.ini
en-gb/en-gb.plg_system_my_plugin.sys.ini


that should work, doesn't. did forget anything?

plugin language files should installed administrator/language/ folder. there's tag language files:

code: select all

<languages>
 <language tag="en-gb">en-gb.plg_system_my_plugin.sys.ini</language>
 <language tag="en-gb">en-gb.plg_system_my_plugin.ini</language>
</languages>


don't forget add folder path language files or move them out of folder. it's this:

code: select all

<languages folder="site/language/en-gb">





Comments

Popular posts from this blog

Falang and too many redirects - Joomla! Forum - community, help and support

Infinite loop detected in JErrorInfinite loop detected in JError - Joomla! Forum - community, help and support

logged out from joomla! - Joomla! Forum - community, help and support