diff options
author | Rodney Dawes <dobey@wayofthemonkey.com> | 2014-12-10 22:53:13 -0500 |
---|---|---|
committer | Rodney Dawes <dobey@wayofthemonkey.com> | 2014-12-10 22:53:13 -0500 |
commit | d34c4e84fe818d38cc196422a027c98c73bd7883 (patch) | |
tree | d3057f253b85cedf8536ff9002233e8ca68d0ad5 | |
parent | b6c29c7e40a1e888b65ff52df333ac77e2fa1f2e (diff) | |
parent | b64cd0e84346ce95c57406b4e3a29cbd6908cadd (diff) | |
download | intltool-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.in | 3 |
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", |