Alexandre Julliard : wrc: Do not use translations that are marked fuzzy.
Alexandre Julliard
julliard at winehq.org
Wed Jan 5 12:40:26 CST 2011
Module: wine
Branch: master
Commit: 1898f22ca5d2d79750e9820cfe2b4204ea9432cc
URL: http://source.winehq.org/git/wine.git/?a=commit;h=1898f22ca5d2d79750e9820cfe2b4204ea9432cc
Author: Alexandre Julliard <julliard at winehq.org>
Date: Tue Jan 4 20:26:13 2011 +0100
wrc: Do not use translations that are marked fuzzy.
---
tools/wrc/po.c | 9 +++++++--
1 files changed, 7 insertions(+), 2 deletions(-)
diff --git a/tools/wrc/po.c b/tools/wrc/po.c
index fff4c36..2b7ed6d 100644
--- a/tools/wrc/po.c
+++ b/tools/wrc/po.c
@@ -772,8 +772,13 @@ static string_t *translate_string( po_file_t po, string_t *str, int *found )
msg = find_message( po, msgid, context, &iterator );
po_message_iterator_free( iterator );
- if (msg) (*found)++;
- transl = msg ? po_message_msgstr( msg ) : msgid;
+ if (msg && !po_message_is_fuzzy( msg ))
+ {
+ (*found)++;
+ transl = po_message_msgstr( msg );
+ }
+ else transl = msgid;
+
new = xmalloc( sizeof(*new) );
new->type = str_unicode;
new->size = wine_utf8_mbstowcs( 0, transl, strlen(transl), NULL, 0 );
More information about the wine-cvs
mailing list