blob: dca4dfa57b1dd99ab9b3cb335d16af9064d42213 (
plain) (
blame)
1
2
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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
|
from gettext import gettext as _
# Not a translator comment
_('foo')
# i18n: This is a translator comment
_('bar')
# i18n: This is a translator comment
# i18n: This is another translator comment
_('baz')
# i18n: This is a translator comment
# with multiple
# lines
_('qux')
# This comment should not be included because
# it does not start with the prefix
# i18n: This is a translator comment
_('quux')
# i18n: This is a translator comment
# with multiple lines
# i18n: This is another translator comment
# with multiple lines
_('corge')
# i18n: This comment should be ignored
_('grault')
# i18n: This comment should be ignored
# i18n: This is another translator comment
_('garply')
# i18n: comment should be ignored
x = 1
_('george')
# i18n: This comment should be ignored
x = 1
# i18n: This is another translator comment
_('waldo')
# i18n: This is a translator comment
x = 1 # i18n: This is also a translator comment
# i18n: This is another translator comment
_('waldo2')
# i18n: This is a translator comment
_('fred')
# i18n: This is another translator comment
_('fred')
# i18n: This is yet another translator comment
_('fred')
# i18n: This is a translator comment
# with multiple lines
_('fred')
_('plugh') # i18n: This comment should be ignored
_('foo' # i18n: This comment should be ignored
'bar') # i18n: This comment should be ignored
# i18n: This is a translator comment
_('xyzzy')
_('thud')
## i18n: This is a translator comment
# # i18n: This is another translator comment
### ### i18n: This is yet another translator comment
_('foos')
|