Joomla v1.5 插件sys.ini 语言文件 [英] Joomla v1.5 plugin sys.ini language file
问题描述
是否可以将 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?
您的帮助将不胜感激.
推荐答案
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.
要检查的其他一些事项:
A few other things to check:
- XML 中的描述与语言文件中的描述相匹配.
- 描述区域的语言文件开头的每一行都以井号
#
开头,而不是;
- XML 指向正确位置的语言文件.
如果您已检查所有这些,请为 .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屋!