diff options
author | Bastien Montagne <montagne29@wanadoo.fr> | 2013-01-13 21:43:04 +0400 |
---|---|---|
committer | Bastien Montagne <montagne29@wanadoo.fr> | 2013-01-13 21:43:04 +0400 |
commit | 884d7caa24fda6574163c07a764ac997cce82a72 (patch) | |
tree | 9b108dd88bebedd7663ecec5805bd8ee3424ba74 /release/scripts/modules/bl_i18n_utils/utils.py | |
parent | 21e5451c3b5bae099065c3160d6aa52d2f76ecc9 (diff) |
Minor updates:
*Made branches' po update multi-process!
*0.8 looks a bit too much a "similarity cutoff" value for messages, changed to 0.75.
Diffstat (limited to 'release/scripts/modules/bl_i18n_utils/utils.py')
-rw-r--r-- | release/scripts/modules/bl_i18n_utils/utils.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/release/scripts/modules/bl_i18n_utils/utils.py b/release/scripts/modules/bl_i18n_utils/utils.py index ff5ed4f93d7..891bbae3871 100644 --- a/release/scripts/modules/bl_i18n_utils/utils.py +++ b/release/scripts/modules/bl_i18n_utils/utils.py @@ -226,7 +226,7 @@ class I18nMessages: def merge(self, replace=False, *args): pass - def update(self, ref, use_similar=0.8, keep_old_commented=True): + def update(self, ref, use_similar=0.75, keep_old_commented=True): """ Update this I18nMessage with the ref one. Translations from ref are never used. Source comments from ref completely replace current ones. If use_similar is not 0.0, it will try to match new messages in ref with an @@ -493,7 +493,6 @@ class I18nMessages: msgstr_lines.append(line) else: self.parsing_errors.append((line_nr, "regular string outside msgctxt, msgid or msgstr scope")) - print(line) # If no final empty line, last message is not finalized! if reading_msgstr: @@ -534,7 +533,6 @@ class I18nMessages: else: chunks += ["\n" + _pmsgctxt + "\"" + msg.msgctxt + "\""] if len(msg.msgid_lines) > 1: - print(msg.msgid_lines) chunks += [ "\n" + _pmsgid + "\"\"\n" + _p + "\"", ("\"\n" + _p + "\"").join(msg.msgid_lines), |