1

In android app, within that app has settings option such as English and Tamil If user select Tamil, with in the app only display in Tamil, in all activities all labels should in Tamil. if the user select English all labels are changed to English. How to make that?

Please give any idea....

Dhana
  • 554
  • 1
  • 9
  • 29
  • Just go to the following Link: http://stackoverflow.com/questions/4022566/custom-multi-language-support/4873524#4873524 – Div S Sep 14 '12 at 08:42

2 Answers2

2

Follow this Link: Android : translate the language of whole app on click

Then Do like this, Add the string values for each locale into the appropriate file.

English (default locale), /values/strings.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="title">My Application</string>
    <string name="hello_world">GoodMorning</string>
</resources>

Tamil, /values-tl/strings.xml:

<?xml version="1.0" encoding="utf-8"?>
<resources>
    <string name="title">My Application</string>
    <string name="hello_world">Kaalai vanakkam</string>
</resources>

Link: http://developer.android.com/training/basics/supporting-devices/languages.html

Community
  • 1
  • 1
  • They provide other than Tamil language i need code for Tamil. values-es / (here for spanish values) can we use values-ta for tamil? – Dhana Sep 14 '12 at 09:01
1

Have a look at this question.

Basically you have to put the translated Strings in a folder in the res folder.

Community
  • 1
  • 1
fasheikh
  • 419
  • 3
  • 19