summaryrefslogtreecommitdiff
path: root/src/rules/po.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/rules/po.cpp')
-rw-r--r--src/rules/po.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/src/rules/po.cpp b/src/rules/po.cpp
index 54f34bc..f0d743f 100644
--- a/src/rules/po.cpp
+++ b/src/rules/po.cpp
@@ -142,7 +142,8 @@ parseLineRule(po)
else
print("Wrong msgId line. Missing last \".");
}
- else if (findCutFirst(data, "msgstr \""))
+ else if (findCutFirst(data, "msgstr \"") ||
+ findCutFirst(data, "msgstr[0] \""))
{ // msgStr start
if (readId)
readId = false;
@@ -152,6 +153,11 @@ parseLineRule(po)
else
print("Wrong msgStr line. Missing last \".");
}
+ else if (findCutFirst(data, "msgid_plural \"") ||
+ findCutFirst(data, "msgstr["))
+ {
+ // nothing
+ }
else if (findCutFirst(data, "\""))
{ // line start with "
if (readId)