? ? ? Pending

User tests: Successful: Unsuccessful:

avatar andrepereiradasilva
andrepereiradasilva
14 Sep 2016

Summary of Changes

  1. Add nativeName and calendar to language metadata xml.

This new nativeName metadata is the language title in the native language.
This should be added to all languages packages.

For consistence i added in the 3 language metadata xmls.

After this is merged it can be used in installation and when installing languages.

This new calendar metadata is the calendar type to be used in the new datapicker.
Example: gregorian, jalali

  1. Uniformized all en-GB language title to be:
  2. title: English (en-GB)
  3. native title: English (United Kingdom)

Testing Instructions

  1. Code review.
  2. Apply this patch, delete configuration.php, refresh page and install Joomla
  3. Check the english title is "English (en-GB)" and the native title is "English (United Kingdom)" in Extensions -> Languages -> Content Languages
  4. Check the english title is "English (en-GB)" in Extensions -> Languages -> Installed Languages in Both Site and Admin
  5. Check the names of the language extensions in Extensions -> Manage -> Manage (check language and package type)

Reggarding the unit test changes if they pass is ok.

Documentation Changes Required

Pages that indicate how to create a language package need to be updated.


@brianteeman please check if the English native title is correct.
@infograf768 @Bakual After this is merged this new var can be used in installation and when installing content languages.

avatar andrepereiradasilva andrepereiradasilva - open - 14 Sep 2016
avatar andrepereiradasilva andrepereiradasilva - change - 14 Sep 2016
Status New Pending
avatar joomla-cms-bot joomla-cms-bot - change - 14 Sep 2016
Labels Added: ? ?
avatar joomla-cms-bot joomla-cms-bot - change - 14 Sep 2016
Category Language & Strings Administration Installation
avatar brianteeman
brianteeman - comment - 14 Sep 2016

Fine by me. Some sources might say it should be great Britain not united kingdom but I don't really care

avatar andrepereiradasilva
andrepereiradasilva - comment - 14 Sep 2016

it should be great Britain not united kingdom but I don't really care

i actually add that doubt because en-GB means "English (Great Britain)", not "English (United Kingdom)" that, as you know better than i do, are different things.

avatar brianteeman
brianteeman - comment - 14 Sep 2016

I did look it up on the iso standards once to see what they said and it was
as clear as mud

avatar brianteeman
brianteeman - comment - 14 Sep 2016

We use GB as the two digit because UK is the Ukraine. But as the country
full name is The United Kingdom of Great Britain and Northern Ireland it is
best to write United Kingdom in this case

avatar andrepereiradasilva
andrepereiradasilva - comment - 14 Sep 2016

We use GB as the two digit because UK is the Ukraine. But as the country full name is The United Kingdom of Great Britain and Northern Ireland it is best to write United Kingdom in this case

yes just saw that right now in official iso codes page

UNITED KINGDOM OF GREAT BRITAIN AND NORTHERN IRELAND

https://www.iso.org/obp/ui/#iso:code:3166:GB

avatar Bakual
Bakual - comment - 14 Sep 2016

Can you use nativeName instead of native_name? Looks to be more consistent with other names in the XML.
Other than that I think it is a good move ?

avatar andrepereiradasilva
andrepereiradasilva - comment - 14 Sep 2016

yes we can will change

avatar joomla-cms-bot joomla-cms-bot - change - 14 Sep 2016
Labels Added: ?
avatar dgt41
dgt41 - comment - 14 Sep 2016

A list with all the native names exists here: https://github.com/dgt41/joomla-cms/blob/e17e53dcb8a764765c1d6b81933c5854b94d9a6a/plugins/editors/tinymce/helpers/tinymce.php
(If that would be somewhat helpful)

avatar Bakual
Bakual - comment - 14 Sep 2016

@dgt41 Unfortunately that doesn't help as it is not complete in the sense we need. Eg it has only one entry for "de" (no de-DE, de-CH, de-LI, de-AT, de-LU) and it is exactly where the current issue is coming from. ?

avatar andrepereiradasilva andrepereiradasilva - change - 14 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 14 Sep 2016
The description was changed
avatar andrepereiradasilva andrepereiradasilva - change - 14 Sep 2016
The description was changed
avatar Bakual
Bakual - comment - 14 Sep 2016

You're sure you want to mix all those codestyle and SQL stuff into this PR?
The first changes could have been merged by review alone, but now this becomes a regular PR which needs testing instructions and regular tests.

