C

Qt Quick Ultralite 翻译示例

<?xml version="1.0" encoding="utf-8"?>
<!DOCTYPE TS>
<TS version="2.1" language="th_TH" sourcelanguage="en_US">
<context>
    <name>translation</name>
    <message>
        <location filename="translation.qml" line="108"/>
        <source>English language (US) &lt;img src=&quot;usa-flag-small-icon.png&quot; width=&quot;38&quot; height=&quot;20&quot;&gt;</source>
        <oldsource>English language (US) &lt;img src=&quot;usa-flag-small-icon.png&quot;&gt; width=&quot;38&quot; height=&quot;20&quot;</oldsource>
        <translation>ภาษาไทย &lt;img src=&quot;thai-flag-small-icon.png&quot; width=&quot;30&quot; height=&quot;20&quot;&gt;</translation>
    </message>
    <message>
        <location filename="translation.qml" line="154"/>
        <location filename="translation.qml" line="192"/>
        <source>orange</source>
        <comment>color</comment>
        <translation>สีส้ม</translation>
    </message>
    <message>
        <location filename="translation.qml" line="158"/>
        <location filename="translation.qml" line="198"/>
        <source>orange</source>
        <comment>fruit</comment>
        <translation>ผลไม้สีส้ม</translation>
    </message>
    <message>
        <location filename="translation.qml" line="162"/>
        <location filename="translation.qml" line="204"/>
        <source>sunrise</source>
        <translation>พระอาทิตย์ขึ้น</translation>
    </message>
    <message>
        <location filename="translation.qml" line="168"/>
        <location filename="translation.qml" line="212"/>
        <source>hello</source>
        <translation></translation>
    </message>
</context>
</TS>