Naming method of Android multi language value folder

New multi language pack

There are two ways to create a new multi language package in the Android studio project. One is to create it manually, and the other is to use Android studio as an assistant.

New manually

Create values files with different names in res directory to call different language packs. Values files are summarized as follows: Chinese (China): values zh RCN Chinese (Taiwan): values zh RTW Chinese (Hong Kong): values zh RHK English Z (United States): values en Rus English Z (United Kingdom): values en RGB English (Australia): values en RAU English (Canada) : values en RCA English (Ireland): values en RIE English (India): values en Rin English (New Zealand): values en rnz English (Singapore): values en RSG English (South Africa): values en RZA Arabic (Egypt): values ar reg Arabic (in color) : values ar RIL Bulgarian: values BG RBG gavenian: values CA res Czech: values CS RCZ Danish: values Da RDK German (W Geography): values de rat German (Switzerland): values de RCH German (Germany): values de RDE German (Liechtenstein): values de RLI Greek D: values El RGR Spanish (Spain) : values es res Spanish (USA): values es Rus Finnish m (Finland): values fi RFI French (Billy R): values fr RBE French (Canada): values fr RCA French (Switzerland): values fr RCH French (France): values fr RFR Hebrew model values IW RIL Hindi: values hi rin_ Liwen: values HR RHR Hungarian: values Hu Rhu Indonesian: values in rid Italian (Switzerland): values it RCH Italian (Italy): values it RIT Japanese: values JA rjp n: values Ko RKR Lithuanian: valueslt RLT La s: values LV RLV Norwegian bock R: values NB RNO Holm (Billy R): values NL be Holm (Netherlands) : values NL RNL Bo m Wen: values PL RPL Portuguese (Brazil): values Pt RBR Portuguese (Portugal): values Pt RPT_ R Nigerian: values ro RRO Russian: values Ru RRU Slovak: values SK RSK Slovenian: values SL RSI Serbian: values SR RRs Swedish: values SV RSE Thai: values th RTH tagalo Z: values TL RPH Turkish: valuescr RTR Bansong M: values UK Rua Vietnamese: values VI RVN

Auto build

one

Add Chinese string

two

three

four

five

The above steps only add the values zh RCN folder, which cannot be seen in the res of the as, even after synchronization. This is because there is no content in it. Just copy the default string.xml to the folder just now and modify the content in the string into Chinese. Euler!

six

Other languages, the same operation method, do not know, hurry to test it.

The above is the whole content of this article. I hope it will be helpful to your study, and I hope you can support programming tips.

The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
分享
二维码
< <上一篇
下一篇>>