avatar andrepereiradasilva
andrepereiradasilva - comment - 14 Sep 2016

@Bakual i know, the problem is the unit tests ... because of the inconsistency of the language names across joomla (which is really annoying ....!) Every time i try to change something in language i got problems because in some place is "(en-GB)", other is "(UK)", others is "(United Kingdom)" ...

IMHO, if we are changing the native title to be "English (United Kingdom)" and the international name being "English (en-GB)" we need to reflect this across joomla (install sql, unit tests, xml files, etc).

Also had to make a series of changes to have valid unit tests.
Basicly added consistency to all language names across joomla and unit tests.

You're sure you want to mix all those codestyle and SQL stuff into this PR?
The first changes could have been merged by review alone, but now this becomes a regular PR which needs testing instructions and regular tests.

This will probably only be merged in 3.7.x so ... i see no issue with that.

The most important test continues to be a code review.
More tests i will write them after.

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

updated test instruction in the PR description.

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

@andrepereiradasilva
If this goes in (OK for me for 3.7), let's also add the new metadata proposed for the new calendar at the same time.
#11138

avatar andrepereiradasilva
andrepereiradasilva - comment - 16 Sep 2016

just tell what is the metadata needed and if @dgt41 agrees i can add in this PR too, or we can wait for this one to get tested and eventually merged in 3.7.x branch and then add the calendar metadata.

avatar infograf768
infograf768 - comment - 16 Sep 2016

The new metadata is
<calendar>jalali</calendar>
or
<calendar>gregorian</calendar>
for now (other calendars may be added in the future).

If not present it would use gregorian.

avatar andrepereiradasilva andrepereiradasilva - change - 16 Sep 2016
Title
[languages] Native language title
[languages] Organize and new metadata (Native language and calendar type)
avatar andrepereiradasilva andrepereiradasilva - change - 16 Sep 2016
The description was changed
avatar andrepereiradasilva
andrepereiradasilva - comment - 16 Sep 2016

ok added the calendar type to site and admin metadata xml. Didn't add it to install because i think it's not used there.

also updated PR description.

Please do a general code review and test.

avatar dgt41
dgt41 - comment - 16 Sep 2016

Didn't add it to install because i think it's not used there.

No problem, I did that on the other PR ? (for the shake of unification)

avatar infograf768
infograf768 - comment - 17 Sep 2016

Example: gregorian, javali

"jalali" ;)

avatar infograf768
infograf768 - comment - 17 Sep 2016

Please milestone to 3.7

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

"jalali" ;)

ehhehe corrected

avatar andrepereiradasilva
andrepereiradasilva - comment - 2 Oct 2016

ok now it will use the new nativeTitle (if exists) on language install to create the content language native title as it should be.

It will still fallback to the install language variable (that should then be removed in 4.0).

avatar zero-24 zero-24 - change - 3 Oct 2016
Labels Added: ?
Removed: ?
avatar zero-24 zero-24 - test_item - 3 Oct 2016 - Tested successfully
avatar zero-24
zero-24 - comment - 3 Oct 2016

I have tested this item successfully on d3e9986

?


This comment was created with the J!Tracker Application at issues.joomla.org/joomla-cms/12036.

avatar brianteeman brianteeman - test_item - 9 Oct 2016 - Tested successfully
avatar brianteeman
brianteeman - comment - 9 Oct 2016

I have tested this item successfully on d3e9986


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12036.

avatar brianteeman brianteeman - change - 9 Oct 2016
Status Pending Ready to Commit
Labels
avatar brianteeman
brianteeman - comment - 9 Oct 2016

RTC


This comment was created with the J!Tracker Application at issues.joomla.org/tracker/joomla-cms/12036.

avatar joomla-cms-bot joomla-cms-bot - change - 9 Oct 2016
Labels Added: ?
avatar rdeutz rdeutz - close - 11 Oct 2016
avatar rdeutz rdeutz - merge - 11 Oct 2016
avatar zero-24 zero-24 - close - 11 Oct 2016
avatar rdeutz rdeutz - change - 11 Oct 2016
Status Ready to Commit Fixed in Code Base
Closed_Date 0000-00-00 00:00:00 2016-10-11 19:44:55
Closed_By rdeutz
avatar zero-24 zero-24 - change - 11 Oct 2016
Labels Removed: ?

Add a Comment

Login with GitHub to post a comment