Debian Codegraph @

tests/auto/linguist/lupdate/testdata/good/multiple_locations/main.cpp

raw
1 // Copyright (C) 2016 The Qt Company Ltd.
2 // SPDX-License-Identifier: LicenseRef-Qt-Commercial OR GPL-3.0-only
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28 #include <QtCore>
29 class DClass
30 {
31
32 //: This is a comment, too.
33 const char *c_noop_translate = QT_TRANSLATE_NOOP("context", "just a message");
34 void func();
35 };
36 void DClass::func() {
37 //: commented
38 qtTrId("lollipop");
39
40 //% "this is the source text"
41 //~ meta so-meta
42 //: even more commented
43 qtTrId("lollipop");
44
45 //% "this is contradicting source text"
46 qtTrId("lollipop");
47
48 //~ meta too-much-meta
49 qtTrId("lollipop");
50
51
52
53 //~ meta so-meta
54 auto a = QObject::tr("another message", "here with a lot of noise in the comment so it is long enough");
55
56 //~ meta too-much-meta
57 auto aa = QObject::tr("another message", "here with a lot of noise in the comment so it is long enough"); // old parser: not picked up
58
59
60
61 //: commented
62 qtTrId("lollipop");
63 }