Domanda

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

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

È stato utile?

Soluzione

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)

Altri suggerimenti

@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

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.

Bit more universal translation and localization service: crowdin.com

I can't believe I'm about to say this, but Bing has a free translator. It can be set up using SOAP.

Here is a link to some code to help you with adding it to your app:

http://code.google.com/p/bing-translator/source/browse/trunk/src/com/saturdaycoder/bingtranslator/BingTranslatorSoapApi.java?spec=svn3&r=3

EDIT: I just found an app that does use Bing now for the exact same reason you are looking for a new one to use.

http://www.androidzoom.com/android_applications/tools/droid-translate_gghr.html

old post, but I created an androlate gradle plugin you could try. https://github.com/ayvazj/gradle-androlate-plugin

Motodev Studio has a feature that does that with the help of Google Translate.

Autorizzato sotto: CC-BY-SA insieme a attribuzione
Non affiliato a StackOverflow
scroll top