[Qt-interest] How to create a .ts file not related to c++ sources ?

Konrad Rosenbaum konrad at silmor.de
Mon Dec 29 17:04:33 CET 2008


Hi,

On Monday 29 December 2008, Катроевский Алексей wrote:
> I can create a .ts file with "myconstants" context manually, but that's
> not convenient for translators who probably even don't know what "xml"
> stands for...
>
> So, is there any smooth way to create a custom .ts file?

Where do these constants come from?

If it is a source file with C-like syntax (eg. Java or PHP) you can create a 
dummy wrapper for tr() and still scan it (just add it to HEADERS). Don't 
mind the warnings - lupdate might be a little confused by the slightly 
different syntax, but it will generally do its job.

If it comes from some other source: try to scan it automatically and 
generate a dummy C file.



	Konrad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.qt-project.org/pipermail/qt-interest-old/attachments/20081229/da832f63/attachment.bin 


More information about the Qt-interest-old mailing list