- Home /
How to localization app name on android platform
How to localization app name on ancroid platform , according device system language, i knew that should set res/value folder something. but don't know how to make that into unity project.
Answer by xmasalov · Mar 20, 2017 at 12:47 AM
If it doesn't already exist, create a folder \Assets\Plugins\Android\res\values-xx for each additional language you want to support. Substitute "xx" with the two letter language (not country!) code.
Also make one without a language code (\Assets\Plugins\Android\res\values) which will be the default one, if your device doesn't match any of the languages you created.
So you would end up with these folders:
\Assets\Plugins\Android\res\values
\Assets\Plugins\Android\res\values-es
\Assets\Plugins\Android\res\values-nl
In each of those folders, create an xml file called strings.xml containing this:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="app_name">Hello World</string>
</resources>
Let's say the default language is going to be English, so this xml with "Hello World" would go into the values folder. Another one with "Hola Mundo" for the values-es folder and "Hallo Wereld" in the values-nl folder.
Source: http://www.bitsofbas.com/blog/post/32/localizing-app-name-in-android
Your answer
Follow this Question
Related Questions
Unity3d Social Logout 1 Answer
Saving items to a text file 1 Answer
Simple Unity3d Facebook Integration? 1 Answer
Facebook connect for android in Unity 3D 1 Answer
Big Resolution Low FPS 1 Answer