build: add intltool support for PolicyKit policy translations

This commit is contained in:
Dan Williams
2010-02-16 11:03:16 -08:00
parent 1a7be4a379
commit 9c958c99bc
6 changed files with 33 additions and 4 deletions

5
.gitignore vendored
View File

@@ -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

View File

@@ -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

View File

@@ -15,6 +15,7 @@ PKG_NAME=ModemManager
(cd $srcdir;
autoreconf --install --symlink &&
intltoolize --force &&
autoreconf &&
./configure --enable-maintainer-mode $@
)

View File

@@ -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

0
po/LINGUAS Normal file
View File

4
po/POTFILES.in Normal file
View File

@@ -0,0 +1,4 @@
[encoding: UTF-8]
# List of source files containing translatable strings.
# Please keep this file sorted alphabetically.