In my application, I need to display strings according to the user's locale. So, I put mine strings.xmlin values-en, values-koetc. How can I install locale us, australia ie; values-en_US, values-en_AU? But is that a mistake? Can someone tell me how to set these locales in my code?
strings.xml
values-en
values-ko
values-en_US
values-en_AU
Use res/values-en-rUS/(replacing _with -r).
res/values-en-rUS/
_
-r
I do not understand your question, but if you are not sure what name you need for a particular locale, refer to these links
http://developer.android.com/intl/de/reference/java/util/Locale.html
http://groups.google.com/group/android-developers/web/localizing-android-apps-draft
Android , /.
There is an international standard for Locale ..... for example, values-en for English .... values-ko for Korean ... You cannot change the standard. It will work if you save the folder name as -ko values.
Source: https://habr.com/ru/post/1762259/More articles:Индивидуальный идентификатор URL-адреса плюса - build-processC # creating a shared instance - c #Конфигурация PHP: значения max_execution_time и max_input_time, измеренные в секундах? - phpGet call context in service - androidadding components dynamically to JPanel - javaIn Java / Swing, is there a way to legitimately "try to mutate in a notification"? - javaSWT open source app gallery? - javaphp mb_strtolower gives an invalid character - phpis there any NETBEANs plugin that can give a design webview? - web-applicationsCURLOPT_RETURNTRANSFER with curl_multi - phpAll Articles