From b1e3bfb48fbf0dd0fb5846f9da2136737693dd8c Mon Sep 17 00:00:00 2001 From: Lukas Fleischer Date: Thu, 25 Jun 2015 08:33:31 +0200 Subject: 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 --- po/Makefile | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/po/Makefile b/po/Makefile index cebe6f3..d0ed741 100644 --- a/po/Makefile +++ b/po/Makefile @@ -55,7 +55,7 @@ update-pot: POTFILES pkgname=AUR; \ pkgver=`sed -n 's/.*"AURWEB_VERSION", "\(.*\)".*/\1/p' ../web/lib/version.inc.php`; \ 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" \ --msgid-bugs-address='${MSGID_BUGS_ADDRESS}' \ --directory ../web --files-from POTFILES -o aur.pot -- cgit v1.2.3-54-g00ecf