[gtksourceview] Simple implementation of the C_() macro
- From: Sébastien Wilmet <swilmet src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtksourceview] Simple implementation of the C_() macro
- Date: Sun, 26 May 2013 20:51:15 +0000 (UTC)
commit 0dfe36c35b5042b4f496350f4fec2760edfd0844
Author: Sébastien Wilmet <swilmet gnome org>
Date: Sun May 5 19:26:31 2013 +0200
Simple implementation of the C_() macro
https://bugzilla.gnome.org/show_bug.cgi?id=658371
gtksourceview/gtksourceview-i18n.h | 4 ++++
1 files changed, 4 insertions(+), 0 deletions(-)
---
diff --git a/gtksourceview/gtksourceview-i18n.h b/gtksourceview/gtksourceview-i18n.h
index 7fa520a..898a719 100644
--- a/gtksourceview/gtksourceview-i18n.h
+++ b/gtksourceview/gtksourceview-i18n.h
@@ -46,6 +46,8 @@ G_BEGIN_DECLS
# endif
# undef GD_
# define GD_(Domain,String) _gtksourceview_dgettext (Domain, String)
+# undef C_
+# define C_(Context,String) _gtksourceview_gettext (Context "\004" String)
#else
/* Stubs that do something close enough. */
# undef textdomain
@@ -66,6 +68,8 @@ G_BEGIN_DECLS
# define N_(String) (String)
# undef GD_
# define GD_(Domain,String) (g_strdup (String))
+# undef C_
+# define C_(Context,String) (String)
#endif
G_GNUC_INTERNAL
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]