How to support multiple language in a application? [duplicate] - android

If i run my android application with a htc magic with locale English, I find my application running properly and if i try to run it on Motorola droid with locale korean, My application(apk) is not even installing on the device. Does android support different language? Is it is because of different language OS versions?

Multilanguage support is easy done for android. Create a new values directory for the language with the suffix of the language code. For german: values-de or french: values-fr than copy your strings.xml into that and translate each entry. Thats all you need.

There is the table of values to add in yours values folder.
iso639-2
ex: if you like translate your app to spanish you must create a new folder in
your res folder called, values-es, and copy inside string.xml file tranlated.

Related

Android application localization without /res/values/

I have developed an Android application and all strings are displayed in English, as English is the default language on my device.
I wish to display strings in different Indian languages without making any changes to the apk (or at minimal, most changes to the apk file).
Can it be done without having to include specific strings.xml file in the /res/values-locale folder?

Android app localization with sqlite db

Well, i have an android app created in delphi xe7. And i use sqlite data base to store all text there (use it for windows application and android version).
During the first start the program asks user to choose language and then it downloads language data base and some resources from program site. Also user can change language in run time.
But when I've added different language description on google play, it noted me, that my apk file is not localized.
How could I solve this problem?
The problem because Google expects you to create different folders inside your res/ folder for each languge that your app supports.
For example if you have french there should be a file called res/values-fr/strings.xml and if you support spanish there should be a file called res/values-es/strings.xml
This link http://developer.android.com/training/basics/supporting-devices/languages.html explains more.
All is not lost. You can easily write a few lines of code to read your sqlite database and convert those strings into strings.xml files that will keep google happy.
If this this only a hint which is shown in your Google Play Developer Console, but not to your users, then there is no need to worry about it. Your store descriptions can be localized while your app does not use the platfom way to provide the string resource translations.

Android translation texts not showing on app

In my app I support 2 languages: English and Hebrew. I created a file strings.xml inside the folder values/ and there are all the English strings. I also created a file strings.xml inside values-he/ folder with the hebrew translations.
But when opening the app in a phone which locale is Israel/hebrew, the user doesn't receives the translation, but only the English texts..
Is there something I'm missing? Do I have to do another thing?
Thanks!
Not only you need the folder
values-he
You also need the folder
values-iw
Because some devices recognize he, some others iw.
So, put the very same files in both folders and you'll have no problems.

Android Localization: why doesn't my app localize language?

I am localizing my application. I have 2 projects on eclipse; one is the library.
I have created a subfolder of the res/values folder for the italian localization (both in the library and in the other project). When I open my app (with the italian language set) the app displays the english (default) strings.
My folders are organized like this:
values-it should be directly under res, not in res/values.

Do android support multiple languages?

If i run my android application with a htc magic with locale English, I find my application running properly and if i try to run it on Motorola droid with locale korean, My application(apk) is not even installing on the device. Does android support different language? Is it is because of different language OS versions?
Multilanguage support is easy done for android. Create a new values directory for the language with the suffix of the language code. For german: values-de or french: values-fr than copy your strings.xml into that and translate each entry. Thats all you need.
There is the table of values to add in yours values folder.
iso639-2
ex: if you like translate your app to spanish you must create a new folder in
your res folder called, values-es, and copy inside string.xml file tranlated.

Categories

Resources