[monkey-bubble: 60/753] Exclude gnome-i18n.h. Add `_' macro as gnome-about.c. Mark translatable
- From: Sven Herzberg <herzi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [monkey-bubble: 60/753] Exclude gnome-i18n.h. Add `_' macro as gnome-about.c. Mark translatable
- Date: Wed, 14 Jul 2010 22:00:43 +0000 (UTC)
commit 896d6fd18fe39d8691b12ef5344977ff3d97970f
Author: Changwoo Ryu <cwryu src gnome org>
Date: Wed Jan 28 22:00:14 1998 +0000
Exclude gnome-i18n.h. Add `_' macro as gnome-about.c. Mark translatable
* libgnomeui/gnome-scores.c: Exclude gnome-i18n.h. Add
`_' macro as gnome-about.c.
* libgnomeui/gnome-messagebox.c: Mark translatable strings.
libgnomeui/gnome-scores.c | 22 +++++++++++++++++++++-
1 files changed, 21 insertions(+), 1 deletions(-)
---
diff --git a/libgnomeui/gnome-scores.c b/libgnomeui/gnome-scores.c
index a1655fd..b6f9a04 100644
--- a/libgnomeui/gnome-scores.c
+++ b/libgnomeui/gnome-scores.c
@@ -4,12 +4,12 @@
* Free software (under the terms of the GNU Library General Public License)
*/
+#include <config.h>
#include <string.h>
#include "gnome-scores.h"
#include "libgnome/gnome-defs.h"
#include "libgnome/gnome-util.h"
#include "libgnome/gnome-config.h"
-#include "libgnome/gnome-i18n.h"
#include "libgnome/gnome-score.h"
#include "libgnome/gnome-string.h"
@@ -17,6 +17,26 @@
#include "time.h"
+/* Library must use dgettext, not gettext. */
+#ifdef ENABLE_NLS
+# include <libintl.h>
+# define _(String) dgettext (PACKAGE, String)
+# ifdef gettext_noop
+# define N_(String) gettext_noop (String)
+# else
+# define N_(String) (String)
+# endif
+#else
+/* Stubs that do something close enough. */
+# define textdomain(String) (String)
+# define gettext(String) (String)
+# define dgettext(Domain,Message) (Message)
+# define dcgettext(Domain,Message,Type) (Message)
+# define bindtextdomain(Domain,Directory) (Domain)
+# define _(String) (String)
+# define N_(String) (String)
+#endif
+
static void gnome_scores_class_init (GnomeScoresClass *klass);
static void gnome_scores_init (GnomeScores *scores);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]