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.
Related
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)
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?
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.
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.