qttranslationqt-linguist

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. The question is how to turn my already existing German-to-targetLanguage .ts files into English-to-targetLanguage .ts files.

I've got the en_US.ts file which translates from German to English. 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?


Solution

  • It had been quite easy to modify/extend the lupdate tool doing exactly that. Done.