[prev in list] [next in list] [prev in thread] [next in thread]
List: kde-commits
Subject: l10n-support/pology/misc
From: Chusslove Illich <caslav.ilic () gmx ! net>
Date: 2009-01-31 23:44:47
Message-ID: 1233445487.507946.7417.nullmailer () svn ! kde ! org
[Download RAW message or body]
SVN commit 919433 by ilic:
Setting of states on embedding fixed, yet again.
M +6 -3 diff.py
--- trunk/l10n-support/pology/misc/diff.py #919432:919433
@@ -752,6 +752,10 @@
_dt_state, _dt_single, _dt_list = range(3)
_msg_diff_parts = (
+ ("obsolete", _dt_state),
+ ("fuzzy", _dt_state),
+ # ...fuzzy state must come before *_previous fields,
+ # not to null them in embedded diff when setting fuzzy to False.
("manual_comment", _dt_list),
("msgctxt_previous", _dt_single),
("msgid_previous", _dt_single),
@@ -760,8 +764,6 @@
("msgid", _dt_single),
("msgid_plural", _dt_single),
("msgstr", _dt_list),
- ("obsolete", _dt_state),
- ("fuzzy", _dt_state),
)
_msg_dpart_types = dict(_msg_diff_parts)
@@ -1090,7 +1092,8 @@
if _dcmnt_ind_state not in indargs:
indargs[_dcmnt_ind_state] = []
indargs[_dcmnt_ind_state].append(ediff)
- setattr(emsg, part, stag in (_new_tag, _equ_tag) and spart)
+ sval = bool(stag in (_new_tag, _equ_tag) and spart)
+ setattr(emsg, part, sval)
else:
raise StandardError, ("internal: unknown part '%s' "
"in differencing" % part)
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic