简体   繁体   English

如何切换.ts文件的基本语言

[英]How to switch the base language for my .ts files

Now, suddenly after a few years, I'm going to replace all German strings with English ones in my C++ sources. 现在,几年之后,我将在C ++源代码中用英语替换所有德语字符串。 The question is how to turn my already existing German-to-targetLanguage .ts files into English-to-targetLanguage .ts files. 问题是如何将我已经存在的German-to-targetLanguage .ts文件转换为英语到targetLanguage .ts文件。

I've got the en_US.ts file which translates from German to English. 我有en_US.ts文件,从德语翻译成英语。 For example, is there a tool that can turn my old fr_FR.ts file (based on German source strings) into a new one (based on English source strings) with the help of that en_US.ts? 例如,是否有一个工具可以在en_US.ts的帮助下将我的旧fr_FR.ts文件(基于德语源字符串)转换为新文件(基于英文源字符串)?

It had been quite easy to modify/extend the lupdate tool doing exactly that. 修改/扩展lupdate工具非常容易。 Done. 完成。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM