diff options
author | Rodney Dawes <dobey@wayofthemonkey.com> | 2014-05-13 22:15:53 -0400 |
---|---|---|
committer | Rodney Dawes <dobey@wayofthemonkey.com> | 2014-05-13 22:15:53 -0400 |
commit | b64cd0e84346ce95c57406b4e3a29cbd6908cadd (patch) | |
tree | 64f88395adf13cd05c1a0e62bcbeffbcfd88b177 | |
parent | 53b7a6038b8dca0075679db78839ae59b0e85a68 (diff) | |
download | intltool-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.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", |