基于语言的安装说明 [英] Language based installation description

查看:125
本文介绍了基于语言的安装说明的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

众所周知,一旦在Joomla后端中安装了扩展程序,就会显示说明.您可以从XML获得简单的描述,也可以具有基于语言的描述.过去,我从来没有遇到过基于语言的描述问题,但是这次我确实遇到了问题.该扩展程序是一个管理组件,没有前端文件夹,适用于Joomla 2.5.

As you all know, once you have installed an extension in the Joomla backend, the description shows. You can either have a plain description from the XML or have a language based one. I have never had problems in the past with language based descriptions however this time I do. The extension is a admin component and has no frontend folder and is for Joomla 2.5.

当我安装组件时,说明显示为COM_PROJECTS_DESC

When I install the component, the description appears as COM_PROJECTS_DESC

语言文件夹和文件位于正确的位置,XML显示为

The language folder and files are in the correct location and the XML shows as

<?xml version="1.0" encoding="utf-8"?>
<extension type="component" version="2.5.0" method="upgrade">
    <name>Projects</name>
    <author>JoomJunk</author>
    <creationDate>15th Jul 2012</creationDate>
    <copyright>Copyright (C) 2012 JoomJunk</copyright>
    <license>http://www.gnu.org/licenses/gpl-3.0.html</license>
    <authorEmail>admin@joomjunk.co.uk</authorEmail>
    <authorUrl>http://www.joomjunk.co.uk</authorUrl>
    <version>1.0.0</version>
    <description>COM_PROJECTS_DESC</description>

<administration>
    <menu img="components/com_projects/assets/images/cpanel_16.png">COM_PROJECT_TO_DO</menu>
    <files folder="admin">
        <filename>index.html</filename>
        <filename>controller.php</filename>
        <filename>helper.php</filename>
        <filename>projects.php</filename>
        <folder>views</folder>
        <folder>tables</folder>
        <folder>models</folder>
        <folder>controllers</folder>
        <folder>assets</folder>
    </files>
    <languages folder="admin">
            <language tag="en-GB">languages/en-GB/en-GB.com_projects.ini</language>
            <language tag="en-GB">languages/en-GB/en-GB.com_projects.sys.ini</language>
    </languages>
</administration>
</extension>

奇怪的是,该说明在首次安装时不起作用,但是如果我在其上安装coomponent(升级),那么它确实可以工作.

The odd thing is, the description doesnt work when installing for the first time, but if I install the coomponent over it (upgrade) then it does work.

我使用了语言调试工具,该语言文件似乎正在加载,因此我不确定是什么问题.我只遇到过专门针对管理后端的扩展,并且没有前端引用.

I have used the language debug tool the the language file seems to be loading so Im not sure what the problem is. I has only ever happend to me with extensions specifically for the admin backend and that have no frontend referrence.

任何帮助都会给人留下深刻的印象.

Any help would be much apreciated.

致谢

推荐答案

您可以显示可安装的描述文本,以及是否需要通过install.joomjunk.php安装任何示例值.

You can display the installable description text and if you need to install any sample values through install.joomjunk.php.

我认为此链接将对您有所帮助.

I think this link will be helpful for you.

http://docs.joomla.org/Using_the_installer_API_to_support_package_installation

这篇关于基于语言的安装说明的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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