summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLukas Fleischer <lfleischer@archlinux.org>2015-06-25 08:33:31 +0200
committerLukas Fleischer <lfleischer@archlinux.org>2015-06-27 13:04:03 +0200
commitb1e3bfb48fbf0dd0fb5846f9da2136737693dd8c (patch)
treede24602007d516afbcca283aeee62cc701c68609
parent6852a0c2af781f3b915457c845e26a9442ba9c3c (diff)
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>
-rw-r--r--po/Makefile2
1 files changed, 1 insertions, 1 deletions
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