Re: different language for admin/front-end

2012-08-12 Thread Gour
On Sun, 12 Aug 2012 17:33:27 +0200
Melvyn Sopacua  wrote:

> As you can see in the documentation [1], there's five methods by which
> one can select the language once you've added LocaleMiddleware:

Thank you very much. I was looking at docs, but, somehow, missed this
info.

However, I'm pleased to see there are several options to choose from
without any extra add-on required as with PHP CMS-es (WP, Concrete5).


Sincerely,
Gour

-- 
As fire is covered by smoke, as a mirror is covered by dust, 
or as the embryo is covered by the womb, the living entity is 
similarly covered by different degrees of this lust.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


signature.asc
Description: PGP signature


Re: different language for admin/front-end

2012-08-12 Thread Melvyn Sopacua
On 12-8-2012 15:53, Gour wrote:

> what is the recommended way to set different language in Django admin
> (e.g. English) than the one in front-end (e.g. native one)?

As you can see in the documentation [1], there's five methods by which
one can select the language once you've added LocaleMiddleware:
- The first method enables the user to select the language by altering
the URL. Naturally, this can be facilitated by the site by providing
'change language' buttons.
- Two and three are controlled by the site, but can also be made
user-selectable.
- Four is fully user controllable by going into the browser options.
- Five is site-wide and should remain that way. Altering project
settings at runtime can have unforeseen side effects.

Of these options, number one is the least intrusive, but you'll have to
figure out how to handle the redirect if the language code is not part
of the URL.
Second best is the session cookie, though I don't really see a simple
way to properly set it back if one leaves the admin site (which isn't
the same as logging out).

[1]

-- 
Melvyn Sopacua

-- 
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+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/django-users?hl=en.



different language for admin/front-end

2012-08-12 Thread Gour

Hello,

what is the recommended way to set different language in Django admin
(e.g. English) than the one in front-end (e.g. native one)?

I see there are some snippets and/or middleware for it, but the posts
are several years old and, considering I'm new to django-1,4; I wonder
if there is some other way/settings/app to achieve it?


Sincerely,
Gour

-- 
As fire is covered by smoke, as a mirror is covered by dust, 
or as the embryo is covered by the womb, the living entity is 
similarly covered by different degrees of this lust.

http://atmarama.net | Hlapicina (Croatia) | GPG: 52B5C810


signature.asc
Description: PGP signature