diff options
-rw-r--r-- | Makefile.am | 5 | ||||
-rw-r--r-- | configure.ac | 11 | ||||
-rw-r--r-- | libcaja-python.caja-extension.in | 4 | ||||
-rw-r--r-- | po/LINGUAS | 1 | ||||
-rw-r--r-- | po/POTFILES.in | 3 |
5 files changed, 23 insertions, 1 deletions
diff --git a/Makefile.am b/Makefile.am index efab503..ac71a8c 100644 --- a/Makefile.am +++ b/Makefile.am @@ -9,6 +9,11 @@ ACLOCAL_AMFLAGS = -I m4 -I . ${ACLOCAL_FLAGS} pkgconfigdir = $(libdir)/pkgconfig pkgconfig_DATA = caja-python.pc +extensiondir = $(datadir)/caja/extensions +extension_in_files = libcaja-python.caja-extension.in +extension_DATA = $(extension_in_files:.caja-extension.in=.caja-extension) +%.caja-extension: %.caja-extension.in $(INTLTOOL_MERGE) $(wildcard $(top_srcdir)/po/*.po) ; $(AM_V_GEN) LC_ALL=C $(INTLTOOL_MERGE) -d -u -c $(top_builddir)/po/.intltool-merge-cache $(top_srcdir)/po $< $@ + EXTRA_DIST = autogen.sh caja-python.pc.in DISTCHECK_CONFIGURE_FLAGS=--enable-gtk-doc --with-cajadir='$${libdir}/caja/extensions-2.0-distcheck' diff --git a/configure.ac b/configure.ac index 63420e7..c7238fd 100644 --- a/configure.ac +++ b/configure.ac @@ -19,11 +19,19 @@ dnl Check for pkgconfig first AC_CHECK_PROG(HAVE_PKGCONFIG, pkg-config, yes, no) AC_PATH_PROG(PKG_CONFIG, pkg-config, no) -dnl Give error and exit if we don't have pkgconfig +dnl Give error and exit if we dont have pkgconfig if test "x$HAVE_PKGCONFIG" = "xno"; then AC_MSG_ERROR([you need to have pkgconfig installed !]) fi +dnl i18n +GETTEXT_PACKAGE=python-caja +AC_SUBST(GETTEXT_PACKAGE) +AC_DEFINE_UNQUOTED(GETTEXT_PACKAGE, "$GETTEXT_PACKAGE", [GetText Package]) + +AM_GLIB_GNU_GETTEXT +IT_PROG_INTLTOOL([0.35.0]) + dnl Check for gtk-doc GTK_DOC_CHECK(1.9) @@ -103,6 +111,7 @@ AC_OUTPUT([ caja-python.pc docs/Makefile docs/reference/entities.docbook + po/Makefile.in ]) echo diff --git a/libcaja-python.caja-extension.in b/libcaja-python.caja-extension.in new file mode 100644 index 0000000..43c9edc --- /dev/null +++ b/libcaja-python.caja-extension.in @@ -0,0 +1,4 @@ +[Caja Extension] +Icon=python +_Name=Python +_Description=Allows to use Python extensions diff --git a/po/LINGUAS b/po/LINGUAS new file mode 100644 index 0000000..d2b08cb --- /dev/null +++ b/po/LINGUAS @@ -0,0 +1 @@ +# please keep this list sorted alphabetically diff --git a/po/POTFILES.in b/po/POTFILES.in new file mode 100644 index 0000000..af75574 --- /dev/null +++ b/po/POTFILES.in @@ -0,0 +1,3 @@ +# List of source files containing translatable strings. +# Please keep this file sorted alphabetically. +libcaja-python.caja-extension.in |