Language Code for Flemish

I would like to support the Flemish language in my Android application, but according to ISO 639-1 there is no separate code for this language. How can i do this?

+4
source share
3 answers

using nl-rBE (Dutch used in Belgium) helped me.

( r is required to reference Android localization --the, r stands for "region".)

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

+1
source

If the language did not receive any code, then you had no other way to "capture" the code of another language or write your own localization mechanism (or use something existing, but not a framework). Regarding capturing existing code, just select the one that your user is unlikely to meet in real life, and post your translation there.

+1
source

Remember that a resource qualifier can combine language and country. Although the Dutch and Flemish languages โ€‹โ€‹do not comply with the ISO 639-1 nl standard, you can also add a region classifier to further indicate the region.

The documentation is an example for British English :

In addition, you may not need to create alternate text for each line. For example, suppose the following:

  • The default language of your application is American English. Each line used by the application is defined using English words in res/values/strings.xml .
  • For a few important phrases, you want to provide English spelling. You want these alternative strings to be used when your application runs on a device in the UK.

To do this, you can create a small file called res/values-en-rGB/strings.xml that contains only lines that should be different when the application starts in the UK

Similarly, you can specify this for the Flemish language by specifying the values-nl-rBE resource directory.

+1
source

Source: https://habr.com/ru/post/1491465/


All Articles