基于语言的安装描述 [英] Language based installation description

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

问题描述

众所周知,一旦您在 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>

奇怪的是,第一次安装时描述不起作用,但是如果我在它上面安装组件(升级)然后它就起作用了.

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.

非常感谢任何帮助.

问候

推荐答案

您可以通过 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天全站免登陆