[glib] gsettings: Don't translate ""
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] gsettings: Don't translate ""
- Date: Wed, 16 Dec 2015 14:07:57 +0000 (UTC)
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]