po/Makefile: Add more context to strings in the catalog

Pass the --add-location=file parameter to xgettext(1) when building the
message catalog, such that each string is annotated with the file it
originates from.

Fixes FS#45401.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
This commit is contained in:
Lukas Fleischer 2015-06-25 08:33:31 +02:00
parent 6852a0c2af
commit b1e3bfb48f

View file

@ -55,7 +55,7 @@ update-pot: POTFILES
pkgname=AUR; \ pkgname=AUR; \
pkgver=`sed -n 's/.*"AURWEB_VERSION", "\(.*\)".*/\1/p' ../web/lib/version.inc.php`; \ pkgver=`sed -n 's/.*"AURWEB_VERSION", "\(.*\)".*/\1/p' ../web/lib/version.inc.php`; \
xgettext --default-domain=aur -L php --keyword=__ --keyword=_n:1,2 \ xgettext --default-domain=aur -L php --keyword=__ --keyword=_n:1,2 \
--no-location --add-comments=TRANSLATORS: \ --add-location=file --add-comments=TRANSLATORS: \
--package-name="$$pkgname" --package-version="$$pkgver" \ --package-name="$$pkgname" --package-version="$$pkgver" \
--msgid-bugs-address='${MSGID_BUGS_ADDRESS}' \ --msgid-bugs-address='${MSGID_BUGS_ADDRESS}' \
--directory ../web --files-from POTFILES -o aur.pot --directory ../web --files-from POTFILES -o aur.pot