Android application localization without /res/values/ - android

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?

Related

How to handle localization of audio files or other assets in flutter?

I have some audio files that contain speech in the specific language. Let's say default is english and I also have french audio files. In native Android I have different folders for these files in my res folder. For example raw (contains default files) and raw-fr (contains french).
In code I only call play(sound.mp3) and Android uses the correct file for the language that this user has chosen.
Is there already a similar way for this on Flutter?
(It is not a big problem to do this by myself, but of course it would be easier if Flutter has some mechanic for this. I am planning to create folders in my assets folder for each language and create a class that is setting the prefix depending on users device language)

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.

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.

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