The folder name of Android string files is formatted as the following: Then copy the main English string file string.xml and paste it inside the new value-** folder then you can translate your strings as you like If you want to add your own new language, Create a new value-** folder under the Resources folder The value-ar or value-ru has a String.xml file that contains the same labels but is translated to Turkish or Russian or Arabic and etc. In case, if we want to add support for other languages, we need to create a values folder by appending the Hyphen and ISO language code.įor example, if we want to add support for Japanese, then we need to create a values folder named values-ja under the res folder and add a strings.xml file in it with all the strings that need to translate into Japanese Language. Generally, android considers English as a default language and it loads the string resources from /res/values/strings.xml.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |