Wednesday, March 6, 2013

i18n

Hi,

I am setting up i18n in my django app. I have added the following to my
settings.py:

PROJECT_PATH = os.path.abspath(os.path.dirname(__file__))

LOCALE_PATHS = (
os.path.join(PROJECT_PATH, 'locale'),
)

LANGUAGES = [
('en', _('English')),
('nb', _('Norwegian')),
]

And created a locale/ directory into my project root.

Then I've run the command:

django-admin.py makemessages --all

...without any error, but it doesn't generate anything into locale/. I
know I've created locale/ in the correct location, as I got some errors
running the command until I created it there.

myprojectroot$ find . -iname '*.po'
myprojectroot$ ### NONE!!!

Any suggestions please? Thanks :-)

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

No comments:

Post a Comment