Skip to main content
Qt Linguist

Information about how Transifex handles the Qt Linguist (.ts) file format.

Nina Eleftheriadou avatar
Written by Nina Eleftheriadou
Updated over 10 months ago

File Extension(s)

.ts

i18n type(s)

QT

This is the format used by the Qt Framework.


Syntax

```
<!DOCTYPE TS>
<TS>
<context>
<name>Additional information for the translator</name>
<message>
<source>Email address</source>
<translation>Email address</translation>
</message>
<message numerus="yes">
<location filename="../transifex/src/core.py" line="512"/>
<source>%s minute</source>
<translation>
<numerusform>%s minute</numerusform><numerusform>%s minutes</numerusform>
</translation>
</message>
</context>
<context>
<name>Additional information for the translator: This appears on the login page</name>
<message>
<source>Please provide your username</source>
<comment>field for username</comment>
<extracomment>Please translate as close to the original as possible</extracomment>
<translation>Please provide your username</translation>
</message>
</context>
</TS>
```

  1. Any text in the <name></name> paired tag is handled as context for the translators. This text can be found under the Context tab in the editor, as shown below:

    qt_context.png#asset:4515

  2. In case both name and comment are provided, e.g.

    Screenshot-2021-08-24-at-12.21.16-PM.png#asset:9307

    Then the context field in the editor contains 'name:comment' as shown below:

    qt_context_editor.png#asset:9299

  3. The value of the filename attribute (e.g. <location filename="../transifex/src/core.py" line="512"></location>) is available in the Occurrences field:

    occurences_qt.png#asset:4516

  4. Any text inside extra comment tags (e.g., Please translate as close to the original as possible) is handled as developer notes:

    qt_developer_notes.png#asset:9300


Parser Behavior

The following table outlines what occurs to strings when using the API, CLI, or UI to manipulate translation files depending on download mode.

*The results are compatible with parser version 1.

๐Ÿ“ Note: Proofreading must be enabled for this logic to take effect. To learn how to enable proofreading, click here.


Additional Information


๐Ÿ’กTip

Looking for more help? Get support from our Transifex Community Forum!

Find answers or post to get help from Transifex Support and our Community.

Did this answer your question?