summaryrefslogtreecommitdiffstats
path: root/kbabel/datatools/whitespace/test.po
blob: 96fb59d7dc5d60e18375670533c3340fadf5f9ac (plain)
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# Test file to validate the whitespace checking tool
# Dwayne Bailey <dwayne@translate.org.za>, 2003
#
msgid ""
msgstr ""
"Project-Id-Version: test\n"
"Last-Translator: Dwayne Bailey <dwayne@translate.org.za>\n"
"PO-Revision-Date: 2003-01-09 09:35+0200\n"
"Language-Team:  <english@translate.org.za>\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: KBabel 1.2\n"

# msgstr incorrectly translated with whitespace - 2*<sp>
# Expected Result = error
msgid "Some translation string"
msgstr "  "

# msgid with 3*<sp> translated to 2*<sp> This should be valid
# Expected Result = valid
msgid "   "
msgstr "  "

# plural checks for KDE with a blank msgstr
# Expected Result = error
msgid ""
"_n: Plural translation\n"
"Second form %n"
msgstr ""
"First fine second wrong\n"
"    "

# plural checks for KDE with everything correct
# Expected Result = valid
msgid ""
"_n: Plural translation\n"
"Second form %n"
msgstr ""
"First fine\n"
"Second fine"

# plural checks for KDE with bad msgid
# Expected Result = valid
msgid ""
"_n: \n"
"First form missing"
msgstr ""
"\n"
"Second fine"

# plural checks for KDE with bad msgid
# Expected Result = valid
msgid ""
"_n: Second is missing\n"
""
msgstr ""
"First fine\n"
""

# Plural check on GNU format with a missing plural
# Expected Result = error
msgid "Plural translation"
msgid_plural "The second form %n"
msgstr[0] "First fine second wrong"
msgstr[1] "    "

# Plural check on GNU format in order
# Expected Result = valid
msgid "Plural translation"
msgid_plural "The second form %n"
msgstr[0] "First fine"
msgstr[1] "Second fine"

# Plural check on GNU format with singular missing
# Expected Result = valid
msgid ""
msgid_plural "Singluar is missing"
msgstr[0] ""
msgstr[1] "Plural was translated"

# Plural check on GNU format with plural missing
# Expected Result = valid
msgid "Plural is missing"
msgid_plural ""
msgstr[0] "Singular is translated"
msgstr[1] ""

# KDE specific: desktop file contains whitespace transaltion
# Expected Result = error
msgid "Name=No Spaces"
msgstr "Name=  "