http://developer.android.com/reference/java/util/Locale.html
What is the difference for example between
Locale FRENCH vs Locale FRANCE
and
Locale GERMAN vs Locale GERMANY
I am searching, but I can't find the anything about the difference in the documentation. Any idea?
As defined by Microsoft, a locale is either a language or a language in combination with a country. See below for the definitions of locale and LCID and other resources.
When the Java virtual machine starts running on a computer, it creates an object called the default locale. This object affects the format of strings created from data. Depending on the default locale, a program creates different strings for the same number.
A Locale object represents a specific geographical, political, or cultural region. An operation that requires a Locale to perform its task is called locale-sensitive and uses the Locale to tailor information for the user.
French and German are spoken in more countries than just France and Germany. In different countries they will have different currencies, different ways of writing numbers, etc. That's why you can indicate both the language & region of your locale, and that's why you can define specific resources for each language/region-combination (e.g. de-DE for Germany vs de-AT for Austria, or fr-FR for France vs fr-rCA for Canada).
One refers to a geographic area (and its conventions, such as using commas or decimal points in numbers), the other to a language.
For example, French could be spoken in France or Canada.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With