mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Handle plurals in translations
Use ngettext() to handle plurals properly. Also, split pagination captions into two strings. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
b113764b0b
commit
7f29756196
4 changed files with 26 additions and 7 deletions
|
@ -47,9 +47,9 @@ all: ${MOFILES}
|
|||
update-pot:
|
||||
pkgname=AUR; \
|
||||
pkgver=`sed -n 's/.*"AUR_VERSION", "\(.*\)".*/\1/p' ../web/lib/version.inc.php`; \
|
||||
xgettext --default-domain=aur -L php --keyword=__ --no-location \
|
||||
--add-comments=TRANSLATORS: --package-name="$$pkgname" \
|
||||
--package-version="$$pkgver" \
|
||||
xgettext --default-domain=aur -L php --keyword=__ --keyword=_n:1,2 \
|
||||
--no-location --add-comments=TRANSLATORS: \
|
||||
--package-name="$$pkgname" --package-version="$$pkgver" \
|
||||
--msgid-bugs-address='${MSGID_BUGS_ADDRESS}' \
|
||||
--directory ../web --files-from POTFILES -o aur.pot
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue