summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Dawes <dobey@wayofthemonkey.com>2014-12-10 22:53:13 -0500
committerRodney Dawes <dobey@wayofthemonkey.com>2014-12-10 22:53:13 -0500
commitd34c4e84fe818d38cc196422a027c98c73bd7883 (patch)
treed3057f253b85cedf8536ff9002233e8ca68d0ad5
parentb6c29c7e40a1e888b65ff52df333ac77e2fa1f2e (diff)
parentb64cd0e84346ce95c57406b4e3a29cbd6908cadd (diff)
downloadintltool-d34c4e84fe818d38cc196422a027c98c73bd7883.tar.gz
Don't write $SRCDIR to the pot file.
Pass the $SRCDIR as a --directory option to xgettext.
-rw-r--r--intltool-update.in3
1 files changed, 2 insertions, 1 deletions
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",