summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRodney Dawes <dobey@wayofthemonkey.com>2014-05-13 22:15:53 -0400
committerRodney Dawes <dobey@wayofthemonkey.com>2014-05-13 22:15:53 -0400
commitb64cd0e84346ce95c57406b4e3a29cbd6908cadd (patch)
tree64f88395adf13cd05c1a0e62bcbeffbcfd88b177
parent53b7a6038b8dca0075679db78839ae59b0e85a68 (diff)
downloadintltool-b64cd0e84346ce95c57406b4e3a29cbd6908cadd.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",