diff --git a/modules/websubmit/web/admin/Makefile.am b/modules/websubmit/web/admin/Makefile.am index afae50e36..61a772ab4 100644 --- a/modules/websubmit/web/admin/Makefile.am +++ b/modules/websubmit/web/admin/Makefile.am @@ -1,32 +1,38 @@ ## $Id$ ## This file is part of the CERN Document Server Software (CDSware). ## Copyright (C) 2002, 2003, 2004, 2005 CERN. ## ## The CDSware is free software; you can redistribute it and/or ## modify it under the terms of the GNU General Public License as ## published by the Free Software Foundation; either version 2 of the ## License, or (at your option) any later version. ## ## The CDSware is distributed in the hope that it will be useful, but ## WITHOUT ANY WARRANTY; without even the implied warranty of ## MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU ## General Public License for more details. ## ## You should have received a copy of the GNU General Public License ## along with CDSware; if not, write to the Free Software Foundation, Inc., ## 59 Temple Place, Suite 330, Boston, MA 02111-1307, USA. webappdir = $(WEBDIR)/admin/websubmit FILESWML = $(wildcard $(srcdir)/*.wml) webapp_DATA = $(FILESWML:$(srcdir)/%.wml=%) referees.py EXTRA_DIST = $(FILESWML:$(srcdir)/%=%) referees.py CLEANFILES = $(FILESWML:$(srcdir)/%.wml=%) *~ *.tmp +LINGUAS = $(shell grep -v '^\#' $(top_srcdir)/po/LINGUAS) +MO = $(LINGUAS:%=$(top_builddir)/po/%.gmo) + %.php: %.php.wml $(top_srcdir)/config/config.wml $(top_builddir)/config/configbis.wml \ - $(top_srcdir)/config/messages.wml + $(top_srcdir)/config/messages.wml $(MO) $(WML) -o\(ALL-LANG_*\)+LANG_EN:$@ $< + for lang in en; do \ + $(PYTHON) $(top_srcdir)/po/i18n_update_wml.py $${lang} "$*.php" ; \ + done