diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/rules/po.cpp | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/rules/po.cpp b/src/rules/po.cpp index fadc650..7725177 100644 --- a/src/rules/po.cpp +++ b/src/rules/po.cpp @@ -24,6 +24,7 @@ registerRuleExt(po, "010", "(.+)[.](po)") bool readId(false); bool readStr(false); +bool skipOneCheck(false); std::string msgId; std::string msgStr; @@ -34,6 +35,11 @@ static void processMessage(RuleBase *const rule) readId = false; readStr = false; + if (skipOneCheck) + { + skipOneCheck = false; + return; + } // skip not translated lines if (msgStr.empty()) return; @@ -97,6 +103,7 @@ startRule(po) { readId = false; readStr = false; + skipOneCheck = false; msgId = std::string(); msgStr = std::string(); } @@ -109,7 +116,11 @@ endRule(po) parseLineRule(po) { - if (findCutFirst(data, "msgid \"")) + if (strStartWith(data, "#, fuzzy")) + { + skipOneCheck = true; + } + else if (findCutFirst(data, "msgid \"")) { // msgId start if (readStr) { |