[glib] gsettings: Don't translate ""



commit 04c56cf6e77488ce7447e7a99afbada4711a8916
Author: Matthias Clasen <mclasen redhat com>
Date:   Wed Oct 7 23:34:42 2015 -0400

    gsettings: Don't translate ""
    
    The empty msgid is traditionally used to store po file metadata,
    so calling gettext with an empty msgid is not the right thing
    to do.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=756214

 gio/gsettingsschema.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/gio/gsettingsschema.c b/gio/gsettingsschema.c
index 9555c0a..a0265e7 100644
--- a/gio/gsettingsschema.c
+++ b/gio/gsettingsschema.c
@@ -627,7 +627,7 @@ end_element (GMarkupParseContext *context,
 
           normalised = normalise_whitespace (info->string->str);
 
-          if (gettext_domain)
+          if (gettext_domain && normalised[0])
             {
               gchar *translated;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]