Patchwork [4,of,9] i18n: posplit removes the entry "::" from the pot file

login
register
mail settings
Submitter Simon Heimberg
Date Feb. 3, 2014, 9 p.m.
Message ID <af4513e784984aa98429.1391461224@lapsi.heimberg.home>
Download mbox | patch
Permalink /patch/3443/
State Accepted
Commit 3fe079d3a2b498983b99dfa6e616efb4b43994c5
Headers show

Comments

Simon Heimberg - Feb. 3, 2014, 9 p.m.
# HG changeset patch
# User Simon Heimberg <simohe@besonet.ch>
# Date 1384716273 -3600
#      Sun Nov 17 20:24:33 2013 +0100
# Branch stable
# Node ID af4513e784984aa9842902acc251dcf5f6bb7dc9
# Parent  3a571b95da6767be6a827ceb3c9f81aaab1941be
i18n: posplit removes the entry "::" from the pot file

We do not gain anything by allowing to translate it.

Patch

diff -r 3a571b95da67 -r af4513e78498 i18n/posplit
--- a/i18n/posplit	Wed Jan 29 16:47:00 2014 +0100
+++ b/i18n/posplit	Sun Nov 17 20:24:33 2013 +0100
@@ -51,7 +51,7 @@ 
 
         delta = 0
         for msgid, msgstr in zip(msgids, msgstrs):
-            if msgid:
+            if msgid and msgid != '::':
                 newentry = mkentry(entry, delta, msgid, msgstr)
                 mdirective = findd.match(msgid)
                 if mdirective: