Alex,

Please apply this patch and tell me if everything then works for you.

Thanks,

   - Ian
diff --git a/ChangeLog b/ChangeLog
index d32958e..74fad13 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2012-09-06
+
+	* gtk-dialog.c:
+	* gtk-ui.c:
+	* ui.c:
+	* otr-plugin.c: Compile correctly even if i18n (libintl/gettext)
+	is not available.
+
 2012-09-04
 
 	* README: Release 4.0.0
diff --git a/gtk-dialog.c b/gtk-dialog.c
index 725c78c..f9af2da 100644
--- a/gtk-dialog.c
+++ b/gtk-dialog.c
@@ -48,6 +48,9 @@
 #ifdef ENABLE_NLS
 /* internationalisation headers */
 #include <glib/gi18n-lib.h>
+#else
+#define _(x) (x)
+#define N_(x) (x)
 #endif
 
 /* libotr headers */
diff --git a/gtk-ui.c b/gtk-ui.c
index 80261e7..00c337f 100644
--- a/gtk-ui.c
+++ b/gtk-ui.c
@@ -42,6 +42,9 @@
 #ifdef ENABLE_NLS
 /* internationalisation header */
 #include <glib/gi18n-lib.h>
+#else
+#define _(x) (x)
+#define N_(x) (x)
 #endif
 
 /* purple-otr headers */
diff --git a/otr-plugin.c b/otr-plugin.c
index bec8dd0..d455ca8 100644
--- a/otr-plugin.c
+++ b/otr-plugin.c
@@ -56,6 +56,11 @@
 /* internationalisation header */
 #include <glib/gi18n-lib.h>
 
+#else /* ENABLE_NLS */
+
+#define _(x) (x)
+#define N_(x) (x)
+
 #endif /* ENABLE_NLS */
 
 /* libotr headers */
diff --git a/ui.c b/ui.c
index d47ab1e..2885e99 100644
--- a/ui.c
+++ b/ui.c
@@ -34,6 +34,9 @@
 #ifdef ENABLE_NLS
 /* internationalisation header */
 #include <glib/gi18n-lib.h>
+#else
+#define _(x) (x)
+#define N_(x) (x)
 #endif
 
 /* libotr headers */
_______________________________________________
OTR-dev mailing list
[email protected]
http://lists.cypherpunks.ca/mailman/listinfo/otr-dev

Reply via email to