QT TS Free
ByCrowdinVerified Author

Localization format for Qt framework

Try Crowdin

QT TS translation with Crowdin

Copy link

QT TS is a natively supported file format, you can use it without an additional installation. Just upload it to your projects and start the localization.

File Format Details

Copy link
Attribute Value
File Extension .ts
API Type qtts
Source can be edited in Crowdin No
Generating translated files via Bundles Search Crowdin Store
Supports pluralization Yes
WYSIWYG Preview in the editor No
Supported types of contextual information Text comments, Screenshots
Custom attributes No
Existing translations import possibility Key-value mapping

Sample File

Copy link
<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="en" sourcelanguage="en">
<context>
  <name>Page</name>
  <message>
    <source>Text for translation</source>
    <comment>commenting</comment>
    <translation type="obsolete">translated string</translation>
  </message>
  <message>
     <source>Text for translation #2</source>
     <extracomment>some text</extracomment>
    <translation>some translation</translation>
  </message>
</context>
<context>
  <name>installscript</name>
  <message>
    <source>Text for translation #3</source>
    <oldcomment>some new comments here</oldcomment>
    <translation>some new translation here</translation>
  </message>
</context>
<context>
    <name>apple_count</name>
    <message numerus="yes">
      <source>%s apple(s)</source>
      <translation>
        <numerusform>%s Apfel</numerusform>
        <numerusform>%s Äpfel</numerusform>
      </translation>
    </message>
  </context>
</TS>

Translating QT TS

Copy link

Attributes

Import as a hidden string:


<message>

  <source>String for translation</source>

  <translation type="obsolete">translated string</translation>

</message>

<message>

  <source>String for translation</source>

  <translation type="unfinished">translated string</translation>

</message>

Plurals


<context>

    <name>apple_count</name>

    <message numerus="yes">

      <source>%s apple(s)</source>

      <translation>

        <numerusform>%s Apfel</numerusform>

        <numerusform>%s Äpfel</numerusform>

      </translation>

    </message>

  </context>

Custom Attributes

Source text will be taken from the <translation> node:


<TS x-crowdin-source-element="translation">

Comments

Comment to the string can be indicated by the following: <comment>, <extracomment>, <oldcomment>


<message>

  <source>Text for translation</source>

  <comment>commenting</comment>

  <translation>translation</translation>

</message>

Crowdin is a platform that helps you manage and translate content into different languages. Integrate Crowdin with your repo, CMS, or other systems. Source content is always up to date for your translators, and translated content is returned automatically.

Learn More
Categories
File Formats
Works with
  • Crowdin Enterprise
  • crowdin.com
Details

Released on May 16, 2022

Updated on Feb 23, 2024

Published by Crowdin

Identifier:qtts