Internationalization: Language prefix in URL patterns

312 views
Skip to first unread message

Saint Germain

unread,
Aug 13, 2013, 7:45:08 PM8/13/13
to django...@googlegroups.com
Hello,

I wanted to use Langage prefix in my URL as it was described in the
official Django documentation:
https://docs.djangoproject.com/en/dev/topics/i18n/translation/#language-prefix-in-url-patterns

I've tried setting that with the Sandbox, and the preferred language in
my browser is correctly picked up (django-oscar appears in the
correct locale) as soon as I connect to the server.

But after that I am not able anymore to change the language using
the usual language selector on top of the page.
I can force the change by typing the URL with the langage prefix (for
instance 127.0.0.1:8000/de) but not through the selector.

Can someone confirm if this is a bug or a feature ?
If it is a bug I will open an issue and try to track it down.

Thanks !

Maik Hoepfel

unread,
Aug 21, 2013, 12:38:14 PM8/21/13
to django...@googlegroups.com
Hi,

that's a bug. See if you can figure it out and send a PR, otherwise please submit your findings as an issue. Feel free to link to this thread.

Cheers,

Maik

sain...@gmail.com

unread,
Aug 21, 2013, 3:02:38 PM8/21/13
to django...@googlegroups.com
Thanks for having taken the time to confirm this.
I have opened the issue here:
https://github.com/tangentlabs/django-oscar/issues/797

Regards,

Maik Hoepfel

unread,
Aug 22, 2013, 4:49:34 AM8/22/13
to django...@googlegroups.com
Excellent, we'll have a look. It probably won't get looked at before
release of 0.6, but I quite like signalling the language in the URL, so
I'll look into it after that.

Regards,

Maik
> --
> https://github.com/tangentlabs/django-oscar
> http://django-oscar.readthedocs.org/en/latest/
> https://twitter.com/django_oscar
> ---
> You received this message because you are subscribed to a topic in the
> Google Groups "django-oscar" group.
> To unsubscribe from this topic, visit
> https://groups.google.com/d/topic/django-oscar/Cp5M3t9WNL8/unsubscribe.
> To unsubscribe from this group and all its topics, send an email to
> django-oscar...@googlegroups.com.
> Visit this group at http://groups.google.com/group/django-oscar.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/django-oscar/ed817480-6b08-429d-b7a5-9a3211ba0c17%40googlegroups.com.
> For more options, visit https://groups.google.com/groups/opt_out.



Maik Hoepfel


Tangent Snowball
84-86 Great Portland Street
London
W1W 7NR




www.tangentsnowball.com

Tangent Snowball is a registered trading name of Tangent Marketing Services Limited
Registered Office: 84-86 Great Portland Street, London W1W 7NR
Registered in England Wales Number 4323657

This message contains confidential information and is intended only for the individual named.
If you are not the named addressee you should not disseminate, distribute or copy this e-mail.
Please notify the sender immediately by e-mail if you have received this e-mail by mistake
and delete this e-mail from your system.


Reply all
Reply to author
Forward
0 new messages