Transifex

  • Documentation
  • File formats
  • Qt Files (ts)

Qt Files (ts)

  • File extension: .ts
  • i18n type: 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>
  • Any text that is included 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


  • 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


  • 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


  • Any text inside extracomment tags (e.g. Please translate as close to the original as possible ) is handled as developer notes:

    qt_developer_notes.png#asset:9300