Skip to content

Simple strings.xml files generator for android project using bing translator. It requires microsoft bing translation api key.

License

Notifications You must be signed in to change notification settings

akhilkedia/Android-Auto-Localization_Translate-Strings.XML

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 

Repository files navigation

Android Auto-Localization - Translate Strings.XML™

LicenseGPLv3 Donate

This is a project to localize your Android app , by translating your string resources(e.g. strings.xml) automatically using Microsoft Azure Translate. It requires Microsoft Azure Translation API key (instructions below). Helps developers localize their Android app easily to 56 languages, with just one click.

Features

  • Translates Android's Strings.xml files to 56 languages!
  • Can also translate small HTML files!
  • Cache translations so you dont end up using all your quota everytime
  • Handles some XML escaping

Usage

  • Simply edit the constants in src/main/Const.java
  • Run the java code in Eclipse (Windows/Linux/etc.) - It will generate all possible translations for you

How to get Microsoft Azure Translate Key

  1. Sign up for a Microsoft Azure account. If you don't already have an Azure account, sign up for a Microsoft Azure account.
  2. After you have an account, sign into the Azure Portal.
  3. Add a "Microsoft Translator API Subscription" to your Azure account.
  4. Choose a "pay-as-you-go" subscription. Will require a credit card, but don't worry, nothing will be charged.
  5. Select the "+ New" option.
  6. Select "Intelligence" from the list of services.
  7. Select "Cognitive Services APIs".
  8. Select the "API Type" option.
  9. Select "Text Translation".
  10. In the "Pricing Tier" section, select the "Free Tier (F0)".
  11. Fill out the rest of the form, and press the "Create" button.
  12. Retrieve your "Authentication Key".
  13. Go to "All Resources" and select the Microsoft Translator API you subscribed to.
  14. Go to the "Keys" option and copy your subscription key to access the service.

Limitations

  • Does not handle String Arrays so far
  • Does not handle CDATA Keep your strings simple, and this will work just fine. For any issues, post on my GitHub. Or send a pull request.

Credits

Fork of original code by Süleyman Yılmaz at https://github.com/e1631225

Donations

If you like this project, buy me a cup of coffee! :)

paypal

License

This program is Android Auto-Localization Copyright (C) 2017 Akhil Kedia

This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with this program. If not, see http://www.gnu.org/licenses/.

About

Simple strings.xml files generator for android project using bing translator. It requires microsoft bing translation api key.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Java 100.0%