[gcr] Use the _() macro instead of gettext(). If gi18n-lib.h is included, the translation domain informati
- From: Gabor Keleman <kelemeng src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] Use the _() macro instead of gettext(). If gi18n-lib.h is included, the translation domain informati
- Date: Sun, 18 Aug 2013 09:34:34 +0000 (UTC)
commit 7e5b743a880f9dfb66d17baa3af39fd2b42d8944
Author: Gabor Kelemen <kelemeng gnome hu>
Date: Sat Aug 17 09:02:20 2013 +0200
Use the _() macro instead of gettext(). If gi18n-lib.h is
included, the translation domain information needs to be explicitely
passed in a [g_]dgettext() call, which is done by the _() macro.
egg/egg-oid.c | 2 +-
ui/gcr-certificate-renderer.c | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/egg/egg-oid.c b/egg/egg-oid.c
index 4f2da9c..688faf7 100644
--- a/egg/egg-oid.c
+++ b/egg/egg-oid.c
@@ -161,7 +161,7 @@ egg_oid_get_description (GQuark oid)
if (info == NULL)
return g_quark_to_string (oid);
- return gettext (info->description);
+ return _(info->description);
}
guint
diff --git a/ui/gcr-certificate-renderer.c b/ui/gcr-certificate-renderer.c
index 7e77522..4d37905 100644
--- a/ui/gcr-certificate-renderer.c
+++ b/ui/gcr-certificate-renderer.c
@@ -211,7 +211,7 @@ append_extension_key_usage (GcrRenderer *renderer,
if (key_usage & usage_descriptions[i].usage) {
if (text->len > 0)
g_string_append_unichar (text, GCR_DISPLAY_VIEW_LINE_BREAK);
- g_string_append (text, gettext (usage_descriptions[i].description));
+ g_string_append (text, _(usage_descriptions[i].description));
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]