How to localize my android application text? - android

I am developing the android application for different language.I want to localize my application.
I am getting the language text from server
I want to change the text based on text retrieved from server.
Please any one help me in this

You should start from Here. Android Official Localization Guide.... This is one of the great tutorials I found.

I think ttf files may help you.
Get the ttf files for all the languages and set the typeface to the text

Related

How to integrate font picker on text-view in android.?

I am creating an application, so that need to change multiple font on a text view using multiple font picker. I've read many tutorials and code, but still cannot be able to get this feature. I tried Ted codes, Collaborate code and android lib for getting multiple font.
I need multiple font styles, more than 2-3. Is it possible?

Display Hindi/Tamil/Telugu text in android application

I have a rooted phone and was trying to play around with my phone. It has android 2.2 installed. What I want to do is to display Hndi/Tamil/Telugu text inside the application that I was trying to develop. Obviously android 2.2 does not support these fonts.
As the phone is rooted doing this was easy for one language. I just followed the tips given in this link Enable Hindi Fonts on Rooted Device and was able to get Hindi fonts throughout the system. Similar approach helped me setup Tamil fonts.
But I am not able to make both Hindi and Tamil work together. The possible solutions I can think off are :
i) Create a common ttf file which shall contain both Hindi and Tamil fonts. But I have no idea whether this is possible or not.
ii) Keep a .ttf file for each language in the assets/fonts/ folder but again this is showing just square boxes on the device.
I tried this link Display Different Languages In Applicationtoo but again this seems to work for only supported fonts.
Any guidance would be highly appreciated. Thanks
Try this sample application.I shared here the whole application code for how to display one text in multiple languages especially Kannada and Telugu.

Android Multilanguage support

I have android application developed in English language and also have content in English. Is this possible that all texts are converted in other language like in Chinese or Japanese, then How? some sample code or tutorial will help me lot.
I am able to get language selected through setting with code as follows.
Locale.getDefault().getDisplayLanguage()
The usual way to do this is to:
Enter your strings in a strings.xml file in the /res/values/ folder of your project. You can then define different localizations of your string file by added them to the localized /res/values/ folders. ( /res/values-jp/ or /res/values-en/ etc.)
See: Developer Android
We can also use translation api. Refer this Link
http://www.creatiosoft.com/how-to-use-microsoft-translation-api-in-android/

Android, retrieves from different values folder

I am a newbie for android and really need you all helps to complete my task ^^. I am currently doing a project which is quite similar to android localization. However, there is another native language that is not stated down in language or a language-region combination that provided by the android setting. Is there any other ways that i can do to make the application retrieve different strings when different language selected?
I have try to create different names of values folder but it doesn't work when the folder named as "values-penan".
Thanks if anyone could help!

How can I have more languages in an android app?

I want to set in my android app more languages : english, french, german,italian. That's mean that when I choose one of them in the app all the text from textviews, button..will appear in that language. How can I do that? Should I save the words from all app in a local SQlite database ? Can you provide me some examples? Thanks in advance.
All the techniques you need are covered in the Localization guide.
You can use the res/values/strings.xml in your ressource folder.
After that you can create multiple folders, e.g. "values-en" for the english strings.xml
or values-fr/strings.xml for french. Check this link.

Categories

Resources