.ts de Qt Linguist

Formato de traducción utilizado en aplicaciones programadas con 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.

Version 2

This is the default format for .ts files and supports the full set of Qt Linguist features available in Weblate.

Archivo de ejemplo:

<?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 &lt;https://demo.weblate.org/&gt;!</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>
Características admitidas

Extensiones de archivo

.ts

Lingüística

Ambos monolingüe y bilingüe

Admite plural

Yes

Admite descripciones

Yes

Admite explicación

No

Admite contexto

Yes

Admite lugar

Yes

Admite indicadores

Yes

Estados adicionales

Needs editing

Identificador de API

ts

Admite cadenas de solo lectura en

No

Admite retirar cadenas obsoletas

No

Version 1

The legacy format supports messages, contexts and the unfinished state. It does not support plurals, locations, descriptions or Weblate flags.

Características admitidas

Extensiones de archivo

.ts

Lingüística

Ambos monolingüe y bilingüe

Admite plural

No

Admite descripciones

No

Admite explicación

No

Admite contexto

Yes

Admite lugar

No

Admite indicadores

No

Estados adicionales

Needs editing

Identificador de API

ts1

Admite cadenas de solo lectura en

No

Admite retirar cadenas obsoletas

No

Configuración de Weblate

Weblate Configuración de componentes típico cuando utiliza un bilingüe

Máscara de archivos

i18n/app.*.ts

Archivo de base monolingüe

Vacío

Plantilla para traducciones nuevas

i18n/app.de.ts

Formato de archivo

Qt Linguist translation file (version 2)`

Weblate típico Configuración de componentes cuando utiliza como monolingüe

Máscara de archivos

i18n/app.*.ts

Archivo de base monolingüe

i18n/app.en.ts

Plantilla para traducciones nuevas

i18n/app.en.ts

Formato de archivo

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.