Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Difference between Locale FRENCH vs Locale FRANCE

Tags:

android

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?

like image 489
senzacionale Avatar asked Aug 22 '12 11:08

senzacionale


People also ask

What is locale English?

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.

What is locale default?

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.

What is locale object?

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.


2 Answers

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

like image 102
Reinier Avatar answered Oct 22 '22 18:10

Reinier


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.

like image 28
Tony the Pony Avatar answered Oct 22 '22 16:10

Tony the Pony