Joomla! 2.5 language file - translate description

江枫思渺然 提交于 2019-12-11 10:30:37

问题


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



来源:https://stackoverflow.com/questions/13844746/joomla-2-5-language-file-translate-description

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!