Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Language based installation description

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>[email protected]</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

like image 558
Lodder Avatar asked Nov 14 '22 01:11

Lodder


1 Answers

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

like image 90
Mohammed Nagoor Avatar answered Dec 28 '22 09:12

Mohammed Nagoor