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.
- 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
- 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
- Sign up for a Microsoft Azure account. If you don't already have an Azure account, sign up for a Microsoft Azure account.
- After you have an account, sign into the Azure Portal.
- Add a "Microsoft Translator API Subscription" to your Azure account.
- Choose a "pay-as-you-go" subscription. Will require a credit card, but don't worry, nothing will be charged.
- Select the "+ New" option.
- Select "Intelligence" from the list of services.
- Select "Cognitive Services APIs".
- Select the "API Type" option.
- Select "Text Translation".
- In the "Pricing Tier" section, select the "Free Tier (F0)".
- Fill out the rest of the form, and press the "Create" button.
- Retrieve your "Authentication Key".
- Go to "All Resources" and select the Microsoft Translator API you subscribed to.
- Go to the "Keys" option and copy your subscription key to access the service.
- 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.
Fork of original code by Süleyman Yılmaz at https://github.com/e1631225
If you like this project, buy me a cup of coffee! :)
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/.