GithubHelp home page GithubHelp logo

nightaroundday / tsfileeditor Goto Github PK

View Code? Open in Web Editor NEW

This project forked from longxr/tsfileeditor

0.0 0.0 0.0 9.87 MB

Qt翻译ts文件提取到excel,自动有道云翻译

License: MIT License

Shell 0.01% C++ 99.29% C 0.04% QMake 0.66%

tsfileeditor's Introduction

翻译文件(.ts)和Excel文件的相互转换工具

运行环境

Win10 Qt5.12.2 Mingw && MSVC VS2017

依赖库

qtxlsx

status

Windows MacOS Release Download
win-badge macos-badge release-badge download-badge

主要功能

生成待翻译字符串的excel文件

生成excel文件

.ts文件中的源文本作为excel的第一列key值,翻译文本(如果有的话)在抽出的时候放在第三列,没有则为空 excel截图.png

因为我加入了一列key值,一般情况生成的话key就是你原来的源文本,如果要使用自动翻译功能,将第一列拷贝一份到第二列即可;也可以像我这样代码里代码里不写实际的文本,另外生成一个中文的翻译文件(ts),将translation放上中文,需要其他语言的翻译的时候将中文拷贝到第二列即可

更新翻译文件(.ts)

  • 如果有专门负责翻译的人的话,可以将excel第二列放源文本后给别人,让他把翻译好的字符串放在第三列。翻译好后,选择好excel文件和ts文件,点击译文写入按钮就可以愉快地导入翻译内容了
  • 部分包含标点符号的地方可能有点小问题,可以打开Qt语言家检查下

自动翻译

  • 将要翻译的excel文件第二列放要翻译的文本(重要!!!)
  • 自动翻译功能调用的有道智云的API,需要使用的话自己去注册一个账号,免费送100元体验金。注册好后添加自己的翻译实例和应用,并将你的应用ID和应用密钥填到程序代码的:TSFileEditor\Source\MainApps\TSFileEditor\TranslateWorker.cpp上边 有道智云

填写位置

主界面最下方有填写应用ID和应用密钥的地方,在网页申请好后使用即可。

  • 下面是中文翻译成日文的栗子(导入ts文件->有道翻译->生成excel): translate.gif

点击excel生成按钮后,就可以得到翻译好的excel了: 翻译结果

  • 然后可以结合功能二来更新翻译文件(ts),之后就可以愉快地发布出(qm)给程序用了

tsfileeditor's People

Contributors

evan0105 avatar longxr avatar

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.