The idea is to extend the current set of languages with (some) possible dialects, which are used for subs/dubs.
example:
de_AT for Austrian
de_CH for Swiss
pt_BR for Brasilian Portuguese
en_UK for British English
en_US ...
en for general English
(en_HKDVD might be considered as well )
Each of these locales should then be added as a separate entry in the language-selection (with its own flag-icon).
That way there would be some cleanup in the way languages are handled.
-------------------------------------------------------------------------------
How to implement:
1) If the language-table is already using some lang-identifier-string, then make it locale-conform, otherwise add it.
2) (the fun part) add new locales with the corresponding flags
3) display the languages as follows in the dropdown (don't show id to the user):
Code: Select all
...
english
id=en
english (uk)
id=en_UK
english (us)
id=en_US
english (jm)
id=en_JM
...
german
id=de
german (at)
id=de_AT
german (ch)
id=de_AT
german (de) <-- might be left out, as it's the main locale
id=de_DE
...
portuguese
id=pt
portuguese (br)
id=pt_BR
....
list of possible suffixes (country-codes)
It should not be very difficult to implement this.
------------------------------------------------------------------------------
By using this system we would be quite flexible and somewhat standard-conform. I think it's a clean and beatiful solution to the 'Brasilian is not an idependant language' and the 'why is the flag british'-problem as well (both were discussed here).