summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xautogen.sh2
-rw-r--r--configure.ac9
-rw-r--r--po/POTFILES.in0
-rw-r--r--po/POTFILES.skip0
4 files changed, 11 insertions, 0 deletions
diff --git a/autogen.sh b/autogen.sh
index 46433be..a6e3505 100755
--- a/autogen.sh
+++ b/autogen.sh
@@ -41,5 +41,7 @@ fi
autoreconf --force --install --verbose || exit $?
+intltoolize || exit 1
+
cd "$olddir"
test -n "$NOCONFIGURE" || "$srcdir/configure" "$@"
diff --git a/configure.ac b/configure.ac
index e9b06ce..c531a27 100644
--- a/configure.ac
+++ b/configure.ac
@@ -26,6 +26,8 @@ AC_INIT([xdg-app],[xdg_app_version])
AC_USE_SYSTEM_EXTENSIONS
+IT_PROG_INTLTOOL([0.35.0])
+
AC_PROG_CC
AM_PROG_CC_C_O
AC_DISABLE_STATIC
@@ -39,6 +41,12 @@ AC_CONFIG_MACRO_DIR([m4])
AM_INIT_AUTOMAKE([1.11 no-define no-dist-gzip dist-xz tar-ustar foreign subdir-objects])
AC_PROG_SED
+GETTEXT_PACKAGE=XdgApp
+AC_SUBST([GETTEXT_PACKAGE])
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE],["$GETTEXT_PACKAGE"],[gettext domain])
+
+AM_GLIB_GNU_GETTEXT
+
# Enable silent rules is available
AM_SILENT_RULES([yes])
AM_MAINTAINER_MODE([enable])
@@ -331,5 +339,6 @@ doc/reference/Makefile
xdg-app.pc
lib/xdg-app-version-macros.h
doc/reference/version.xml
+po/Makefile.in
])
AC_OUTPUT
diff --git a/po/POTFILES.in b/po/POTFILES.in
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/po/POTFILES.in
diff --git a/po/POTFILES.skip b/po/POTFILES.skip
new file mode 100644
index 0000000..e69de29
--- /dev/null
+++ b/po/POTFILES.skip