[gcr] build: Point POTFILES to the right files
- From: Emmanuele Bassi <ebassi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gcr] build: Point POTFILES to the right files
- Date: Sun, 16 Jun 2019 15:35:35 +0000 (UTC)
commit 39a0bd23d79f4681e183d2c903dab0fa5ac7b326
Author: Emmanuele Bassi <ebassi gnome org>
Date: Sun Jun 16 16:22:36 2019 +0100
build: Point POTFILES to the right files
The desktop files are generated in two passes:
- the first, by configure taking the desktop.in.in template from
the srcdir and replacing autoconf variables to generate a
desktop.in file in the builddir
- the second, by the Makefile taking the translations in the PO
files from the srcdir, and running msgfmt on the desktop.in file
in the builddir to generate a desktop file in the builddir
The xgettext utility can only extract strings from a file in the sources
directory, which means that the POTFILES file must contain a list of
files relative to the srcdir.
Since the translatable strings to be extracted are, by necessity, not
subject to substitution via autoconf/configure, we can safely point
xgettext to the desktop.in.in template file.
This change is necessary to make gcr build under non-srcdir build
conditions.
Signed-off-by: Emmanuele Bassi <ebassi gnome org>
po/POTFILES.in | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/po/POTFILES.in b/po/POTFILES.in
index a67605d..0dc38f6 100644
--- a/po/POTFILES.in
+++ b/po/POTFILES.in
@@ -32,11 +32,11 @@ ui/gcr-pkcs11-import-dialog.c
ui/gcr-pkcs11-import-dialog.ui
ui/gcr-pkcs11-import-interaction.c
ui/gcr-prompt-dialog.c
-ui/gcr-prompter.desktop.in
+ui/gcr-prompter.desktop.in.in
ui/gcr-certificate-exporter.c
ui/gcr-unlock-options-widget.ui
ui/gcr-unlock-renderer.c
-ui/gcr-viewer.desktop.in
+ui/gcr-viewer.desktop.in.in
ui/gcr-viewer-tool.c
ui/gcr-viewer-widget.c
ui/gcr-viewer-window.c
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]