Joomla! 2.5 language file - translate description

2019-08-08 08:44发布

问题:

I create a new plugin for joomla 2.5, and in xml i use:

<description>PLG_VAR_DESC</description> 

But when install, he dont show the the translation but the var on file.

<languages folder="">
  <language tag="en-GB">en-GB.plg_system_name.ini</language>
  <language tag="en-GB">en-GB.plg_system_name.sys.ini</language>
</languages>
<files>
   <folder>images</folder>
   <filename>index.html</filename>
   <filename>parameters.xml</filename>
   <filename plugin="plg_name">plg_name.php</filename>
</files>

I try everything but i cant put this work..

Thanks

回答1:

Under the administrator panel in Joomla! you can find under Site - Global configuration - System:

This will allow you to see the Joomla! Debug console:

There you can see if the language file your are using is loaded. If it's not loaded, than your manifest file is not consistent.

I think that the problem could be solved with:

<languages folder="admin">

instead of

<languages folder="">

Also for your reference, the Joomla! documentation on "Specification of language files" may be a good read.



回答2:

I found the problem.. is the name of language file. Thank's for helping me