| 1 |
import QtQuick 2.0 |
| 2 |
|
| 3 |
QtObject { |
| 4 |
objectName: "test" |
| 5 |
|
| 6 |
property string basic: qsTr("hello") |
| 7 |
property string basic2: qsTranslate("CustomContext", "goodbye") |
| 8 |
property string basic3: if (objectName.length > 0) qsTr("hello") |
| 9 |
|
| 10 |
property string disambiguation: qsTr("hi", "informal 'hello'") |
| 11 |
property string disambiguation2: qsTranslate("CustomContext", "see ya", "informal 'goodbye'") |
| 12 |
property string disambiguation3: if (objectName.length > 0) qsTr("hi", "informal 'hello'") |
| 13 |
|
| 14 |
property string _noop: QT_TR_NOOP("hello") |
| 15 |
property string _noop2: QT_TRANSLATE_NOOP("CustomContext", "goodbye") |
| 16 |
property string noop: qsTr(_noop) |
| 17 |
property string noop2: qsTranslate("CustomContext", _noop2) |
| 18 |
|
| 19 |
property string singular: qsTr("%n duck(s)", "", 1) |
| 20 |
property string singular2: if (objectName.length > 0) qsTr("%n duck(s)", "", 1) |
| 21 |
property string plural: qsTr("%n duck(s)", "", 2) |
| 22 |
property string plural2: if (objectName.length > 0) qsTr("%n duck(s)", "", 2) |
| 23 |
} |