mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
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:
parent
6852a0c2af
commit
b1e3bfb48f
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue