Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can I use language other than English for default resources?

Android supports multiple application resource locales. Default strings are in values directory, other languages use values-XX directories. Can I set up Android Studio project to treat strings.xml in values directory (without language specification) as non-English strings (e. g. German)? I am 100% sure that all users know German.

like image 483
jiwopene Avatar asked Oct 16 '25 04:10

jiwopene


1 Answers

Android makes no assumption about what language the strings are in res/values/. It is simply the default set of strings to use, for cases where you do not provide translations for some specific language.

If you want to use German strings in res/values/, you are welcome to do so. In that case, your English translations would go into res/values-en/ or a similar directory, should you someday elect to provide such translations.

like image 122
CommonsWare Avatar answered Oct 17 '25 17:10

CommonsWare



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!