Tuesday, May 3, 2011

Re: Limited set of languages available in Django i18n?

On Tue, 2011-05-03 at 04:39 -0700, Uri Goldstein wrote:
> KG, in the workaround you mention as my second option, are you
> referring to
> the folder /conf/locale ? Is there where I will be putting my "new"
> languages?

yes - for example if the language you are adding is martian (with
abbreviation of mrt), then you create a directory like this:
conf/locale/mrt/LC_MESSAGES/

copy the default .po files to it, run compilemessages and you will get
the appropriatie .mo files (or you can just copy the .mo files from the
en/LC_MESSAGES/ directory).

in your project/locale you will actually have to translate the strings
to martian if you need it.
--
regards
KG
http://lawgon.livejournal.com
Coimbatore LUG rox
http://ilugcbe.techstud.org/

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

No comments:

Post a Comment