Program language menu in Configuration window is not correctly sorted

Bug #1090722 reported by Nicolas Martignoni
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
Stellarium
Fix Released
Low
Nicolas Martignoni

Bug Description

Steps to reproduce:
1. Launch Stellarium (stable 0.11.4 or dev 0.12.x)
2. Open Configuration window (F2)
3. In "Main" tab, under "Program language", observe that some menu items begin with a lowercase character and are incorrectly displayed after all items beginning with an uppercase char. E.g. the items "español" and "français" begin with a lowercase and are not correctly sorted after "Esperanto", as they should.

Origin of the bug:

In file "iso639-1.utf8" in data directory, some language names don't begin with an uppercase char, and the routine parsing these names does not normalize case of these strings.

Possible fixes:

a. Normalize case of language name strings in the routine StelTranslator::initIso639_1LanguageCodes
b. Fix case of language names in file "iso639-1.utf8"

Related branches

Revision history for this message
Nicolas Martignoni (nicolas-martignoni) wrote :

Added file iso639-1.utf8 correcting the problems discribed

Revision history for this message
Alexander Wolf (alexwolf) wrote :

This fix is wrong because part native names of languages begin with a lowercase chars.

http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes

Revision history for this message
Nicolas Martignoni (nicolas-martignoni) wrote :

Not sure. The list of native names in http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes is obviously (partially) wrong, e.g. français should be Français. I suspect this list is not at all accurate.

And unfortunately, official ISO 639-2 doesn't give official native spelling of languages: http://www.loc.gov/standards/iso639-2/php/code_list.php

Anyway, how do you suggest we can fix this?

(As a french speaker, I would like at least to see Français with a correct spelling and capitalization ;-))

Revision history for this message
Nicolas Martignoni (nicolas-martignoni) wrote :

I just checked for some languages and it appears indeed that the list of http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes isn't accurate at all.

Some examples quickly found:

Afaraf should be Qafár af (http://en.wikipedia.org/wiki/Afar_language)
aragonès should be Aragonés (http://an.wikipedia.org/wiki/Idioma_aragonès)
авар мацӀ should be Авар мацӀ (http://en.wikipedia.org/wiki/Avar_language)
avestan should be Avestan (http://en.wikipedia.org/wiki/Avestan_language)
...

Revision history for this message
Alexander Wolf (alexwolf) wrote :
Revision history for this message
Alexander Wolf (alexwolf) wrote :
Revision history for this message
Nicolas Martignoni (nicolas-martignoni) wrote :

Obviously, there are a lot of errors (or capitalisation inconsistencies) in these lists. I exhaustively parsed the native Wikipedia pages (when existing) of all languages listed in our file and this shows a lot of inconsistencies and errors in the different sources. As a translator, I beg to know pretty well my own language and can tell you with certainty that in such situations we always capitalize the first letter of menus.

As a solution, I'll suggest to go with Wikipedia names of languages, which are at least consistent and correctly sorted. If you'll decide do go this way, here's another patch for file iso639-1.utf8. This patch fixes other errors in the file.

If you don't want to change the file, we have to correct this messy menu with another solution: fix sorting of language name strings in the routine StelTranslator::initIso639_1LanguageCodes.

Revision history for this message
Alexander Wolf (alexwolf) wrote :
Changed in stellarium:
milestone: none → 0.12.0
assignee: nobody → Nicolas Martignoni (nicolas-martignoni)
importance: Undecided → Low
status: New → Fix Committed
Revision history for this message
Adriano Steffler (adrianosteffler) wrote :

This fix reverted the changes from the Bug #815859.

Revision history for this message
Alexander Wolf (alexwolf) wrote :

Thanks for note - fixed!

Changed in stellarium:
status: Fix Committed → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.