The list of languages does not show some available languages consistently
Bug #710148 reported by
David Planella
This bug affects 1 person
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Ubuntu Translations |
Fix Released
|
High
|
Unassigned | ||
language-selector (Ubuntu) |
Fix Released
|
Undecided
|
Gunnar Hjalmarsson |
Bug Description
Binary package hint: language-selector
As part of the fix for bug 693337 I've noticed that the detection of available translations to be shown in the list is not correct at least in the Spanish case.
For example, I've got Spanish translations installed (but not used) in two systems. I've observed that:
* In one system "Spanish (Mexico)" and "Spanish (Puerto Rico)" are shown
* In the other system only "Spanish (Puerto Rico)" is shown
* In none of them is the main "Spanish" (or "Spanish (Spain)") translation shown for selection
Changed in ubuntu-translations: | |
status: | Triaged → Fix Released |
To post a comment you must log in.
Thanks for your early feedback!
language-selector scans the /usr/share/ locale- langpack and
/usr/share/locale directories. If all Spanish translations reside under
'es', language-selector shows the country independent "Spanish" item
only. If country specific Spanish translations are available (i.e.
'es_XX' directories exist), the country independent "Spanish" item is
_not_ shown. The issue reported in bug 700213 is the reason for 'hiding'
the "Spanish" item in the latter case.
Does that possibly explain the behavior you describe, David?
Another thing is whether the design logic makes sense. I think I took
for granted that in cases when country specific translations are
available, the main dialect ('es_ES' in this case) is one of them.
Apparently that assumption was a mistake.
To solve this bug, I think that the code should be modified, so that in
cases when country specific items are shown, the main dialect ('es_ES'
in this case) shall always be included, irrespective of whether there
are any translations under 'es_ES'.