[Qt-interest] Dividing translation source file
Kai Koehne
kai.koehne at nokia.com
Mon May 25 16:46:53 CEST 2009
ext Santhosh Y wrote:
> [...]
> Q1: My requirement is that, can I divide this translation file into
no of sub-files.
>
> For example, if I have the 3-directories in my src/ (dir1/, dir2/
and dir3/), with my language
> translation source file (myLanguage.ts) - I would like to generate
following files
>
> - myLanguage-dir1.ts
> - myLanguage-dir2.ts
>
> - myLanguage-dir3.ts
You could use a pri file for each subdirectory that lists just the local
files, and then add "TRANSLATIONS=" to each pri file. You should be able
to run lupdate on the pri files.
Or you could just ignore the project files and run e.g. "cd dirX;
lupdate *.cpp *.h *.ui -ts mylanguage-dirX.ts" in each directory.
Regards
Kai
More information about the Qt-interest-old
mailing list