[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: l10n-support/pology/scripts
From: Chusslove Illich <caslav.ilic () gmx ! net>
Date: 2009-12-31 23:35:14
Message-ID: 1262302514.590507.21981.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 1068336 by ilic:
Fixed parsing of message state for review ascriptions.
M +10 -3 poascribe.py
--- trunk/l10n-support/pology/scripts/poascribe.py #1068335:1068336
@@ -1747,6 +1747,10 @@
"""
ascripts = []
+ # States are switched on modification ascriptions,
+ # to be preserved from last modification on review ascriptions.
+ isfuzz = False
+ isobs = False
for cmnt in amsg.auto_comment:
p = cmnt.find(":")
if p < 0:
@@ -1787,17 +1791,20 @@
if lst:
revision = lst.pop(0).strip() or None
+ # States and separator only make sense on modification ascriptions.
seplen = 0
- isfuzz = False
- isobs = False
- if lst:
+ if lst and atype == ATYPE_MOD:
tmp = lst.pop(0).strip()
if _mark_fuzz in tmp:
isfuzz = True
tmp = tmp.replace(_mark_fuzz, "", 1)
+ else:
+ isfuzz = False
if _mark_obs in tmp:
isobs = True
tmp = tmp.replace(_mark_obs, "", 1)
+ else:
+ isobs = False
if tmp:
try:
seplen = int(tmp)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic