generate localized message

18 views
Skip to first unread message

Thomas Lionel Smets

unread,
Jun 25, 2010, 12:23:58 PM6/25/10
to django...@googlegroups.com
My django application root directory on my Mac is :
/Users/tsmets/Documents/python/<Project>/<Site>
Under that folder I have the following directory structure :

Thomas-SMETSs-MacBook-Pro:<Site> tsmets$ find . -d 1

./.svn
./__init__.py
./Base
./clean_unused.sh
./constants.py
./fixtures
./formats
./Health
./InfoAndNews
./load_data.sh
./locale
./logging.conf
./manage.py
./scripts
./settings.py
./Sport
./templates
./test_constants.py
./urls.py
...

with as Django module : Base / Health / InfoAndNews / Sport


After struggling a bit (it is always good), I exported teh following variable :
DJANGO_SETTINGS_MODULE=/Users/tsmets/Documents/python/<Project>/<Site>


Now, when I run the command to generate the message

<snip>
Thomas-SMETSs-MacBook-Pro:<Site> tsmets$ django-admin.py makemessages -v 2 -a
examining files with the extensions: .html
processing language ca
ignoring file all-wcprops in ./.svn
ignoring file entries in ./.svn
ignoring file __init__.py.svn-base in ./.svn/prop-base
ignoring file clean_unused.sh.svn-base in ./.svn/prop-base
ignoring file constants.py.svn-base in ./.svn/prop-base
ignoring file load_data.sh.svn-base in ./.svn/prop-base
ignoring file logging.conf.svn-base in ./.svn/prop-base
ignoring file manage.py.svn-base in ./.svn/prop-base
ignoring file settings.py.svn-base in ./.svn/prop-base
ignoring file urls.py.svn-base in ./.svn/prop-base
ignoring file __init__.py.svn-base in ./.svn/text-base
ignoring file clean_unused.sh.svn-base in ./.svn/text-base
ignoring file constants.py.svn-base in ./.svn/text-base
ignoring file load_data.sh.svn-base in ./.svn/text-base
ignoring file logging.conf.svn-base in ./.svn/text-base
ignoring file manage.py.svn-base in ./.svn/text-base
ignoring file settings.py.svn-base in ./.svn/text-base
ignoring file urls.py.svn-base in ./.svn/text-base
processing file __init__.py in .
Error: errors happened while running xgettext on __init__.py
/bin/sh: xgettext: command not found

Thomas-SMETSs-MacBook-Pro:<Site> tsmets$ xgettext<Press-TAB>
xgettext.pl xgettext5.10.0.pl xgettext5.8.9.pl

</snip>


Any idea ... what's wrong .... ?

\T,


--
Thomas SMETS
rue J. Wytsmanstraat 62
1050 Brussels
m. : +32 497 44 68 12
W : http://genealogy.tsmets.lautre.net
skype : tsmets

Felippe Bueno

unread,
Jun 25, 2010, 12:26:42 PM6/25/10
to django...@googlegroups.com
I think you need to install gettext package.


--
You received this message because you are subscribed to the Google Groups "Django users" group.
To post to this group, send email to django...@googlegroups.com.
To unsubscribe from this group, send email to django-users...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/django-users?hl=en.


Message has been deleted

tsmets

unread,
Jun 27, 2010, 4:29:07 AM6/27/10
to Django users
Well
Yes & No
Apparently gettext is missing but xegettext is present but Django
complains on xgettext returning an Error... so it seems that it did
the switch to xgettext correctly :)

\T,

ps : I altered the subject to hint Mac User into this post (?)

On Jun 25, 6:26 pm, Felippe Bueno <felippe.bu...@gmail.com> wrote:

<snip>
Reply all
Reply to author
Forward
0 new messages