[Pkg-privacy-commits] [nautilus-wipe] 86/224: Update build system to prepare proper I18N
Ulrike Uhlig
u-guest at moszumanska.debian.org
Thu Jul 7 19:45:37 UTC 2016
This is an automated email from the git hooks/post-receive script.
u-guest pushed a commit to branch master
in repository nautilus-wipe.
commit a19256c02ddb292c31bba81e8aef4f18cf7e386e
Author: Colomban Wendling <ban at herbesfolles.org>
Date: Wed Mar 31 02:22:52 2010 +0200
Update build system to prepare proper I18N
---
Makefile.am | 2 +-
configure.ac | 5 +++++
nautilus-srm/Makefile.am | 5 ++++-
po/LINGUAS | 1 +
po/Makefile.in.in | 1 +
po/{Makevars => Makevars.in} | 2 +-
po/POTFILES.in | 3 +++
7 files changed, 16 insertions(+), 3 deletions(-)
diff --git a/Makefile.am b/Makefile.am
index d8706be..ca0e6c4 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -1,4 +1,4 @@
-SUBDIRS = po nautilus-srm
+SUBDIRS = nautilus-srm po
ACLOCAL_AMFLAGS = -I m4
diff --git a/configure.ac b/configure.ac
index da4c48a..effd349 100644
--- a/configure.ac
+++ b/configure.ac
@@ -49,6 +49,10 @@ AC_DEFINE_UNQUOTED([HAVE_GIO_UNIX], [${HAVE_GIO_UNIX}], [Whether we have gio-uni
# i18n
AM_GNU_GETTEXT([external])
+AM_GNU_GETTEXT_VERSION([0.17])
+GETTEXT_PACKAGE="${PACKAGE}"
+AC_SUBST([GETTEXT_PACKAGE])
+AC_DEFINE_UNQUOTED([GETTEXT_PACKAGE], ["${GETTEXT_PACKAGE}"], [GNU gettext package])
# Checks for header files.
@@ -66,6 +70,7 @@ AC_CHECK_FUNCS([nautilus_file_info_get_location])
# Output
AC_CONFIG_FILES([Makefile
+ po/Makevars
po/Makefile.in
nautilus-srm/Makefile])
AC_OUTPUT
diff --git a/nautilus-srm/Makefile.am b/nautilus-srm/Makefile.am
index 4968dd4..12d48e6 100644
--- a/nautilus-srm/Makefile.am
+++ b/nautilus-srm/Makefile.am
@@ -4,6 +4,8 @@ nautilus_extension_LTLIBRARIES = libnautilus-srm.la
noinst_PROGRAMS = test
+localedir = $(datadir)/locale
+
libnautilus_srm_la_SOURCES = nautilus-srm.c \
nautilus-srm.h \
operation-manager.c \
@@ -15,7 +17,8 @@ libnautilus_srm_la_SOURCES = nautilus-srm.c \
progress-dialog.c \
progress-dialog.h \
compat.h
-libnautilus_srm_la_CPPFLAGS = -DG_LOG_DOMAIN=\"$(PACKAGE)\"
+libnautilus_srm_la_CPPFLAGS = -DG_LOG_DOMAIN=\"$(PACKAGE)\" \
+ -DLOCALEDIR=\"$(localedir)\"
libnautilus_srm_la_CFLAGS = @GLIB_CFLAGS@ \
@GTK_CFLAGS@ \
@GCONF_CFLAGS@ \
diff --git a/po/LINGUAS b/po/LINGUAS
new file mode 100644
index 0000000..434bd73
--- /dev/null
+++ b/po/LINGUAS
@@ -0,0 +1 @@
+# Available languages
diff --git a/po/Makefile.in.in b/po/Makefile.in.in
index fecf500..b4bc411 100644
--- a/po/Makefile.in.in
+++ b/po/Makefile.in.in
@@ -11,6 +11,7 @@
# Origin: gettext-0.17
GETTEXT_MACRO_VERSION = 0.17
+GETTEXT_PACKAGE = @GETTEXT_PACKAGE@
PACKAGE = @PACKAGE@
VERSION = @VERSION@
PACKAGE_BUGREPORT = @PACKAGE_BUGREPORT@
diff --git a/po/Makevars b/po/Makevars.in
similarity index 98%
rename from po/Makevars
rename to po/Makevars.in
index 20063b2..c7e5c8b 100644
--- a/po/Makevars
+++ b/po/Makevars.in
@@ -1,7 +1,7 @@
# Makefile variables for PO directory in any package using GNU gettext.
# Usually the message domain is the same as the package name.
-DOMAIN = $(PACKAGE)
+DOMAIN = @GETTEXT_PACKAGE@
# These two variables depend on the location of this directory.
subdir = po
diff --git a/po/POTFILES.in b/po/POTFILES.in
index 4a87bc2..92823d6 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -1,2 +1,5 @@
# List of source files which contain translatable strings.
+nautilus-srm/delete-operation.c
+nautilus-srm/fill-operation.c
nautilus-srm/nautilus-srm.c
+nautilus-srm/operation-manager.c
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/nautilus-wipe.git
More information about the Pkg-privacy-commits
mailing list