French Language in Android App - android

I developed an Android app it's working fine, but whenever the user login in french language the Logout button is showing like D�connexion instead of Déconnexion.
This app needs to support both English and French Languages, please help me how to solve this issue.
Thanks & Regards

I had an app with files that include arabic text. When I copy that project to another computers. all letters become a trash. The solution was to change eclipse files default encoding:
Window -> Preferences -> General -> Workspace : Text file encoding
Try:
UTF-8 and Latin-1
You mentioned that all your text come from the server. Try, to set encoding to those text to latin-1 after you receive it. worth a try. even if the server send it with UTF-8 encoding.
Set text manually in xml files. Change Eclipse default encoding until it work. then, you will know which encoding to use. it is definitely an encoding problems. as other also said.

Related

Italian characters in android

I just got my app strings translated to italian but having issues in displaying them on android device.
For example, one of the word is "velocità", on the device the last character à is shown as junk character.
Any pointers on how can I resolve it. The above word is present in the raw-it folder in a .txt file.
I assume you have the txt file not encoded as utf-8. Right click on the file in Eclipse and then properties. Set it to UTF-8. (You might need to copy the text into it again to make the characters appear ok).
UTF8 encoding supports foreign language characters. Try using UTF8 encoding. if that doesnt work then the problemmight be because of the font used.Good Luck.

Punjabi/Telugu/Tamil on Android using unicode UTF-8

I am trying to display text in Indian regional languages on an Android app.
I've set up all the localization folders even though, I just want to have only one language for my app (say Punjabi).
In my strings.xml I have tried putting Hindi characters and Chinese characters and these are displayed correctly on the emulator. But when I put in Punjabi characters nothing shows up on the emulator.
Any reason for this? Can I overcome this problem?
I have the option of using a .ttf file in the assets folder for punjabi font. But that is not what I want to do because it does not give me complete control over the contents being displayed. Each .ttf behaves differently.
Any help is truly appreciated.
There is no support for local Indian languages on Android as yet. Hence the UTF-8 characters that fall outside the acceptable range for Android are ignored. Hence we see a blank being displayed.

Is there a way to get HTML5 Builder to get Turkish character encoding right in Android projects?

First I edit the MPage encoding. Then I add some mobile components on design view.
I populate their caption/list properties with text including Turkish characters.
However in the template view HTML5 Builder does not show these characters correctly.
Is there a way to achieve this? Or is it not supported?
The steps for UTF-8 support are described in the UTF-8 Setup page in the documentation:
Change the PHP encoding. See the documentation for details on how your Home → Options → PHP page is meant to look like.
Change the file encoding. From the Code view of your page, right-click anywhere in the code and select File Format → UTF8.
Change the (M)Page encoding. From the Design view, use the Object Inspector to set the Encoding property to Unicode | utf-8.
If your system uses a Turkish locale, it should work. On Windows 7: Start → Control Panel → Change Display Language → Administrative (tab) → Language for non-Unicode programs
If with everything, the template preview still shows the worng characters, make sure you have the following code in your template, in the <head></head>:
<meta charset='utf-8'>
I think it more depends on the browser you are showing it with later. If you want to pack it as an android app and your phone supports turkish characters it should be totally fine to view it inside an webview.
After a few changes in encodings and restarting the IDE, the issue was resolved partly. Template view still does not recognize the encoding in a way. But I can deploy the application to virtual device or real device without any issues related to encoding.
I had a problem like this before ,,try to change the system language
for example : windows 7
control panel > Region and language > Administrative > Change system locale
and tell me :)

Android Translating To Arabic

