Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to localize an Android app in Indonesian language

I need to localize my app into Indonesian language. My app's resource folder contains a list of "values" subfolders for each language, for instance "values-fr" folder.

But I read confusing information on Android developer documentation.

Note that Java uses several deprecated two-letter codes. The Hebrew ("he") language code is rewritten as "iw", Indonesian ("id") as "in", and Yiddish ("yi") as "ji". This rewriting happens even if you construct your own Locale object, not just for instances returned by the various lookup methods.

How to understand this? Basically, should I name my folder "values-in" or "values-id" so that it correctly displays Indonesian texts on a device with Indonesian locale?

like image 352
gpo Avatar asked Nov 08 '12 15:11

gpo


People also ask

How can I add locale language in Android?

Go to app > res > values > right-click > New > Value Resource File and name it as strings. Now, we have to choose qualifiers as Locale from the available list and select the language as Hindi from the drop-down list.

How do I change localization in Android?

You'll find this screen either in the System Settings app: Languages, or System Settings: System: Languages and input. The Language preference screen should contain one entry called “English (Europe)”. Click Add language and add a fallback language.


1 Answers

Resource folders for Indonesian language on Android should be named:

  • raw-in
  • values-in
like image 191
gpo Avatar answered Oct 12 '22 04:10

gpo