ACLOCAL_AMFLAGS = -I m4 ${ACLOCAL_FLAGS}
AM_MAKEFLAGS = --no-print-directory
+SUBDIRS = . po
+
AM_CPPFLAGS = \
-include $(top_builddir)/config.h \
-DSYSCONFDIR=\""$(sysconfdir)"\" \
%: %.in Makefile
$(SED_PROCESS)
+@INTLTOOL_POLICY_RULE@
+
+.PHONY: update-po
+update-po:
+ $(MAKE) -C po update-po
+
EXTRA_DIST += \
examples/python/create-database.py \
examples/python/read-database.py
echo "Activated pre-commit hook."
fi
+intltoolize --force --automake
autoreconf --install --symlink
libdir() {
])
AC_PREFIX_DEFAULT([/usr])
+IT_PROG_INTLTOOL([0.40.0])
+GETTEXT_PACKAGE=${PACKAGE_TARNAME}
+AC_SUBST(GETTEXT_PACKAGE)
+
AC_PROG_SED
AC_PROG_MKDIR_P
AC_CONFIG_HEADERS(config.h)
AC_CONFIG_FILES([
Makefile
+ po/Makefile.in
])
AC_OUTPUT
+intltool.m4
libtool.m4
ltoptions.m4
ltsugar.m4
--- /dev/null
+/POTFILES
+/Makefile.in.in
+/.intltool-merge-cache
+/Makefile
+/stamp-it
+*.pot
--- /dev/null
+# nothing, yet
--- /dev/null
+src/python/location-query.in
###############################################################################
import argparse
+import gettext
import sys
import syslog
import location
# i18n
-_ = lambda x: x
+def _(singular, plural=None, n=None):
+ if plural:
+ return gettext.dngettext("libloc", singular, plural, n)
+
+ return gettext.dgettext("libloc", singular)
class CLI(object):
def __init__(self):