joomla-projects / com_localise

forked version of the original com_localise for experimental purposes
GNU General Public License v2.0
24 stars 36 forks source link

Adding new metadata to prepare for 3.7. #313

Closed infograf768 closed 8 years ago

infograf768 commented 8 years ago

In 3.7, we will get 2 new metadata in the xx-XX.xml files. nativeName and calendar

In installation, only one:

<metadata>
        <name>French (FR)</name>
        <nativeName>Français (France)</nativeName>
        <tag>fr-FR</tag>
        <rtl>0</rtl>
    </metadata>

for admin and site, both

<metadata>
        <name>French (FR)</name>
        <nativeName>Français (France)</nativeName>
        <tag>fr-FR</tag>
        <rtl>0</rtl>
        <locale>fr_FR.utf8, fr_FR.UTF-8, fr_FR.UTF-8@euro, fr_FR, fre_FR, fr, france</locale>
        <firstDay>0</firstDay>
        <weekEnd>0,6</weekEnd>
        <calendar>gregorian</calendar>
    </metadata>

This patch lets use com_localise on both <3.7 and >=3.7, presenting the new fields only when the J version is >=3.7.

To test, edit const RELEASE in /libraries/cms/version/version.php

I also separated the Metadata values in the Edit page.

Example for < 3.7 screen shot 2016-10-25 at 09 54 23

and for >=3.7

screen shot 2016-10-25 at 09 56 05

infograf768 commented 8 years ago

@Valc Thanks for testing.