view locale/GNUmakefile @ 2382:c7a05bddd453

escape quotes in msgids
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sat, 29 May 2004 04:32:00 +0000
parents 00001a0e3fe5
children bacda30e7eb6
line wrap: on
line source

# Extract translatable strings from Roundup sources,
# update and compile all existing translations
#
# $Id: GNUmakefile,v 1.4 2004-05-29 02:22:13 a1s Exp $

# tool locations
XPOT ?= xpot
MSGFMT ?= msgfmt
MSGMERGE ?= msgmerge
XGETTEXT ?= xgettext

TEMPLATE=roundup.pot

PACKAGES=$(shell find ../roundup -name '*.py'|sed -e 's,/[^/]*$$,,'|uniq)
SOURCES=$(PACKAGES:=/*.py)
PO_FILES=$(wildcard *.po)
MO_FILES=$(PO_FILES:.po=.mo)

.PHONY: $(TEMPLATE)

all: $(TEMPLATE) $(MO_FILES)

$(TEMPLATE):
	${XPOT} -n -o $@ $(SOURCES)
	${XGETTEXT} -j -w 80 -F \
	  --msgid-bugs-address=roundup-devel@lists.sourceforge.net \
	  --copyright-holder="See Roundup README.txt" \
	  -o $@ $(SOURCES)

%.po: $(TEMPLATE)
	${MSGMERGE} -U --suffix=.bak $@ $<

%.mo: %.po
	${MSGFMT} --statistics -o $@ $<

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