[aur-dev] [PATCH] 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> --- 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 -- 2.4.4
participants (1)
-
Lukas Fleischer