Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[RFC] Normalization and new metadata for languages (international_name and native_name) #11924

Conversation

andrepereiradasilva
Copy link
Contributor

@andrepereiradasilva andrepereiradasilva commented Sep 4, 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.

@joomla-cms-bot joomla-cms-bot added Language Change This is for Translators PR-staging labels Sep 4, 2016
@jeckodevelopment
Copy link
Member

Portuguese (European)

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

( don't know native german :) )

If i remember well it should be "Schweiz"

@andrepereiradasilva
Copy link
Contributor Author

andrepereiradasilva commented Sep 4, 2016

@jeckodevelopment those are just examples

And BTW i'm portuguese ;)

@infograf768
Copy link
Member

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"

@andrepereiradasilva
Copy link
Contributor Author

andrepereiradasilva commented Sep 4, 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.

@infograf768
Copy link
Member

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...

@andrepereiradasilva
Copy link
Contributor Author

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

@infograf768
Copy link
Member

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

@andrepereiradasilva
Copy link
Contributor Author

andrepereiradasilva commented Sep 4, 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

@infograf768
Copy link
Member

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.

@andrepereiradasilva
Copy link
Contributor Author

closing as it seems no interrest in this

@andrepereiradasilva andrepereiradasilva deleted the new-metadata-for-languages branch September 5, 2016 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants