I'm currently using the Facebook SDK for Android to post messages onto your facebook wall from within my mobile application. All Facebook views are now by default displayed in French, but I want them to be in Dutch. I think this is because Facebook detects I'm living in Belgium, and wrongly sets the language to French. The language setting on my Dalvik VM, however, is Dutch.
Can anyone help me out?
I found a solution. My DALVIK VM language setting was set to "Dutch (Belgium)", but setting it to "Dutch (Netherlands)" solved the problem. It's a dirty, but apparently effective solution.
Related
I have an android app that is not localized. All my strings are in strings.xml file.
After submitting to the store, I am getting a warning that my apk contains Australian English and I should provide images and the like for it.
I am using Android Studio 3.3.1 on Windows 10, and the OS language is English US. I don't know where is Australian English coming from, I am not even in Australia!
Where can I change this?
Click on Default (en-us)
which have list as per your string file added
for more you need to add string file
/values-es
/value-gu
it means you have options
1 for gu
2 for es
Got a response from Google Store support.
Apparently, the wording of their warning is a bit misleading.
They actually wanted to suggest I translate into Australian English, because I have users there.
So, if you get this it's safe to ignore...
In Xamarin help page https://learn.microsoft.com/en-us/xamarin/xamarin-forms/app-fundamentals/localization/text?tabs=windows, for "Displaying the Correct Language", it suggests to define interface ILocalize then use DependencyService to get some locale info.
However, My Xamarin.Forms Android app could just pick the right language resource file according to the locale settings of the device, and display rightful language.
So translations are working fine without ILocalize and the implementations. Do I really need ILocalize and the implementations?
No need of DependencyService, Xamarin.Forms automatically recognizes it and gets the appropriate resource file. Docs needs to be updated, an issue was opened for the same
I am developing a NativeScript chat app in JavaScript for Android.
It will be used on italian devices, and I need to enable keyboard autocorrect for this language only.
The issue:
while the device language is set to English, autocorrect works, but it doesn't in Italian.
<TextField id="messageBox" hint="Scrivi un messaggio..." class="msg-input"
autocorrect="true" text="{{ testoMessaggio }}" ></TextField>
Since I am new to both NativeScript and Android development, I'm probably missing some basic knowledge about device locale language. Still, searching around I couldn't find any answer.
How can I fix this?
I don't think that is possible with Android itself. You may either turn it off or on but can not restrict what should appear in suggestions.
There is no such method available with EditText (Native Android component that NativeScript uses to wrap as TextField) however I think you need to provide special instruction with your app. Normally, each time you switch language, the spellcheck dictionary changes as well. However, If that language dictionary available, user might need to download it.
Settings -> Language & Input -> Add-on Dictionaries
Also to note here that if user has disabled the predictive text, app may not have permission to active that.
Check that your languages are selected in 'Languages in types'
Make sure that the "Predictive" option is activated.
Make sure that the "Auto replacement" option is activated.
Turns out it's an issue with one of the debugging devices, a Oneplus One, Lineage OS 15.1. Same problem occurs with different NativeScript apps.
Autocorrection works well on other devices and emulators.
Have an issue that my application keep showing res/values-zh/strings.xml instead of res/values-en even when my phone's locale is English or any other undefined locale(language).
Here is my main activity java class and it is showing English but we get the result on phone in Chinese
Here is default values strings
Would be much appreciated if someone have any idea on this issue as i had following the android studio documentation and the localization is not working properly and i could not find out the reason for quite long time. Kindly let me know if further info needed, thanks !
What version of Android do you use?
Is it Android N? Android N allows the user to configure a list of languages. If the first language is not supported, and the second is Chinese, then you will get Chinese UI (if Chinese strings are available, of course)
myXmlContent.setText("بِسْمِ اللَّهِ الرَّحْمَٰنِ الرَّحِيمِ");
I am writing the above code and trying to display the text in Arabic.
but every character is being displayed separately in Android emulator.
Please help.
Complex scripts are currently not fully support by the UI toolkit. We are working on improving this.
Don't Worry we faced this on our applications but it works like a charm on the real devices (Samsung htc)
I do advice work and debug directly on real device this is faster and reflects your work In final look.
you may look at:
https://stackoverflow.com/a/3769283/771300
Have look the below link.
Android Arabic Language
You need to use Arabic Reshaper utility
Below are the some links https://github.com/agawish/Better-Arabic-Reshaper
https://mdictionary.wordpress.com/2011/02/10/connected-arabic-characters-for-android-apps/