Joomla! 2.5语言文件-翻译说明 [英] Joomla! 2.5 language file - translate description
问题描述
我为joomla 2.5创建了一个新插件,并在xml中使用:
I create a new plugin for joomla 2.5, and in xml i use:
<description>PLG_VAR_DESC</description>
但是在安装时,他不显示翻译,而是显示文件中的var.
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..
谢谢
推荐答案
在Joomla的管理员面板下!您可以在站点"全局配置"系统"下找到
Under the administrator panel in Joomla! you can find under Site - Global configuration - System:
这将使您能够看到Joomla!调试控制台:
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">
代替
<languages folder="">
Joomla也供您参考!关于语言文件的规范" 的文档可能是一本好书.
Also for your reference, the Joomla! documentation on "Specification of language files" may be a good read.
这篇关于Joomla! 2.5语言文件-翻译说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!