Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Translating XML strings for Android

Tags:

android

I have some customers who have volunteered to translate my app's strings into their native languages. Of course they will not be using the Eclipse Android environment to do this, so what Windows-based tool/editor would be appropriate for them to use to work on the XML files that I send them?

like image 959
gordonwd Avatar asked Dec 11 '11 13:12

gordonwd


People also ask

How do I translate XML files?

First, upload your XML document with the . xlif/xliff extension and Redokun will display the content that needs to be translated in neat sections. Then, translate using the web editor, which will also suggest translations for you based on a third-party service (Google Translate or DeepL).

Does Android have a translator?

Google Translate works from any app inside on your Android phone. You just have to tap, and you'll be able to translate any text while on the go. You either have to open the Google Translate app or copy-paste something into its web translator box.

What is strings XML in Android?

String. xml file contains all the strings which will be used frequently in Android project. String. xml file present in the values folder which is sub folder of res folder in project structure.In Android Studio, we have many Views such as TextView,Button,EditText,CheckBox,RadioButton etc.


1 Answers

I've been following your strategy as well for quite some time. Whenever a volunteer wanted to translate the app, he got the XML file containing all the strings, translated it and sent it back to me.

But people who are not very familiar with computers tend to fail at that task: I often received the XML files back as Microsoft Word documents (.doc) or they translated the XML keys (which become the strings' IDs later) as well.

Therefore I recommend you to use some convenient tool for collaborative translation such as Transifex, crowdin or Get Localization.

You can even use a small website I've set up mainly for myself that offers Android translation as well if you don't want to pay for those services. It's not beautiful, but it should do everything you need.

like image 93
caw Avatar answered Nov 22 '22 08:11

caw