Skip to content

Commit e2b21bc

Browse files
author
Alexander Smishlajev
committed
extract messages from web templates
1 parent 036c1bc commit e2b21bc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

locale/GNUmakefile

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,27 +1,31 @@
11
# Extract translatable strings from Roundup sources,
22
# update and compile all existing translations
33
#
4-
# $Id: GNUmakefile,v 1.5 2004-05-29 04:35:03 a1s Exp $
4+
# $Id: GNUmakefile,v 1.6 2004-05-29 04:50:46 a1s Exp $
55

66
# tool locations
77
XPOT ?= xpot
88
MSGFMT ?= msgfmt
99
MSGMERGE ?= msgmerge
1010
XGETTEXT ?= xgettext
11+
PYTHON ?= python
1112

1213
TEMPLATE=roundup.pot
1314

1415
PACKAGES=$(shell find ../roundup -name '*.py'|sed -e 's,/[^/]*$$,,'|sort|uniq)
1516
SOURCES=$(PACKAGES:=/*.py)
1617
PO_FILES=$(wildcard *.po)
1718
MO_FILES=$(PO_FILES:.po=.mo)
19+
RUN_PYTHON=PYTHONPATH=../build/lib $(PYTHON) -O
1820

1921
.PHONY: $(TEMPLATE)
2022

2123
all: $(TEMPLATE) $(MO_FILES)
2224

2325
$(TEMPLATE):
2426
${XPOT} -n -o $@ $(SOURCES)
27+
${RUN_PYTHON} ../roundup/cgi/TAL/talgettext.py -u $@ \
28+
../templates/classic/html/*.html ../templates/minimal/html/*.html
2529
${XGETTEXT} -j -w 80 -F \
2630
2731
--copyright-holder="See Roundup README.txt" \

0 commit comments

Comments
 (0)