How can I make my application to display in different languages ​​using Android

I have an application that works, but I want to be able to change it into different languages ​​such as Spanish and Italian .please help me

+3
source share
3 answers

You should read the Localization article to find out more about this.

+4
source

In your project, add the directory "values-es" to the directory "res". Then put the new file "string.xml" in this directory. Now you should have the file "string.xml" in the directory "values" and the file "string.xml" in the directory "values-es".

EACH - :

"string.xml" "values":

<resources>
    <string name="toto">The value in the default language</string>
</resources>

"string.xml" "values-es" :

<resources>
    <string name="toto">The value in spanish</string>
</resources>

, , "toto", , .

+2

string.xml "values-it" "values-es" . , . , , , "values" . , , "" "values-es" : , , "es". , "values-es" . "values".

+1

All Articles