[issue179] wrong translation files handling in setup.py

David Farning at Labix Tracker tracker at labix.org
Thu Nov 16 16:00:30 PST 2006


David Farning <dfarning at gmail.com> added the comment:

Any python i18n gurus around?

The .mo's don't seem to be built on the fly.  I was wondering if there needs to
be a mo section in Makefile such as the following.

# Generate mo files for all available po files:
mo:
	for po in *.po; do\
		lingua=`basename $$po .po`; \
		install -d $(MO_DIR)/$$lingua/LC_MESSAGES/ ; \
		msgfmt -o $(MO_DIR)/$$lingua/LC_MESSAGES/$(DOMAIN).mo $$po ;\
	done
all:  mo

This way the .mo's don't need to stored in svn.  I'll put together a patch tomorrow.

Dave

----------
nosy: +dfarning
status: unread -> chatting

_______________________________________
Labix issue tracker <tracker at labix.org>
<http://tracker.labix.org/issue179>
_______________________________________



More information about the Smart mailing list