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.
Related
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.
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?
I have an android app which includes both English and Turkish(default) values and drawable files but my emulator only is working on the default one, which is Turkish now. (values and drawable-xxhdpi)
My emulator's settings:
http://i.imgur.com/wpDu5Wc.png
Here is my res folder:
http://i.imgur.com/oMTdpHW.png
So what's the problem? Why doesn't it work on English files? I'm hopeless right now.
Turns out I've written the file name wrong.
"drawable-en-xhpdi" -> "drawable-en-xhdpi" That didn't give any error.
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.
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.