Coder Social home page Coder Social logo

translation-tools's Introduction

Translation-Tools

Android strings.xml 多语言文本翻译导入工具,解决多语种项目翻译逐条导入问题。

使用方式

1 XML转XLS

把待翻译的strings.xml文件放在xml转xls.exe同级目录下 双击执行xml转xls.exe 输入你要转换的语种 ,比如 英文 日文 韩文(使用空格分割)回车,会在当前目录下生成一个strings.xls文件 打开格式如下 这个文档就可以提供给翻译公司或者我们自己完成对应语种下的翻译了。

2 XLS转XML

现在假如我们已经拿到了翻译好文档,就像这样

现在我们把这个文档放在xls转xml.exe的同级目录下

注意:文档名为strings.xls不能修改

双击执行xls转xml.exe,执行完毕后你会发现目录下成了以下四个文件

这些文件就是我们要放置到各个语种文件夹下的xml文件(中文的可以忽略)

任务完成!

3 XLS转PLIST

Windows平台

同步骤2

Mac平台

strings.xls文件(名称不能改)放在xlstoplist.py同级目录下,打开python运行环境执行xlstoplist.py即可

注意事项

不要修改strings.xml及strings.xls文件名

windows平台下py脚本打包exe文件命令 pyinstaller -F -p F:\PythonWorkSpace\Translation-Tools\venv\Lib\site-packages xlstoplist.py

translation-tools's People

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.