<?xml version="1.0" encoding="utf-8"?>
<TS version="2.1" language="en" sourcelanguage="en">
<context>
<name>страница</name>
<message>
<source>Text for translation</source>
<comment>commenting</comment>
<translation type="obsolete">переведенная строка</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>
Импортировать как скрытую строку:
<message>
<source>String for translation</source>
<translation type="obsolete">переведенная строка</translation>
</message>
<message>
<source>String for translation</source>
<translation type="unfinished">переведенная строка</translation>
</message>
<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>
Исходный текст будет взят из узла <translation>
:
<TS x-crowdin-source-element="translation">
Комментарий к строке может быть указан таким образом: <comment>
, <extracomment>
, <oldcomment>
<message>
<source>Text for translation</source>
<comment>commenting</comment>
<translation>translation</translation>
</message>