Joomla v1.5插件sys.ini语言文件 [英] Joomla v1.5 plugin sys.ini language file

查看:79
本文介绍了Joomla v1.5插件sys.ini语言文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否可以将sys.ini语言文件用于Joomla v1.5插件?我想在插件安装过程中使用它.因为在安装过程中无法访问默认语言ini文件.因此,安装管理器仅输出语言键常量,例如PLG_MY_PLUGIN_DESCRIPTION.在Joomla v1.5开发人员手册中,我没有发现任何暗示.因此,我猜想sys.ini文件仅适用于组件?

Is it possible to use sys.ini language file for Joomla v1.5 plugin? I want to use it during plugin install. Because default language ini file is not accessible during installation process. So install manager outputs only language key constants like PLG_MY_PLUGIN_DESCRIPTION. I haven't found any hint about it in Joomla v1.5 developer manuals. So I guess sys.ini files work only with components?

您的帮助将不胜感激.

Your help would be appreciated.

推荐答案

Joomla 1.5无法读取.sys.ini语言文件.只有Joomla 1.6及更高版本可以使用. 如果打开调试工具(站点" >>全局配置" >>系统"),它将显示是否正在加载语言文件.

Joomla 1.5 does not read .sys.ini language files. Only Joomla 1.6 and above do. If you turn on the debug tool (Site>>Global Congiguration>>System) then it will show you if the language file is being loaded.

要检查的其他几件事:

  1. XML中的描述与语言文件中的描述相匹配.
  2. 描述区域的语言文件开头的每一行都以哈希标签#而不是;
  3. 开头
  4. XML指向正确位置的语言文件.
  1. The description in the XML matches the one in the language file.
  2. Each line at the beginning of the language file for the description area starts with a hash tag # rather than ;
  3. The XML points to the language file in the correct location.

如果已全部选中,请为.XML.INI文件发布一些代码.

If you have checked all of these then please post some code for the .XML and .INI files.

致谢

这篇关于Joomla v1.5插件sys.ini语言文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