view locale/GNUmakefile @ 3913:00896a2acaa5

clean up query display of "Private to you" items Previously the handling of queries in the edit menu was a little wonky. If you change a query to not be private to you then you lose the ability to ever change it back to being private. Previously the queries were displayed in three chunks: First all retired queries. Then all queries private to the current user (this batch has the dropdown for toggling private state). Then all non-private queries. Now: all queries we created that are retired, all queries that we created that are not retired, then all non-private queries not created by the current user. this should fix [SF#1481394]
author Justus Pendleton <jpend@users.sourceforge.net>
date Thu, 20 Sep 2007 23:44:58 +0000
parents 800bc51a9c8e
children 5a9631828e33
line wrap: on
line source

# Extract translatable strings from Roundup sources,
# update and compile all existing translations
#
# $Id: GNUmakefile,v 1.11 2006-11-16 14:14:42 a1s Exp $

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

TEMPLATE=roundup.pot

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

all: dist

help:
	@echo "$(MAKE)           - build MO files.  Run this before sdist"
	@echo "$(MAKE) template  - update message template from sources"
	@echo "$(MAKE) locale.po - update message file from template"
	@echo "$(MAKE) locale.mo - compile individual message file"
	@echo "$(MAKE) help      - this text"\

# This will rebuild all MO files without updating their corresponding PO
# files first.  Run before creating Roundup distribution (hence the name).
# PO files should be updated by their translators only, automatic update
# adds unwanted fuzzy labels.
dist:
	for file in $(PO_FILES); do \
	  ${MSGFMT} -o `basename $$file .po`.mo $$file; \
	done

template:
	${XPOT} -n -o $(TEMPLATE) $(SOURCES)
	${RUN_PYTHON} ../roundup/cgi/TAL/talgettext.py -u $(TEMPLATE) \
	  ../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" \
	  -o $(TEMPLATE) $(SOURCES)

# helps to check template file before check in
diff:
	cvs diff roundup.pot|grep -v '^[-+]#'|vim -Rv -

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

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

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