diff options
author | Andrei Karas <akaras@inbox.ru> | 2016-01-03 18:14:54 +0300 |
---|---|---|
committer | Andrei Karas <akaras@inbox.ru> | 2016-01-03 18:14:54 +0300 |
commit | b9f034639f3371187a95c9a6ed859948fcccd72a (patch) | |
tree | 95605e7f7514b1b2132b05503dd4303ef0586d9f /tests | |
parent | 00a41b3346a0e6aadad025a90b0089a01aa7df3e (diff) | |
download | mplint-b9f034639f3371187a95c9a6ed859948fcccd72a.tar.gz mplint-b9f034639f3371187a95c9a6ed859948fcccd72a.tar.bz2 mplint-b9f034639f3371187a95c9a6ed859948fcccd72a.tar.xz mplint-b9f034639f3371187a95c9a6ed859948fcccd72a.zip |
Add basic support for checking plurals in po files.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/testreport.txt | 1 | ||||
-rw-r--r-- | tests/testsrc/bad/uk.po | 9 |
2 files changed, 10 insertions, 0 deletions
diff --git a/tests/testreport.txt b/tests/testreport.txt index 366e750..4c8dcbf 100644 --- a/tests/testreport.txt +++ b/tests/testreport.txt @@ -43,6 +43,7 @@ [testsrc/bad/license6.h:5]: V005: Missing "This file is part of The ManaPlus Client." [testsrc/bad/packet.cpp:25]: V012: Wrong output packet creation. Must be 'createOutPacket(CMSG...' [testsrc/bad/uk.po:2257]: V010: Wrong character at end of translation line. +[testsrc/bad/uk.po:3712]: V010: Wrong character at end of translation line. [testsrc/bad/virtual1.cpp:33]: V013: Keywords virtual is useless if used with override or final [testsrc/bad/virtual1.cpp:36]: V013: Keywords virtual is useless if used with override or final [testsrc/bad/virtual1.h:31]: V013: Keywords virtual is useless if used with override or final diff --git a/tests/testsrc/bad/uk.po b/tests/testsrc/bad/uk.po index c9c6c77..1aef374 100644 --- a/tests/testsrc/bad/uk.po +++ b/tests/testsrc/bad/uk.po @@ -3701,6 +3701,15 @@ msgstr "" msgid "unnamed" msgstr "" +#. TRANSLATORS: This sentence may be translated differently +#. for different grammatical numbers (singular, plural, ...) +#: src/localplayer.cpp:922 +#, c-format +msgid "You picked up %d [@@%d|%s@@]1." +msgid_plural "You picked up %d [@@%d|%s@@]1." +msgstr[0] "You picked up %d [@@%d|%s@@]1" +msgstr[1] "" + #~ msgid "no" #~ msgstr "ні" |