rishabhdugar/android-localization-helper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

A python script that helps you create strings.xml for all languages in different hierarchical folder(using Google Translation API)

Syntax

python3.7 translator.py <source_lang_code> <string_file_name>

Eg,

python3.7 translator.py en strings.xml

Output will be created in transalted/ folder with various langugaes folders.

Paste them in your res/ folder of Android Project.

Combined effort from below repositories + Some Add Ons

https://.com/Ra-Na/GTranslate-strings-xml

https://.com/Swisyn/android-strings.xml-translator

Extract only strings from strings.xml cut -d ">" -f2 strings.xml | cut -d "<" -f1

Extract non translatable strings from strings.xml cat strings.xml|grep -v "translatable" | cut -d ">" -f2 | cut -d "<" -f1

About

A python script that helps you create strings.xml for all languages in different hierarchical folder(using Google Translation API)

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published