I'm working to localize my app for a number of language. Spanish is working great but Hebrew isn't showing up.
What confuses me is if I put the contents of my Hebrew strings folder in the Spanish folder(values-es) it works great. Spanish in my Hebrew folder(values-he) does not work though...
Any thoughts would be greatly appreciated.
Hebrew is locale like 'iw', and also 'he'.
As the #klausw mentioned in his answer:
you better store duplicate copies in both values-iw/ and values-he/
just to make sure it works in all devices.
rogcg is right for most Android devices, but apparently the Samsung Galaxy S2 incompatibly uses locale "he" for Hebrew and ignores values-iw/. If you want to be compatible with those devices too, you need to store duplicate copies in both values-iw/ and values-he/. See also https://stackoverflow.com/a/8573059/405214.
Bear in mind that as of Summer 2021 bundle (.aab) file is required instead of the .apk file. This change brings optimization to many things but some language related problems as well: if your device does not support a specific language, it will not be downloaded from the Play Store.
Check the solution here.
Related
I am in Israel, using the Hebrew language, and I purchase phones from the USA.
Recently Samsung decided not to show all language, but just the region important ones, in order to block imports from other countries I suppose.
I am new to android development, but I would like to know how to add or\and edit a System translation file, in order to maybe change a custom or stock Rom and have Hebrew language.
Thanks!
I am developing an app that includes Urdu text. I downloaded the "Jameel Noori Nastaleeq" font from http://jameel-noori-nastaleeq-urdu-fonts.software.informer.com/1.0/. On some mobiles, it shows up just fine but on most of the mobiles it looks jumbled up. I have tried different fonts from different sites but the problem persists. I haven't been able to figure out whether it is Android Version, mobile device or some other parameter that has the issue. Need help in this regard. I am attaching both correctly displayed and jumbled up snapshots. Thanks
I would suggest to try the following fonts as well.
Alvi Nastaleeq
Pak Nastaleeq
Fajer Noori Nastaleeq
Urdu naskh asiatype
You can download from here http://www.urdujahan.com/font.html
If you still face the similar issue the try using Faiz Lahori Nastaliq (http://www.axissoftmedia.com ) font which apparently has full Unicode support .
I'm using a custom font for a Japanese quiz app on Android. I tried it on a friend's phone at a cookout, and the font did not show up (it shows up on mine and others). The font is delivered with the apk. I don't have access to the logcat, and unfortunately forgot to check the phone model, although I think it's kind of a budget version. Has anyone had this problem this, or have any ideas what might cause it?
well, if you use delivered font with APK and got unexpected results, its generally rendering issue with Android system .. with other words, Android System cannot render all characters correctly. you need to know that earlier versions of Android don't support all Unicodes as well as later but off cause with more supported characters . if you want to test that on emulator, try to test your app with version 1.6.
I got similar issue with Arabic characters ..
I can help you with those guides:
1- try to check the characters you are using, and be away from rare characters.
2- try a different common font if its available.
3- If you built your own font, try to rebuild it again and use supported ID of glyphes. as I told you Android doesn't support all Unicode characters (supports based on ID). and its different from version to another.
4- check and detect unsupported characters ( you can do that by measuring length of character and compare it with pre-measured length of that character) then insert it as image with suitable dimension.
5-you can use webview instead of TextView/EditText ..
I hope that will help you ..
good luck,
I have a file with data that contain values in english and russian.
But when I try to print russian data in logcat, its not shown in the way its there in the file. Its coming as some special characters. What may be the reason?
For the above question, below answer worked....
Added new thing to the question:
I have search functionality in my app. So when I search this russian data, its not showing any results..if the data is english, it works perfectly...What could be the reason?
As I experienced, old ADT's Logcat doesn't support languages other than English. Update you ADT plugin (hope you are using Eclipse). I was also facing the same problem with Japanese, but as I've the new ADT now, its fine. You can update the ADT from Eclipse's Help menu >> Check for Updates.
I got solution for the second part too.. The problem was that word stored in db is actually russian only. Though it was seeming like english letters, in real case, it was in russian. I installed Russian Keyboard (GameWarrior) from market. Using that keyboard, I typed the search string. Then it worked perfectly fine. Thanks for the support #Mudassir.
My question is simple. Are all Unicode characters available in Android?
I actually am using the soft keyboard and I want to add a few arabic letters which I can't find the codes for.
Android supports UTF-8 but you will not be able to use arabic, if it's not installed in your OS. There are ways to install new fonts, but some of them needs jailbreaking your phone.
See link for installing font in Android:
https://web.archive.org/web/20091023103506/http://www.android-devs.com/?p=33
It does not appear so. This open issue on the android code site lists many missing characters.
add font (.ttf) containing characters to /system/fonts, modify /system/etc/fallback_fonts.xml so android finds font then reboot. Everything should be working now