localization isn't working (even with "-en" language files) - android

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.

Related

CSV Wrong Encoding UTF-8

I am building an app, and I have a need for names of cities.
I have found a CSV and an XML file on this site:
https://data.gov.il/dataset/citiesandsettelments
The app is in Hebrew, and I need the database on this site.
So I downloaded the CSV file which is in UTF-8.
When I copied it into Android Studio's res/raw folder, this is the result:
You can see clearly that the English names for the cities are fine, but all others which are written in Hebrew are messed up.
What should I do to prevent this error?
Ok i found the problem
i changed the encoding into windows 1255 and it works fine.
sorry for this.

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

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.

App logo is not changing in android lollipop 5.0.2 version

The app logo on updating the app is not changing for my Moto G 1st Generation phone. Also I've two apps as "Google Photos". Don't know what to do with that??
Help!
Try to clean the Project by going to
1.Eclipse->Project->Clean it will rebuild the .apk file.
Make sure that both 'Google Photos' apps should have different package name as well.
In the resource folder the image files should have name in lowercase only, or else the XML will not able to get it, eg; file name Should not be like this Image.png, it should be image.png.
Possible that you have different drawables for ic_launcher or logo in your hdpi/xhdpi/xxhdpi folders.

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.

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