I am working with an Arabic translator who is translating my strings.xml from english to arabic. I realize that only Honeycomb or Cyanogen roms will support arabic rendering, but that is ok.
Our problem is that the text keeps getting flipped around. It seems that some text editors (like Eclipse) blatantly do not support right-to-left text. And in some cases, the text is not flipped character by character, but word by word, or parts of the sentence get rearranged ... when copying from Microsoft Word back into the UTF-8 xml file.
For example, the translator supplied lines with spaces on each end, and naturally I wanted to clean these up. But doing so flipped some of the text around!
For example:
إغلاق التطبيق
became:
التطبيقإغلاق
just by removing spaces around the edges.
Questions:
1. What editor should I be using?
2. Is it ok to mix english and Arabic on the same line (such as the App Name or other words that should not be translated) or is this fundamentally a no-no?
I am currently working on an Arabic/English project, and I speek both languages, so I can provide you with my experience :)
Answer to Question 1:
Any editor that supports UTF8 will do. I am now using both eclipse and notepad++.
To setup eclipse with UTF8 (which is not the default for some reason), go to window menu -> preferences -> general -> workspace then change text file encoding from deault (cp1252) to other, and choose utf8, then restart eclipse.
For notepad++, ensure you install supported locales, including Arabic. It is not checked during instulation and you have to tick the checkbox to enable that feature.
Answer to Question 2:
It is absolutely fine to mix Arabic and English words together in a sentence. A very very good article I found about that is written here http://www.w3.org/International/tutorials/bidi-xhtml/
This article describes design concepts for sites that support right-to-left languages (including Arabic and Hebrew), with emphasis on Arabic due to it being a more complex language because some letters get connected to others and some do not.
Even though this article is talking about website design, it has a good amount of how Arabic and English languages should be mixed.
There a simple way to insert the right to left and left to right marks in any application under windows:
1- Right to left mark: ALT + 0254 from the right numeric pad in the keyboard
2- Left to Right mark: ALT + 0253 from the right numeric pad in the keyboard
Withouusing any special editors or macros, this can be used in any application, whether in Notepad, Word, HTML, XML... etc.
Hopefully, this would be helpful for everybody
Best regards
Your Arabic Translation Team
1- I developed few Android apps that support Arabic and I am using Notepad++ to edit the resources file without any problems. Just remember to select RTL from view menu (Ctrl+Alt+R).
Virtually all Android devices that support Unicode will display Arabic letters, but if bidi algorithm is not part of specific Android version you can use a custom library to connect letters and display Arabic correctly.
Here is a library that I used before
A Blog that describes how to use it
2- In general, I would not recommend mixing Arabic and English especially if it will involve special characters as it can be displayed awkwardly.
I know the Eclipse part, the default font in Eclipse doesnt support Unicode, So change it to "Aria Unicode MS" font. To do this in Eclipse workspace click on Windows in Menu Bar -> Preferences -> General -> Appearance -> Colors and Fonts. Now in the file explorer like menu in right, expand Basic, select "Text Font" and click on Edit.. button.
Hope this solves your viewing issue with Eclipse.
About Arabic app name issue, think on this, if you do localization correctly, then the Arabic name for app will be displayed only when the user changes the handset locale (and thus language) to Arabic, otherwise the default English app name will be displayed. So, just set the Arabic name in Arabic string.xml and English in the English one and you should be good.
As for editor part, there is no way to answer your question without knowing the platform. On Windows, standard Notepad should do.
For mixing strings, it is rather common scenario. It is typical that App Name won't get translated. Also, sometimes you need to put some English description in the brackets. You might need to play with strong directionality marks in such case (otherwise brackets would look a bit strange).

I want to modify a sample from the http://developer.android.com/, but have some problems with Cyrillic symbols

First, sorry for my poor language skills.
I tried to modify the SearchableDictionary v2 sample from here: http://developer.android.com/resources/samples/SearchableDictionary/index.html
I need this for a school project.
I replaced the definitions in dev/raw/definitons.txt with some other definitions, which was written in Cyrillic, but now when I run the project and search for a word it doesn't show me word I was searching for.
However, if I enter some words in Latin symbols in definitions.txt, then the app works great, but when I put some words in Cyrillic it doesn't show me the words, when I search for them.
I assume that this is due to some encoding issues?
Thanks!
It could be due to encoding. In Eclipse, right click on the definitions.txt file and select properties. There you should see an option to specify the charset. Make sure its set to whatever you need (probably UTF-8)

Categories

Resources