Language based installation description

假装没事ソ 提交于 2019-12-12 10:53:25

问题


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.

When I install the component, the description appears as COM_PROJECTS_DESC

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.

Any help would be much apreciated.

Regards


回答1:


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



来源:https://stackoverflow.com/questions/11601867/language-based-installation-description

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!