aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Hua <william.hua@canonical.com>2013-05-30 15:26:41 -0400
committerWilliam Hua <william.hua@canonical.com>2013-05-30 15:26:41 -0400
commit5871583b77f83a06cf88facfaa823d8d10264464 (patch)
tree4bc113a20efa68e1330104bd2020dbab0bb46c97
parentebcc1f94c19a278bdbbd49949d869069c8735b12 (diff)
downloadayatana-indicator-keyboard-5871583b77f83a06cf88facfaa823d8d10264464.tar.gz
ayatana-indicator-keyboard-5871583b77f83a06cf88facfaa823d8d10264464.tar.bz2
ayatana-indicator-keyboard-5871583b77f83a06cf88facfaa823d8d10264464.zip
GLib gettext support.
-rw-r--r--.bzrignore2
-rw-r--r--Makefile.am2
-rwxr-xr-xautogen.sh1
-rw-r--r--configure.ac5
-rw-r--r--po/POTFILES.in3
5 files changed, 11 insertions, 2 deletions
diff --git a/.bzrignore b/.bzrignore
index fd7ff188..ff979d0b 100644
--- a/.bzrignore
+++ b/.bzrignore
@@ -7,6 +7,8 @@
.libs
Makefile
Makefile.in
+Makefile.in.in
+POTFILES
autom4te.cache
build-aux
config.log
diff --git a/Makefile.am b/Makefile.am
index 35836b13..b19f3988 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,3 +1,3 @@
ACLOCAL_AMFLAGS = -I m4
-SUBDIRS = lib data
+SUBDIRS = po lib data
diff --git a/autogen.sh b/autogen.sh
index b509c24a..f0b676e1 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -2,4 +2,5 @@
mkdir -p m4
autoreconf -i
+glib-gettextize -c -f
test -n "$NOCONFIGURE" || ./configure "$@"
diff --git a/configure.ac b/configure.ac
index ff10aa29..18110c04 100644
--- a/configure.ac
+++ b/configure.ac
@@ -27,6 +27,8 @@ AC_ARG_WITH([indicator-dir], [AS_HELP_STRING([--with-indicator-dir=DIR], [Indica
AC_SUBST([DBUS_SERVICE_DIR], [$with_dbus_service_dir])
AC_SUBST([INDICATOR_DIR], [$with_indicator_dir])
+AM_GLIB_GNU_GETTEXT
+
GLIB_GSETTINGS
PKG_CHECK_MODULES([GTK], [gtk+-3.0])
@@ -55,6 +57,7 @@ AC_SUBST([IBUS_LIBS])
AC_CONFIG_FILES([Makefile
data/Makefile
- lib/Makefile])
+ lib/Makefile
+ po/Makefile.in])
AC_OUTPUT
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 00000000..dced8247
--- /dev/null
+++ b/po/POTFILES.in
@@ -0,0 +1,3 @@
+# List of source files which contain translatable strings.
+
+lib/main.vala