django-admin.py makemessages issue

257 views
Skip to first unread message

Phil

unread,
Jul 12, 2012, 1:59:18 PM7/12/12
to django...@googlegroups.com
Hi,

(django version 1.3.1, Python2.7)

(at the end of my settings file)
========================
# translation support
ugettext = lambda s: s

LANGUAGES = (
    ('en', ugettext('English')),
    ('es', ugettext('Spanish')),
    ('de', ugettext('German')),
)

LOCALE_PATHS = (
    '/home/phil/project/locale',
)
========================

I am implementing languages into my django website. It's working fine but when I run "django-admin.py makemessages" on the command line it gives the following error....

"Error: This script should be run from the Django SVN tree or your project or app tree. If you did indeed run it from the SVN checkout or your project or application, maybe you are just missing the conf/locale (in the django tree) or locale (for project and application) directory? It is not created automatically, you have to create it by hand if you want to enable i18n for your project or application."

So like it says, I create the "locale" folder manually then(it's in the root of my project directory) run makemessages again but I just get another error saying...

"Error: Type 'django-admin.py help makemessages' for usage information."

Any idea's where I could be going wrong?

Tomas Neme

unread,
Jul 12, 2012, 2:02:11 PM7/12/12
to django...@googlegroups.com
"django-admin.py makemessages -l de"
"django-admin.py makemessages -l es"
> --
> You received this message because you are subscribed to the Google Groups
> "Django users" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/django-users/-/IukJjVtKua4J.
> 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.



--
"The whole of Japan is pure invention. There is no such country, there
are no such people" --Oscar Wilde

|_|0|_|
|_|_|0|
|0|0|0|

(\__/)
(='.'=)This is Bunny. Copy and paste bunny
(")_(") to help him gain world domination.

Phil

unread,
Jul 12, 2012, 2:13:14 PM7/12/12
to django...@googlegroups.com
ugh, that would explain it! Thanks a lot Tomas.


On Thursday, July 12, 2012 7:02:11 PM UTC+1, Tomas Neme wrote:
"django-admin.py makemessages -l de"
"django-admin.py makemessages -l es"


> django-users+unsubscribe@googlegroups.com.

Phil

unread,
Jul 12, 2012, 2:30:27 PM7/12/12
to django...@googlegroups.com
Now I'm getting the following error...

Error: errors happened while running xgettext on __init__.py
/bin/sh: 1: xgettext: not found


It creates the right folders, but no .mo files.
Reply all
Reply to author
Forward
0 new messages