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.cpp24
1 files changed, 23 insertions, 1 deletions
diff --git a/src/rules/po.cpp b/src/rules/po.cpp
index 0aab5c5..fadc650 100644
--- a/src/rules/po.cpp
+++ b/src/rules/po.cpp
@@ -63,11 +63,33 @@ static void processMessage(RuleBase *const rule)
if (findCutLast(name, "po/ar.po") || findCutLast(name, "po/fa.po"))
return;
- if (cId == '.' || cId == ',' ||cId == '!' || cId == '?' || cId == '-')
+ if (cId == '.' || cId == ',' || cId == '!' || cId == '?' || cId == '-'
+ || cId == ':' || cId == ';' || cId == '+' || cId == '|'
+ || cId == ' ')
{
if (cId != cStr)
rule->print("Wrong character at end of translation line.");
}
+ if (msgId.find("###") != std::string::npos
+ && msgStr.find("###") == std::string::npos)
+ {
+ rule->print("Missing ### in translation.");
+ }
+/*
+ if (msgId.find("\\n") != std::string::npos)
+ {
+ if (!findCutLast(name, "help/zh_CN.po"))
+ {
+ if (msgStr.find("\\n") == std::string::npos)
+ rule->print("Missing \\n in translation.");
+ }
+ }
+ else
+ {
+ if (msgStr.find("\\n") != std::string::npos)
+ rule->print("Useless \\n in translation.");
+ }
+*/
}
}