[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: l10n-kde4/scripts/pology/file
From: Chusslove Illich <caslav.ilic () gmx ! net>
Date: 2008-03-20 15:11:16
Message-ID: 1206025876.669128.7916.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 788067 by ilic:
Better plural index evaluation.
M +4 -2 catalog.py
--- trunk/l10n-kde4/scripts/pology/file/catalog.py #788066:788067
@@ -1013,7 +1013,9 @@
evalstr = ""
while 1:
p = plustr.find("?")
- if p < 0: break
+ if p < 0:
+ evalstr += " " + plustr
+ break
cond = plustr[:p]
plustr = plustr[p + 1:]
cond = cond.replace("&&", " and ")
@@ -1023,9 +1025,9 @@
body = plustr[:p]
plustr = plustr[p + 1:]
evalstr += "\"" + body + "\" or "
- evalstr += "\"" + plustr + "\""
if not evalstr.strip():
evalstr = "0"
+ print "{%s}" % evalstr
# Record the current evaluable definition.
self._plustr_eval = evalstr
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic