Message 47502 - Python tracker

Message47502

Author blais
Recipients
Date 2005-01-09.03:01:53
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
i added an option that make pygettext consider certain
multi-line strings as single-line strings.  If you're
using an editor like kbabel, it's nice, you don't see
the newlines.  This comes really handy for strings to
be used as HTML, where line breaks don't matter (and
I'm sure for many other uses).

You can select which keywords trigger this special
extraction.  All the other gettext tools work normally.
 Default behaviour does not change.

I use it something like this:

POTCMD = pygettext.py \
	--verbose --extract-all --no-default-keywords \
	--keyword-single=_ --keyword-single=N_ \
	--keyword=__
...

pot:
	$(POTCMD) -d $(PROJECT) -p $(dir $@) $(PYFILES)


cheers,


History
Date User Action Args
2007-08-23 15:41:13adminlinkissue1098749 messages
2007-08-23 15:41:13admincreate