From 00a41b3346a0e6aadad025a90b0089a01aa7df3e Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sun, 3 Jan 2016 17:27:22 +0300 Subject: Add unused po files into ignore. --- src/rules/po.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) (limited to 'src/rules') diff --git a/src/rules/po.cpp b/src/rules/po.cpp index 7725177..54f34bc 100644 --- a/src/rules/po.cpp +++ b/src/rules/po.cpp @@ -68,10 +68,19 @@ static void processMessage(RuleBase *const rule) std::string name = rule->getFile(); if (findCutLast(name, "po/ar.po") || findCutLast(name, "po/fa.po")) return; + if (name.find("po/unused/") != std::string::npos) + return; - if (cId == '.' || cId == ',' || cId == '!' || cId == '?' || cId == '-' - || 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."); -- cgit v1.2.3-60-g2f50