Qt Linguist .ts

Qt temelli uygulamalarda kullanılan çeviri biçimi.

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.

Örnek dosya:

<?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>
Desteklenen özellikler

Dosya uzantıları

.ts

Dilsellik i

Hem tek dilli hem iki dilli

Çoğulları destekler

Yes

Tanımlamaları destekler

Yes

Açıklamayı destekler

No

Bağlamı destekler

Yes

Konumu destekler

Yes

İmleri destekler

Yes

Ek durumlar

Needs editing

API belirteci

ts

Salt okunur dizgeleri destekler

No

Supports removing obsolete strings

No

Version 1

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

Desteklenen özellikler

Dosya uzantıları

.ts

Dilsellik i

Hem tek dilli hem iki dilli

Çoğulları destekler

No

Tanımlamaları destekler

No

Açıklamayı destekler

No

Bağlamı destekler

Yes

Konumu destekler

No

İmleri destekler

No

Ek durumlar

Needs editing

API belirteci

ts1

Salt okunur dizgeleri destekler

No

Supports removing obsolete strings

No

Weblate yapılandırması

İki dilli olarak kullanıldığında tipik Weblate Bileşen yapılandırması

Dosya maskesi

i18n/app.*.ts

Tek dilli temel dil dosyası

Boş

Yeni çeviriler kalıbı

i18n/app.de.ts

Dosya biçimi

Qt Linguist translation file (version 2)

Tek dilli olarak kullanıldığında tipik Weblate Bileşen yapılandırması

Dosya maskesi

i18n/app.*.ts

Tek dilli temel dil dosyası

i18n/app.en.ts

Yeni çeviriler kalıbı

i18n/app.en.ts

Dosya biçimi

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.