Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Automatic Translation tool for Android [closed]

Do you know if there is any free automatic localization tool currently out of the market ? It would be to translate my XML files from my android project The ones i have found all rely on Google translate API. Since this API is now paying(Since December 2011) all those tools are now obsoletes.

The ones i have tried but rely on Google Translate APIV1

  • Androlate Eclipse plugin
  • ailocalizer
  • A Chrome extension
  • Online tool : http://uzitech.com/files/translator.php

I would be really grateful if someone has found a working one.

like image 757
Florent Valdelievre Avatar asked Dec 29 '11 20:12

Florent Valdelievre


3 Answers

Update 11.08.2018: Google not support this any more

I've not tried it but I've heard about Google Translate Toolkit. Appears to support a wide range of formats, including Android resources.

  • AdWords Editor Archive (.aea)
  • Android Resource (.xml)
  • Apple iOS
  • Application (.strings)
  • Application Resource Bundle (.arb)
  • Chrome Extension (.json)
  • GNU gettext (.po)
  • HTML (.html)
  • Java Application (.properties)
  • Microsoft Word (.doc)
  • OpenDocument Text (.odt)
  • Plain
  • Text (.txt)
  • Rich Text (.rtf)
  • SubRip (.srt)
  • SubViewer (.sub)
like image 173
Malachi Avatar answered Oct 22 '22 10:10

Malachi


@Pedro Rainho tool doesn't work anymore because it uses old api key method which bing has recently changed. I have creater a GUI App using new bing secret api key apporach. You can check it. App is available at SourceForge

like image 42
Khayam Gondal Avatar answered Oct 22 '22 08:10

Khayam Gondal


A similar question is answered on stackoverflow here. I have just used Android Resource Translator (ART), freeware mentioned by "K G" above, under Windows 7 Pro. For Windows users wanting specifically to translate Android resource files (as originally asked), this is the best free solution I've found. (I confirm that Google Translate is paid, find that memoQ mentioned in a link above is a commercial tool).

ART installed quickly and automatically. I selected output languages by checkbox and it automatically translated my Android app's English res/values/strings.xml file into German, Russian, and French XML files, output under a common "res" directory as values-de/strings.xml, values-ru/strings.xml, and values-fr/strings.xml in under a minute. I then copied these directories under my project's "app/src/main/res" folder and my app has working translations. (I played it safe; you can probably just specify your app's "res" directory for output and skip the copying).

ART uses Bing Translate, and there is no fee involved. This is pure machine translation, so the result may not be as accurate as human translation, but for Android resource entries like "Download" or "Quit" accuracy seems adequate.

Warning: the GUI is unpolished. For example:

  • The Windows menu and taskbar icon are titled Android Resource Handler but the application window's title is Android Resource Translator
  • I had to stretch the window on my screen to reveal its Translate button
  • There is a field containing the text Copy Paste your output folder path. res folder will be created here. Unless you manually enter a directory in this field, I'm not sure any output is generated, or where.

But these don't affect function, only convenience.

Caveats Emptor:

  • French translation does not escape apostrophes and this causes a fatal build exception. Workaround: edit French xml file manually replacing ' with \'.

Once I performed translations, I used Android Studio's builtin Translations Editor to validate them.

As K G says, available on SourceForge. Last updated 2015-02-17, 11 downloads this week. Source code available at github. This is "begware;" the author includes a Please donate link in the app leading to a Paypal page.

like image 35
CODE-REaD Avatar answered Oct 22 '22 08:10

CODE-REaD