[gom] Added i18n support
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gom] Added i18n support
- Date: Mon, 14 Apr 2014 19:38:40 +0000 (UTC)
commit 3440d26bc9f67dec2da925e714cb844eb50bb829
Author: Daniel Mustieles <daniel mustieles gmail com>
Date: Mon Apr 14 12:18:23 2014 +0200
Added i18n support
Makefile.am | 2 +-
configure.ac | 17 +++++++++++++++++
po/POTFILES.in | 8 ++++++++
3 files changed, 26 insertions(+), 1 deletions(-)
---
diff --git a/Makefile.am b/Makefile.am
index 77f5d7b..4b7df51 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -3,7 +3,7 @@ include data/Makefile.include
include gom/Makefile.include
include tests/Makefile.include
-SUBDIRS = . doc
+SUBDIRS = . doc po
ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
DISTCHECK_CONFIGURE_FLAGS = --enable-gtk-doc --enable-introspection --enable-silent-rules
diff --git a/configure.ac b/configure.ac
index a76a6a7..af20ecf 100644
--- a/configure.ac
+++ b/configure.ac
@@ -102,6 +102,22 @@ AS_CASE([$enable_debug],
[AC_MSG_ERROR([Unknown argument to --enable-debug])]
)
+dnl -------------------------------------------------------------------
+dnl Use intltools.
+dnl -------------------------------------------------------------------
+IT_PROG_INTLTOOL([0.40.0])
+
+AC_SUBST([GETTEXT_PACKAGE], [gom])
+AC_DEFINE([GETTEXT_PACKAGE], [PACKAGE_TARNAME], [Define to the gettext package name.])
+
+
+dnl gettext library
+AC_CHECK_LIB([gettextpo], [po_message_is_format],
+ [GETTEXT_LIBS=-lgettextpo], [
+ AC_MSG_ERROR(Missing gettext library)])
+
+AC_SUBST([GETTEXT_LIBS])
+
dnl **************************************************************************
dnl Unit Tests
@@ -131,6 +147,7 @@ AC_CONFIG_FILES([
data/gom-1.0.pc
doc/version.xml
doc/Makefile
+ po/Makefile.in
])
AC_OUTPUT
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..e69de29
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..77fb959
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,8 @@
+gom/gom-command-builder.c
+gom/gom-resource.c
+gom/gom-filter.c
+gom/gom-cursor.c
+gom/gom-resource-group.c
+gom/gom-repository.c
+gom/gom-adapter.c
+gom/gom-command.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]