Joomla! 2.5 language file - translate description

2019-08-08 08:42发布

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

2条回答
来,给爷笑一个
2楼-- · 2019-08-08 09:14

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

Joomla! Debug language

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

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.

查看更多
再贱就再见
3楼-- · 2019-08-08 09:16

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

查看更多
登录 后发表回答