If you have an application localized in pt-br and pt-pt, what language you should choose if the syst
- by Sorin Sbarnea
If you have an application localized in pt-br and pt-pt, what language you should choose if the system is reporting only pt code (generic Portuguese)?
This question is independent of the nature of the application, desktop, mobile or browser based. Let's assume you are not able to get region information from another source and you have to choose one language as the default one.
The question does apply as well for more case including:
* pt-pt and pt-br
* en-us and en-gb
* fr-fr and fr-CA
* zh-cn, zh-tw, .... - in fact in this case I know that zh can be used as predominant language for Simplified Chinese where full code is zh-hans. For zh-tw, zh-hant-tw, zh-hk, zh-mo the proper code (canonical) should be zh-hant.
In fact the question can be extended to: How to I determine the predominant languages for a specified meta-language?
I need a solution that will include at least Portuguese, English and French.