Adding internationalisation support
authorNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Fri, 13 Aug 2010 22:12:14 +0000 (18:12 -0400)
committerNicolas Dufresne <nicolas.dufresne@collabora.co.uk>
Mon, 16 Aug 2010 15:27:20 +0000 (11:27 -0400)
Makefile.am
autogen.sh
configure.ac
po/LINGUAS [new file with mode: 0644]
po/POTFILES.in [new file with mode: 0644]
po/en_CA.po [new file with mode: 0644]
proxy/libproxy/glibproxyresolver.c

index 866666b..f880c5a 100644 (file)
@@ -3,7 +3,7 @@ include $(top_srcdir)/Makefile.decl
 
 ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
 
-SUBDIRS =
+SUBDIRS = po
 
 if HAVE_LIBPROXY
 SUBDIRS += proxy/libproxy
index 4abb84c..2cc42e7 100755 (executable)
@@ -94,6 +94,7 @@ touch README INSTALL
 $ACLOCAL $ACLOCAL_FLAGS || exit $?
 
 libtoolize --force || exit $?
+intltoolize --force --copy || exit $?
 gtkdocize || exit $?
 
 autoheader || exit $?
index fde19fa..fbcd490 100644 (file)
@@ -23,6 +23,17 @@ AS_IF([test "x$PKG_CONFIG" = "xno"],
 
 dnl Checks for libraries.
 
+dnl ****************************
+dnl *** Checks for intltool  ***
+dnl ****************************
+
+IT_PROG_INTLTOOL([0.35.0])
+GETTEXT_PACKAGE=glib-networking
+
+AC_SUBST([GETTEXT_PACKAGE])
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[The gettext domain name])
+AM_GLIB_GNU_GETTEXT
+
 dnl *****************************
 dnl *** Check GLib GIO        ***
 dnl *****************************
@@ -62,5 +73,6 @@ dnl Checks for typedefs, structures, and compiler characteristics.
 dnl Checks for library functions.
 
 AC_CONFIG_FILES([Makefile
+                 po/Makefile.in po/Makefile
                  proxy/libproxy/Makefile])
 AC_OUTPUT
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644 (file)
index 0000000..3e00040
--- /dev/null
@@ -0,0 +1 @@
+en_CA
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644 (file)
index 0000000..4894958
--- /dev/null
@@ -0,0 +1 @@
+proxy/libproxy/glibproxyresolver.c
diff --git a/po/en_CA.po b/po/en_CA.po
new file mode 100644 (file)
index 0000000..c251c5d
--- /dev/null
@@ -0,0 +1,21 @@
+# English/Canada translation of glib-networking.
+# Copyright (C) 2010 Collabora Ltd.
+# This file is distributed under the same license as the glib-networking package.
+# Nicolas Dufresne <nicolas.dufresne@collabora.co.uk>, 2010.
+#
+#
+msgid ""
+msgstr ""
+"Project-Id-Version: glib-networking\n"
+"Report-Msgid-Bugs-To: \n"
+"POT-Creation-Date: 2010-08-13 16:59-0400\n"
+"PO-Revision-Date: 2010-08-13 17:42-0400\n"
+"Last-Translator: Nicolas Dufresne <nicolasd@git.gnome.org>\n"
+"Language-Team: Canadian English <nicolasd@git.gnome.org>\n"
+"MIME-Version: 1.0\n"
+"Content-Type: text/plain; charset=UTF-8\n"
+"Content-Transfer-Encoding: 8bit\n"
+
+#: ../proxy/libproxy/glibproxyresolver.c:142
+msgid "Proxy resolver internal error."
+msgstr "Proxy resolver internal error."
index 5ee5d9c..e55b730 100644 (file)
@@ -29,7 +29,7 @@
 #include "glibproxyresolver.h"
 
 #include <glib.h>
-#include <glib/gi18n.h>
+#include <glib/gi18n-lib.h>
 
 struct _GLibProxyResolver {
   GObject parent_instance;