Skip to content

Commit f588902

Browse files
committed
Add Qt example files
1 parent 0c5f715 commit f588902

2 files changed

Lines changed: 67 additions & 0 deletions

File tree

tests/qt/clock_it.ts

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="2.1" language="it" sourcelanguage="en">
4+
<context>
5+
<name>Main</name>
6+
<message>
7+
<location filename="../Main.qml" line="15"/>
8+
<source>Digital Clock</source>
9+
<translation>Orologio digitale</translation>
10+
</message>
11+
<message numerus="yes">
12+
<location filename="../Main.qml" line="33"/>
13+
<source>%n second(s)</source>
14+
<comment>seconds</comment>
15+
<translation>
16+
<numerusform>%n secondo</numerusform>
17+
<numerusform>%n secondi</numerusform>
18+
</translation>
19+
</message>
20+
<message>
21+
<location filename="../Main.qml" line="43"/>
22+
<source>Locale: %1</source>
23+
<translation>Impostazioni locali: %1</translation>
24+
</message>
25+
</context>
26+
</TS>

tests/qt/hello.ts

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,41 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!DOCTYPE TS>
3+
<TS version="1.1" language="cs">
4+
<context>
5+
<name>QPushButton</name>
6+
<message>
7+
<source>Hello world!</source>
8+
<translation>Ahoj světe!</translation>
9+
</message>
10+
<message>
11+
<source>File</source>
12+
<translation>Soubor</translation>
13+
<comment>Menu</comment>
14+
<extracomment>Developer's comment</extracomment>
15+
<translatorcomment>Translator's comment</translatorcomment>
16+
</message>
17+
<message numerus="yes">
18+
<source>Hello %n world(s)!</source>
19+
<translation>
20+
<numerusform>Ahoj %n světe!</numerusform>
21+
<numerusform>Ahoj %n světy!</numerusform>
22+
<numerusform>Ahoj %n světů!</numerusform>
23+
</translation>
24+
</message>
25+
</context>
26+
<context>
27+
<name></name>
28+
<message id="this_is_another_id">
29+
<source>An unfinished string</source>
30+
<translation type="unfinished"></translation>
31+
</message>
32+
<message>
33+
<source>Hi!</source>
34+
<translation type="unfinished">Čau!</translation>
35+
</message>
36+
<message id="format_string">
37+
<source>Count: %1</source>
38+
<translation>Počet: %1</translation>
39+
</message>
40+
</context>
41+
</TS>

0 commit comments

Comments
 (0)