Skip to content

Translate your strings.xml to any language for you Android apps using Google Translate API.

License

Notifications You must be signed in to change notification settings

xurxofp/AndroidXMLTranslator

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

AndroidXMLTranslator

This is a Python script to translate your string.xml files for your Android projects with the Google Translate API.

How to use

pip3 install -r requirements.txt
$ python3 translator.py -h
usage: translator.py [-h] [-l LANG] [-a [ALL]] [--list [LIST]] [-v] inFile inLang

positional arguments:
    inFile		Imput file XML
    inLang		Original file language

optional arguments:
    -h, --help		show this help message and exit
    -l, --lang		Output file language/s (example: -l es -l en)
    -a, --all		Select all output languages
    --list			Return all Google Translate languages
    -v, --version	Show program's version number and exit

Features

  • Translate your strings to your selected language
  • Translate to multiple languages with various "-l" arguments (e.g. -l es -l en)

TODO

  • Append new translations you your already existing files

Credits

Credits to Swisyn whose code inspired us to make this script

About

Translate your strings.xml to any language for you Android apps using Google Translate API.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages