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:13 | admin | link | issue1098749 messages |
| 2007年08月23日 15:41:13 | admin | create |
|