diff locale/GNUmakefile @ 2384:33469189bf86

extract messages from web templates
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sat, 29 May 2004 04:50:46 +0000
parents bacda30e7eb6
children ece6ed48dd3d
line wrap: on
line diff
--- a/locale/GNUmakefile	Sat May 29 04:35:03 2004 +0000
+++ b/locale/GNUmakefile	Sat May 29 04:50:46 2004 +0000
@@ -1,13 +1,14 @@
 # Extract translatable strings from Roundup sources,
 # update and compile all existing translations
 #
-# $Id: GNUmakefile,v 1.5 2004-05-29 04:35:03 a1s Exp $
+# $Id: GNUmakefile,v 1.6 2004-05-29 04:50:46 a1s Exp $
 
 # tool locations
 XPOT ?= xpot
 MSGFMT ?= msgfmt
 MSGMERGE ?= msgmerge
 XGETTEXT ?= xgettext
+PYTHON ?= python
 
 TEMPLATE=roundup.pot
 
@@ -15,6 +16,7 @@
 SOURCES=$(PACKAGES:=/*.py)
 PO_FILES=$(wildcard *.po)
 MO_FILES=$(PO_FILES:.po=.mo)
+RUN_PYTHON=PYTHONPATH=../build/lib $(PYTHON) -O
 
 .PHONY: $(TEMPLATE)
 
@@ -22,6 +24,8 @@
 
 $(TEMPLATE):
 	${XPOT} -n -o $@ $(SOURCES)
+	${RUN_PYTHON} ../roundup/cgi/TAL/talgettext.py -u $@ \
+	  ../templates/classic/html/*.html ../templates/minimal/html/*.html
 	${XGETTEXT} -j -w 80 -F \
 	  --msgid-bugs-address=roundup-devel@lists.sourceforge.net \
 	  --copyright-holder="See Roundup README.txt" \

Roundup Issue Tracker: http://roundup-tracker.org/