diff options
-rw-r--r-- | .gitignore | 5 | ||||
-rw-r--r-- | Makefile.am | 17 | ||||
-rwxr-xr-x | autogen.sh | 1 | ||||
-rw-r--r-- | configure.ac | 10 | ||||
-rw-r--r-- | po/LINGUAS | 0 | ||||
-rw-r--r-- | po/POTFILES.in | 4 |
6 files changed, 33 insertions, 4 deletions
@@ -9,6 +9,7 @@ configure depcomp install-sh ltmain.sh +intltool-* missing stamp-h1 *~ @@ -30,6 +31,10 @@ callouts/mm-modem-probe test/lsudev src/tests/test-modem-helpers +po/Makefile.in.in +po/POTFILES +po/stamp-it + m4/gtk-doc.m4 m4/intltool.m4 m4/libtool.m4 diff --git a/Makefile.am b/Makefile.am index 915f82e5..f271b9cb 100644 --- a/Makefile.am +++ b/Makefile.am @@ -19,7 +19,7 @@ all: $(GENERATED_FILES) CLEANFILES = $(GENERATED_FILES) endif -SUBDIRS = marshallers src plugins introspection test +SUBDIRS = marshallers src plugins introspection po test dbusservicedir = $(DBUS_SYS_DIR) dbusservice_DATA = org.freedesktop.ModemManager.conf @@ -39,13 +39,22 @@ edit = @sed \ DISTCHECK_CONFIGURE_FLAGS = --with-udev-base-dir=$dc_install_base -DISTCLEANFILES = \ - $(dbusactivation_DATA) +INTLTOOL_FILES = \ + intltool-extract.in \ + intltool-merge.in \ + intltool-update.in +DISTCLEANFILES = \ + $(dbusactivation_DATA) \ + intltool-extract \ + intltool-merge \ + intltool-update \ + po/.intltool-merge-cache EXTRA_DIST = \ doc-generator.xsl \ $(dbusservice_DATA) \ - $(dbusactivation_in_files) + $(dbusactivation_in_files) \ + $(INTLTOOL_FILES) ACLOCAL_AMFLAGS = -I m4 @@ -15,6 +15,7 @@ PKG_NAME=ModemManager (cd $srcdir; autoreconf --install --symlink && + intltoolize --force && autoreconf && ./configure --enable-maintainer-mode $@ ) diff --git a/configure.ac b/configure.ac index 0e37ddd8..ae37fdcd 100644 --- a/configure.ac +++ b/configure.ac @@ -14,6 +14,15 @@ AM_PROG_CC_C_O AC_PROG_INSTALL AC_PROG_LIBTOOL +dnl +dnl translation support +dnl +GETTEXT_PACKAGE=ModemManager +AC_SUBST(GETTEXT_PACKAGE) +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE,"$GETTEXT_PACKAGE", [Gettext package]) +IT_PROG_INTLTOOL([0.35.0]) +AM_GLIB_GNU_GETTEXT + PKG_CHECK_MODULES(MM, dbus-glib-1 >= 0.75 glib-2.0 >= 2.18 gmodule-2.0 gobject-2.0) PKG_CHECK_MODULES(GUDEV, gudev-1.0) @@ -93,6 +102,7 @@ src/tests/Makefile plugins/Makefile test/Makefile introspection/Makefile +po/Makefile.in ]) AC_OUTPUT diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 00000000..e69de29b --- /dev/null +++ b/po/LINGUAS diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 00000000..ac2f4e43 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,4 @@ +[encoding: UTF-8] +# List of source files containing translatable strings. +# Please keep this file sorted alphabetically. + |