[glib] Add C_() to glibintl.h
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [glib] Add C_() to glibintl.h
- Date: Tue, 24 Aug 2010 23:11:49 +0000 (UTC)
commit 3cee971db55da9b3bdd1c05e5be68152cd6fd165
Author: Emmanuele Bassi <ebassi linux intel com>
Date: Tue Aug 24 22:47:02 2010 +0100
Add C_() to glibintl.h
glib/glibintl.h | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/glib/glibintl.h b/glib/glibintl.h
index 47a7910..6d79a26 100644
--- a/glib/glibintl.h
+++ b/glib/glibintl.h
@@ -13,6 +13,7 @@ G_CONST_RETURN gchar *glib_gettext (const gchar *str) G_GNUC_FORMAT(1);
#define _(String) glib_gettext(String)
/* Split out this in the code, but keep it in the same domain for now */
#define P_(String) glib_gettext(String)
+#define C_(Context,String) g_dpgettext (NULL, Context "\004" String, strlen (Context) + 1)
#ifdef gettext_noop
#define N_(String) gettext_noop(String)
@@ -23,6 +24,7 @@ G_CONST_RETURN gchar *glib_gettext (const gchar *str) G_GNUC_FORMAT(1);
#define _(String) (String)
#define N_(String) (String)
#define P_(String) (String)
+#define C_(Context,String) (String)
#define textdomain(String) ((String) ? (String) : "messages")
#define gettext(String) (String)
#define dgettext(Domain,String) (String)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]