mirror of
https://gitlab.archlinux.org/archlinux/aurweb.git
synced 2025-02-03 10:43:03 +01:00
Auto-generate po/POTFILES
Reduce maintenance costs by auto-generating po/POTFILES in the Makefile. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
This commit is contained in:
parent
9862e533d8
commit
35e6388fad
3 changed files with 6 additions and 60 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,3 +9,4 @@ dummy-data.sql*
|
|||
web/locale/*/
|
||||
po/*.mo
|
||||
po/*.po~
|
||||
po/POTFILES
|
||||
|
|
|
@ -44,7 +44,10 @@ all: ${MOFILES}
|
|||
lang=`echo $@ | sed -e 's/\.po-update$$//'`; \
|
||||
msgmerge -U --no-location --lang="$$lang" $< aur.pot
|
||||
|
||||
update-pot:
|
||||
POTFILES:
|
||||
find ../web -type f -name '*.php' -printf '%P\n' | sort >POTFILES
|
||||
|
||||
update-pot: POTFILES
|
||||
pkgname=AUR; \
|
||||
pkgver=`sed -n 's/.*"AUR_VERSION", "\(.*\)".*/\1/p' ../web/lib/version.inc.php`; \
|
||||
xgettext --default-domain=aur -L php --keyword=__ --keyword=_n:1,2 \
|
||||
|
@ -57,7 +60,7 @@ update-po:
|
|||
${MAKE} ${UPDATEPOFILES}
|
||||
|
||||
clean:
|
||||
rm -f *.mo *.po\~
|
||||
rm -f *.mo *.po\~ POTFILES
|
||||
|
||||
install: all
|
||||
for l in ${LOCALES}; do mkdir -p ${DESTDIR}${PREFIX}/$$l/LC_MESSAGES/; done
|
||||
|
|
58
po/POTFILES
58
po/POTFILES
|
@ -1,58 +0,0 @@
|
|||
html/404.php
|
||||
html/account.php
|
||||
html/addvote.php
|
||||
html/home.php
|
||||
html/index.php
|
||||
html/login.php
|
||||
html/logout.php
|
||||
html/packages.php
|
||||
html/passreset.php
|
||||
html/pkgbase.php
|
||||
html/pkgdel.php
|
||||
html/pkgmerge.php
|
||||
html/pkgreq.php
|
||||
html/pkgsubmit.php
|
||||
html/rpc.php
|
||||
html/rss.php
|
||||
html/tu.php
|
||||
html/voters.php
|
||||
lib/acctfuncs.inc.php
|
||||
lib/Archive/PEAR5.php
|
||||
lib/Archive/PEAR.php
|
||||
lib/Archive/Tar.php
|
||||
lib/aur.inc.php
|
||||
lib/aurjson.class.php
|
||||
lib/cachefuncs.inc.php
|
||||
lib/DB.class.php
|
||||
lib/feedcreator.class.php
|
||||
lib/gettext.php
|
||||
lib/pkgbasefuncs.inc.php
|
||||
lib/pkgfuncs.inc.php
|
||||
lib/pkgreqfuncs.inc.php
|
||||
lib/routing.inc.php
|
||||
lib/stats.inc.php
|
||||
lib/streams.php
|
||||
lib/translator.inc.php
|
||||
lib/version.inc.php
|
||||
template/account_delete.php
|
||||
template/account_details.php
|
||||
template/account_edit_form.php
|
||||
template/account_search_results.php
|
||||
template/actions_form.php
|
||||
template/footer.php
|
||||
template/header.php
|
||||
template/pkgbase_details.php
|
||||
template/pkg_comment_form.php
|
||||
template/pkg_comments.php
|
||||
template/pkg_details.php
|
||||
template/pkgreq_form.php
|
||||
template/pkgreq_results.php
|
||||
template/pkg_search_form.php
|
||||
template/pkg_search_results.php
|
||||
template/search_accounts_form.php
|
||||
template/stats/general_stats_table.php
|
||||
template/stats/updates_table.php
|
||||
template/stats/user_table.php
|
||||
template/tu_details.php
|
||||
template/tu_last_votes_list.php
|
||||
template/tu_list.php
|
Loading…
Add table
Reference in a new issue