Debian Codegraph @

Lib/test/test_tools/i18n_data/comments.py

raw
1 from gettext import gettext as _
2
3 # Not a translator comment
4 _('foo')
5
6 # i18n: This is a translator comment
7 _('bar')
8
9 # i18n: This is a translator comment
10 # i18n: This is another translator comment
11 _('baz')
12
13 # i18n: This is a translator comment
14 # with multiple
15 # lines
16 _('qux')
17
18 # This comment should not be included because
19 # it does not start with the prefix
20 # i18n: This is a translator comment
21 _('quux')
22
23 # i18n: This is a translator comment
24 # with multiple lines
25 # i18n: This is another translator comment
26 # with multiple lines
27 _('corge')
28
29 # i18n: This comment should be ignored
30
31 _('grault')
32
33 # i18n: This comment should be ignored
34
35 # i18n: This is another translator comment
36 _('garply')
37
38 # i18n: comment should be ignored
39 x = 1
40 _('george')
41
42 # i18n: This comment should be ignored
43 x = 1
44 # i18n: This is another translator comment
45 _('waldo')
46
47 # i18n: This is a translator comment
48 x = 1 # i18n: This is also a translator comment
49 # i18n: This is another translator comment
50 _('waldo2')
51
52 # i18n: This is a translator comment
53 _('fred')
54
55 # i18n: This is another translator comment
56 _('fred')
57
58 # i18n: This is yet another translator comment
59 _('fred')
60
61 # i18n: This is a translator comment
62 # with multiple lines
63 _('fred')
64
65 _('plugh') # i18n: This comment should be ignored
66
67 _('foo' # i18n: This comment should be ignored
68 'bar') # i18n: This comment should be ignored
69
70 # i18n: This is a translator comment
71 _('xyzzy')
72 _('thud')
73
74
75 ## i18n: This is a translator comment
76 # # i18n: This is another translator comment
77 ### ### i18n: This is yet another translator comment
78 _('foos')