From b64cd0e84346ce95c57406b4e3a29cbd6908cadd Mon Sep 17 00:00:00 2001 From: Rodney Dawes Date: Tue, 13 May 2014 22:15:53 -0400 Subject: Don't write $SRCDIR to the pot file. Pass the $SRCDIR as a --directory option to xgettext. --- intltool-update.in | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/intltool-update.in b/intltool-update.in index df591c6..6992ab4 100644 --- a/intltool-update.in +++ b/intltool-update.in @@ -823,7 +823,7 @@ sub GeneratePOTemplate } else { - print OUTFILE "$SRCDIR/../$_\n"; + print OUTFILE "../$_\n"; $gettext_code = &TextFile_DetermineEncoding ("$SRCDIR/../$_") if ($gettext_support_nonascii and not defined $forced_gettext_code); } @@ -866,6 +866,7 @@ sub GeneratePOTemplate my @xgettext_argument=("$XGETTEXT", "--add-comments", "--directory\=.", + "--directory\=$SRCDIR", "--default-domain\=$MODULE", "--flag\=g_strdup_printf:1:c-format", "--flag\=g_string_printf:2:c-format", -- cgit v1.2.1