Ankit
Ankit

Reputation: 6622

Language code for Flemish

I would like to provide support for the Flemish language in my Android app, but as per ISO 639-1 there is no separate code for this language. How can I then do this?

Upvotes: 4

Views: 2888

Answers (3)

Ankit
Ankit

Reputation: 6622

using nl-rBE (dutch as used in Belgium) worked for me.

(r is required per the Android localization reference--the r denotes "region".)

http://www.localeplanet.com/icu/nl-BE/index.html

Upvotes: 1

Paul Lammertsma
Paul Lammertsma

Reputation: 38292

Bear in mind that the resource qualifier can combine language and country. Although Dutch and Flemish are both ISO 639-1 nl, you can attach a region qualifier as well to further specify the region.

The documentation provides an example for British English:

Also, you might not need to create alternative text for every string. For example, assume the following:

  • Your application's default language is American English. Every string that the application uses is defined, using American English spellings, in res/values/strings.xml.
  • For a few important phrases, you want to provide British English spelling. You want these alternative strings to be used when your application runs on a device in the United Kingdom.

To do this, you could create a small file called res/values-en-rGB/strings.xml that includes only the strings that should be different when the application runs in the U.K.

Similarly, you could provide this for Flemish by specifying the resource directory values-nl-rBE.

Upvotes: 3

Marcin Orlowski
Marcin Orlowski

Reputation: 75645

If the language got no code, then you got rather no other way to "hijack" the code of other language or write own localization engine (or use something existing, but not the framework's one). As for hijacking the existing code, simply pick up that one that your user are most unlikely to face in real life and put your translation there.

Upvotes: 1

Related Questions