Alexandre Julliard : wrc: Treat empty translation strings as missing.

Alexandre Julliard julliard at winehq.org
Fri Jan 7 09:36:25 CST 2011


Module: wine
Branch: master
Commit: 45ef8e8a180652570cec16f05cf85aecaae629be
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=45ef8e8a180652570cec16f05cf85aecaae629be

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Fri Jan  7 10:20:23 2011 +0100

wrc: Treat empty translation strings as missing.

---

 tools/wrc/po.c |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diff --git a/tools/wrc/po.c b/tools/wrc/po.c
index 6cfb5b4..c075a39 100644
--- a/tools/wrc/po.c
+++ b/tools/wrc/po.c
@@ -774,8 +774,9 @@ static string_t *translate_string( po_file_t po, string_t *str, int *found )
 
     if (msg && !po_message_is_fuzzy( msg ))
     {
-        (*found)++;
         transl = po_message_msgstr( msg );
+        if (!transl[0]) transl = msgid;  /* ignore empty strings */
+        else (*found)++;
     }
     else transl = msgid;
 




More information about the wine-cvs mailing list