No that's the code from the Django documentation.

https://docs.djangoproject.com/en/1.6/howto/custom-management-commands/#management-commands-and-locales

On Thursday, 19 June 2014 09:39:34 UTC-4, Tom Evans wrote:
>
> On Thu, Jun 19, 2014 at 1:41 PM, Stodge <[email protected] <javascript:>> 
> wrote: 
> > Yes I'm aware of this thanks. However, the documentation also states 
> that I 
> > can activate a different language in my custom command: 
> > 
> > If, for some reason, your custom management command needs to use a fixed 
> > locale different from ‘en-us’, you should manually activate and 
> deactivate 
> > it in your handle() or handle_noargs() method using the functions 
> provided 
> > by the I18N support code: 
> > 
> > 
> > Using the code: 
> > 
> >         # Activate a fixed locale, e.g. Russian 
> >         translation.activate('ru') 
> > 
> > 
> > However, this doesn't appear to change anything. 
> > 
>
> From an earlier email, 'ru' is not an enabled language in your settings. 
>
> Cheers 
>
> Tom 
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/django-users.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/django-users/297585e5-9e71-4d39-90d6-868dfc289bd2%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to