LiuShuaiQ / android-translate-tools

Android translation tool

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Android Translate Tool

Organize strings.xml under Android resources into an excel table tool.

中文文档

Features

  • Organize the strings.xml resources of the Android project into an excel sheet
  • Parse the excel table into strings.xml resources available for Android

How to build

build the package:

./gradlew build

run the project:

./gradlew run

the output is:

usage: TranslateTool
 - <arg>             d/decode
 -d,--dir <arg>      Set translate resource dir
 -h,--help           Print this usage information.
 -o,--output <arg>   Set output file path
 -v,--version        Print version information.

How to use

You can download dist in this directory: dist

  1. Download and unzip to the directory
  2. Run the startup script in the bin folder

strings.xml -> excel

example:

./TranslateTools -d <XXX/AndroidProject/app/src/main/res>

-d,--dir
set translate resource dir, e.g. /AndroidProject/app/src/main/res

excel -> strings.xml

./TranslateTools d -d XXX.xlsx

About

Android translation tool


Languages

Language:Java 100.0%