? ? ? Success

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
4 Sep 2016

Summary of Changes

While dealing with #11867 it became clear to me the names of the languages extensions/packages need some normallization.

If you install all language packages you will notice there isn't really little normallization of this, which difficults any automation process needed to done in the core and also IMHO is not good for UX.

A language have a lot of xml files, and all of this have names for the language, example for english:

So this proposal is to start normalizing all language packages (starting with english en-GB here).

Keep in mind this is an effort to normalize and only a proposal, and i could be missign something, any contribution to this discussion is appreciated.

So what are the changes proposed?

What i propose is the following:

  1. All xx-XX.xml and install.xml xml name element would get the same value, i.e. the language in english following the language code, in english would be English (en-GB).

  2. The installation/site/admin xx-XX.xml metadata-> name element would get the same value as above.

  3. The pkg_xx-XX.xml name element would get the same value as above + Language Package, in english would be English (en-GB) Language Package.

  4. Two new metadata elements would be created in the xx-XX.xml files: native_name and international_name

    • international_name: in english would be English (United Kingdom)
    • native_name: in english would be English (United Kingdom)

So we would have 3 names for each language, some examples:

Name International Name Native Name
English (en-GB) English (United Kingdom) English (United Kingdom)
Portuguese (pt-PT) Portuguese (Portugal) Português Europeu
Portuguese (pt-BR) Portuguese (Brazilian) Português do Brasil
Arabic (ar-AA) Arabic (Unitag) اللغة العربية بالكود الموحد
German (de-DE) German (Germany) don't know native german :)
German (de-CH) German (Switzerland) don't know native german :)
Sinhala (si-LK) Sinhala (Sri Lanka) සිංහල (ශ්‍රී ලංකාව)

Testing Instructions

Code review.

Documentation Changes Required

The documentation on creating language packages would need to be updated.
Translation Coordenation Team would have to agree and transmit this normalization and new metada to language package translation coordenation.

avatar andrepereiradasilva andrepereiradasilva - open - 4 Sep 2016
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2016
Category Language & Strings Administration Installation
avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2016
Labels Added: ? ?
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar joomla-cms-bot joomla-cms-bot - change - 4 Sep 2016
Labels Added: ?
avatar jeckodevelopment
jeckodevelopment - comment - 4 Sep 2016

Portuguese (European)

should it be "Portugal" instead of "European" ?

( don't know native german :) )

If i remember well it should be "Schweiz"

avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Sep 2016

@jeckodevelopment those are just examples

And BTW i'm portuguese ;)

avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 4 Sep 2016
The description was changed
avatar infograf768
infograf768 - comment - 4 Sep 2016

This would be a new feature.
Some thoughts:

The name used in the install.xml is never used and is indifferent. No absolute need to normalize.

The name used in the Installation xx-XX.xml can include the native translation because it is easier for people speaking only this language to choose it in the dropdown when installing. This is why we have for example:
<name>Arabic Unitag (العربية الموحدة)</name> or <name>Bulgarian (Български)</name> or <name>Japanese 日本語 (Japan)</name> or <name>Khmer ភាសាខ្មែរ (Cambodia)</name>
This was decided already some time ago and I see no reason to change this.

I do not understand what you mean with international_name. I think adding the pure native name in the future is a good idea.

Note: the German is Deutsch ?
from
INSTL_DEFAULTLANGUAGE_NATIVE_LANGUAGE_NAME="Deutsch"

avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Sep 2016

The name used in the install.xml is never used and is indifferent. No absolute need to normalize.

IMO makes life easier for everyone if normalized.

The name used in the Installation xx-XX.xml can include the native translation because it is easier for people speaking only this language to choose it in the dropdown when installing. This is why we have for example:

That can easily be done by programming with the metadata i proposed and mainting the consistency of the metadata files across clients (installation/site/admin),

I do not understand what you mean with international_name. I think adding the pure native name in the future is a good idea.

The international name is a long name without language tags, more easy to understand for regular users. This could be used as title for the content languages when autommaticly created.

avatar infograf768
infograf768 - comment - 4 Sep 2016

That can easily be done by programming with the metadata i proposed and mainting the consistency of the metadata files across clients (installation/site/admin),

So, you would get 2 lines in the dropdown for each language? Otherwise I don't see how...

avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Sep 2016

for instance, $metadata->international_name . ' | ' . $metadata->native_name or something like this

avatar infograf768
infograf768 - comment - 4 Sep 2016

I am not convinced, except for the native name which can indeed be used in the future.

avatar andrepereiradasilva
andrepereiradasilva - comment - 4 Sep 2016

after dealing with the PR to create the content languages to me is clear that this should be normalized.

made a gif (click it to view in full screen) to show the lack of consistency in the languages. Just installed all languages and went to the backend languages menus
languages

avatar infograf768
infograf768 - comment - 5 Sep 2016

for instance, $metadata->international_name . ' | ' . $metadata->native_name or something like this

As I said, all languages would now be displayed with 2 lines in Joomla installation: here just changed for en-GB
screen shot 2016-09-05 at 09 04 33

This does not make sense imho.

avatar andrepereiradasilva andrepereiradasilva - change - 5 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 5 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 5 Sep 2016
The description was changed
avatar andrepereiradasilva
andrepereiradasilva - comment - 5 Sep 2016

closing as it seems no interrest in this

avatar andrepereiradasilva andrepereiradasilva - change - 5 Sep 2016
Status Pending Closed
Closed_Date 0000-00-00 00:00:00 2016-09-05 21:35:27
Closed_By andrepereiradasilva

Add a Comment

Login with GitHub to post a comment