Mercurial > moin > 1.9
changeset 3003:f54c41b3b7ce
fixed fuzzy state bug in msgfmt.py code (this killed non-fuzzy, valid translations in some cases!) (port from 1.6)
author | Thomas Waldmann <tw AT waldmann-edv DOT de> |
---|---|
date | Sun, 06 Jan 2008 18:31:47 +0100 |
parents | 702d72f11b95 |
children | 0ae378dc1edf |
files | MoinMoin/i18n/msgfmt.py |
diffstat | 1 files changed, 3 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/MoinMoin/i18n/msgfmt.py Sun Jan 06 18:29:12 2008 +0100 +++ b/MoinMoin/i18n/msgfmt.py Sun Jan 06 18:31:47 2008 +0100 @@ -23,13 +23,13 @@ Display version information and exit. Written by Martin v. Löwis <loewis@informatik.hu-berlin.de>, -refactored by Thomas Waldmann <tw AT waldmann-edv DOT de>. +refactored / fixed by Thomas Waldmann <tw AT waldmann-edv DOT de>. """ import sys, os import getopt, struct, array -__version__ = "1.2" +__version__ = "1.3" class SyntaxErrorException(Exception): """raised when having trouble parsing the po file content""" @@ -80,6 +80,7 @@ if line.startswith('msgid'): if section == STR: self.add(msgid, msgstr, fuzzy) + fuzzy = False section = ID line = line[5:] msgid = msgstr = ''