6 qsTranslate("FooContext", "Two");
8 var greeting_strings = [
10 QT_TRANSLATE_NOOP("FooContext", "Goodbye")
13 qsTr("One", "not the same one");
18 //: My second comment.
19 qsTranslate("BarContext", "See other comment");
23 qsTr("The comment explains it all");
28 qsTranslate("BazContext", "It should be clear by now");
30 /*: C-style comment. */
33 /*: Another C-style comment. */
34 qsTranslate("FooContext", "I really love C++");
36 /*: C-style comment, followed by */
38 qsTr("Qt is the best");
40 /*: Another C-style comment, followed by */
41 /*: yet another one. */
42 qsTranslate("BarContext", "Qt is the very best");
44 // This comment doesn't have any effect.
45 qsTr("The comment had no effect");
47 // This comment doesn't have any effect either.
48 qsTranslate("BazContext", "The comment had no effect, really");
50 /* This C-style comment doesn't have any effect. */
51 qsTr("No comment to your comment");
53 /* This C-style comment doesn't have any effect either. */
54 qsTranslate("FooContext", "I refuse to comment on that");
57 qsTr("This string has an identifier");
60 qsTranslate("BarContext", "This string also has an identifier");
63 qsTr("This string has meta-data");
65 //~ loc-layout_id foo_dialog
66 qsTranslate("BazContext", "This string also has meta-data");
68 // This comment is to be ignored.
69 //: This is a comment for the translator.
72 //~ magic-stuff This means something special.
73 qsTr("This string has a lot of information");
75 // This comment is also to be ignored.
76 //: This is another comment for the translator.
78 //~ foo-bar Important stuff
79 //~ needle-in-haystack Found
81 qsTranslate("FooContext", "This string has even more information");
83 qsTr("This string has disambiguation", "Disambiguation");
85 qsTranslate("BarContext", "This string also has disambiguation", "Another disambiguation");
87 qsTr("This string contains plurals", "", 10);
89 qsTrId("qtn_foo_bar");
91 var more_greeting_strings = [ QT_TRID_NOOP("qtn_needle"), QT_TRID_NOOP("qtn_haystack") ];
93 //: qsTrId() with comment, meta-data and plurals.
95 qsTrId("qtn_bar_baz", 10);
98 qsTrId("qtn_baz_biz");