Qt Linguist .ts¶
Translation format used in Qt based applications.
Qt Linguist files are used as both bilingual and monolingual translations.
Example file:
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.0" language="cs">
<defaultcodec>UTF-8</defaultcodec>
<context>
<name></name>
<message weblate-flags="c-format, max-length:100">
<source>Hello, world!
</source>
<translation>Ahoj svete!
</translation>
</message>
<message numerus="yes">
<source>Orangutan has %d banana(s).
</source>
<translation type="unfinished">
<numerusform />
<numerusform />
<numerusform />
</translation>
</message>
</context>
<context>
<name>Second</name>
<message>
<source>Try Weblate at <https://demo.weblate.org/>!</source>
<translation type="unfinished"></translation>
</message>
<message>
<source>Thank you for using Weblate.</source>
<translation type="unfinished">Thanks</translation>
</message>
<message>
<source>Obsolete</source>
<translation type="obsolete">Thanks</translation>
</message>
</context>
</TS>
Weblate configuration¶
Typical Weblate Component configuration when using as bilingual |
|
---|---|
File mask |
|
Monolingual base language file |
Empty |
Template for new translations |
|
File format |
Qt Linguist Translation File |
Typical Weblate Component configuration when using as monolingual |
|
---|---|
File mask |
|
Monolingual base language file |
|
Template for new translations |
|
File format |
Qt Linguist Translation File |