To support foreign languages, you must create a folder values-"Cod" - where "Cod" is a two letter code that identifies the language you are supporting. You can refer to this table to view other languages' code inside the folder res and insert into the folder values-"Cod" an archive xml strings. translated into the desired language.
Ex.: If you want to support, for example, Spanish and French, you should create two folders values-es and values-fr inside the briefcase res, and should create two files xml strings. - each with translation into a language - in the corresponding folders:
res/
values/
strings.xml
values-es/
strings.xml
values-fr/
strings.xml
The archive xml strings. inside the briefcase values-es would look like this:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="title">Mi Aplicación</string>
<string name="hello_world">Hola Mundo!</string>
</resources>
And the file xml strings. inside the briefcase values-fr would look like this:
<?xml version="1.0" encoding="utf-8"?>
<resources>
<string name="title">Mon Application</string>
<string name="hello_world">Bonjour le monde !</string>
</resources>
For more information:
I think what you meant was: How to provide foreign language support in android apps. Right?
– regmoraes
yes, for example if an outside country lowers the translated by local language or into English.
– Vale