.ts de Qt Linguist¶
Format de traducció utilitzat en aplicacions basades en Qt.
Qt Linguist files are used as both bilingual and monolingual translations. Weblate supports both the current version 2 format and the legacy version 1 format. Select the file format matching the version produced by your application.
Vegeu també
Version 2¶
This is the default format for .ts files and supports the full set of Qt
Linguist features available in Weblate.
Fitxer d’exemple:
<?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>
File extensions |
|
|---|---|
Lingualitat ⓘ |
Both monolingual and bilingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Admet l’explicació ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
Additional states ⓘ |
|
API identifier |
|
Admet cadenes de només lectura ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Version 1¶
The legacy format supports messages, contexts and the unfinished state. It does not support plurals, locations, descriptions or Weblate flags.
File extensions |
|
|---|---|
Lingualitat ⓘ |
Both monolingual and bilingual |
Supports plural ⓘ |
|
Supports descriptions ⓘ |
|
Admet l’explicació ⓘ |
|
Supports context ⓘ |
|
Supports location ⓘ |
|
Supports flags ⓘ |
|
Additional states ⓘ |
|
API identifier |
|
Admet cadenes de només lectura ⓘ |
|
Supports removing obsolete strings ⓘ |
|
Configuració del Weblate¶
Weblate típic Configuració dels components quan s’utilitza com a bilingüe |
|
|---|---|
Filtre de fitxers |
|
Fitxer de llengua base monolingüe |
«Buit». |
Plantilla per a traduccions noves |
|
Format de fitxer |
Qt Linguist translation file (version 2) |
Weblate típic Configuració dels components quan s’utilitza com a monolingüe |
|
|---|---|
Filtre de fitxers |
|
Fitxer de llengua base monolingüe |
|
Plantilla per a traduccions noves |
|
Format de fitxer |
Qt Linguist translation file (version 2) |
For version 1 files, use the same configuration and select Qt Linguist translation file (version 1) as the file format.