Comment 1 for bug 710148

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

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