? ?
avatar brianteeman
brianteeman
21 Feb 2016

where does the list of languages that can be installed come from?
I am asking because I notice that ALL the english language packs are just named English in the list of available languages that can be installed in the admin. (its not a problem in the installation as the names are in full there)
For example you only know one of the English languages is English (australian) if you look at the path in the Details URL column. fr-ca is listed as FrenchCA in the name field which is good but this isnt done for english.

I am assuming it is something in the language XML file but no idea where to look to propose a change

avatar brianteeman brianteeman - open - 21 Feb 2016
avatar brianteeman brianteeman - change - 21 Feb 2016
Labels
avatar richard67
richard67 - comment - 21 Feb 2016

I remember there was a discussion in one of @andrepereiradasilva 's PRs I helped with testing.

See this comment by @infograf768 and the comment just before that one.

It seems these texts come from the XMLs and may be decided by the Translation Teams.


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

avatar brianteeman
brianteeman - comment - 21 Feb 2016

If you look at the installation language files they do not have this
problem as they are correctly named in the XML file there. So this is not
the same issue as mentioned in your link it is simply a bug in the XML
files which I don't have access to in order to fix.
On 21 Feb 2016 11:44 am, "Richard Fath" notifications@github.com wrote:

I remember there was a discussion in one of @andrepereiradasilva
https://github.com/andrepereiradasilva 's PRs I helped with testing.

See this comment
#9101 (comment)
by @infograf768 https://github.com/infograf768 and the comment just
before that one
#9101 (comment).

It seems these texts come from the XMLs and may be decided by the

Translation Teams.

This comment was created with the J!Tracker Application
https://github.com/joomla/jissues at issues.joomla.org/joomla-cms/9187
https://issues.joomla.org/tracker/joomla-cms/9187.


Reply to this email directly or view it on GitHub
#9187 (comment).

avatar richard67
richard67 - comment - 21 Feb 2016

Ah, I see. Sorry for confusion.

avatar brianteeman
brianteeman - comment - 21 Feb 2016

What the language is called is up to the TT but it must be unique and they
must use the same name in the installation language and the main language
pack
On 21 Feb 2016 1:04 pm, "Richard Fath" notifications@github.com wrote:

Ah, I see. Sorry for confusion.


Reply to this email directly or view it on GitHub
#9187 (comment).

avatar mbabker
mbabker - comment - 21 Feb 2016

It's all done by script. https://github.com/joomla-projects/language-update-xml-generator/blob/master/translation_cron.php#L208 is the line in the cron file where the name gets processed for writing into the XML files. The package list is coming from http://joomlacode.org/gf/project/jtranslation3_x/frs/. The way it looks, someone just needs to rename the packages on JoomlaCode and the next time the cron runs after that it would all be fine.

avatar brianteeman
brianteeman - comment - 21 Feb 2016

I assumed something like that I just don't have the access to do it
On 21 Feb 2016 4:21 pm, "Michael Babker" notifications@github.com wrote:

It's all done by script.
https://github.com/joomla-projects/language-update-xml-generator/blob/master/translation_cron.php#L208
is the line in the cron file where the name gets processed for writing into
the XML files. The package list is coming from
http://joomlacode.org/gf/project/jtranslation3_x/frs/. The way it looks,
someone just needs to rename the packages on JoomlaCode and the next time
the cron runs after that it would all be fine.


Reply to this email directly or view it on GitHub
#9187 (comment).

avatar mbabker
mbabker - comment - 21 Feb 2016

Ironically the user account that the cron job runs under doesn't have manage privileges on that project's files. @infograf768 or @Bakual I'd assume would have that.

avatar brianteeman
brianteeman - comment - 21 Feb 2016

Using fr-ca as an example it's simply a case of renaming the package as the
script is ignoring the actual language name in the XML
On 21 Feb 2016 4:29 pm, "Michael Babker" notifications@github.com wrote:

Ironically the user account that the cron job runs under doesn't have
manage privileges on that project's files. @infograf768
https://github.com/infograf768 or @Bakual https://github.com/Bakual
I'd assume would have that.


Reply to this email directly or view it on GitHub
#9187 (comment).

avatar mbabker
mbabker - comment - 21 Feb 2016

The cron generating the update XMLs doesn't use the data inside the actual package, rather the package name in JoomlaCode and the file name to extract out all the required info.

avatar brianteeman
brianteeman - comment - 21 Feb 2016

Yeah that's what I meant. Weird that it's not consistent with the
installation languages
On 21 Feb 2016 4:48 pm, "Michael Babker" notifications@github.com wrote:

The cron generating the update XMLs doesn't use the data inside the actual
package, rather the package name in JoomlaCode and the file name to extract
out all the required info.


Reply to this email directly or view it on GitHub
#9187 (comment).

avatar infograf768
infograf768 - comment - 21 Feb 2016

in fact, i just have to change the project name on jomlacode with the jomlacode naming restrictions. will make test to see if it is b/c with en-au. at least to differentiate the english packs.

avatar brianteeman
brianteeman - comment - 21 Feb 2016

Thanks. I think the same as with fr-ca is better than nothing
On 21 Feb 2016 5:38 pm, "infograf768" notifications@github.com wrote:

in fact, i just have to change the project name on jomlacode with the
jomlacode naming restrictions. will make test to see if it is b/c with
en-au. at least to differentiate the english packs.


Reply to this email directly or view it on GitHub
#9187 (comment).

avatar infograf768
infograf768 - comment - 21 Feb 2016

No B/C issue, i.e. update went fine from older pack.
English AU already done.

Others done too, will be available in an hour or so.
Will be
English US
English CA
English AU

Also modified FrenchCA to French CA

avatar infograf768
infograf768 - comment - 21 Feb 2016

IMHO you can close.

avatar infograf768
infograf768 - comment - 21 Feb 2016

BTW, FYI
These names come from the Releases Names.
If I want to get French CA, I have to add an underscore before CA and then another underscore before the lang tag:
screen shot 2016-02-21 at 20 04 29

avatar brianteeman
brianteeman - comment - 21 Feb 2016

Thank you very much. Closing

avatar brianteeman brianteeman - change - 21 Feb 2016
Status New Closed
Closed_Date 0000-00-00 00:00:00 2016-02-21 19:29:07
Closed_By brianteeman
avatar brianteeman brianteeman - close - 21 Feb 2016

Add a Comment

Login with GitHub to post a comment