Re: How to fix i18n fallback , from variant xx-YY to xx and from xx to en the translatino is not available.

2017-05-09 Thread Melvyn Sopacua
On Monday 08 May 2017 09:27:52 Abdullah Sh. wrote: > Well as far I can test, Django i18n does supports fall-back 'xx-YY' to > 'xx' then to default ('en' in my case) but only for 'Accept-Language' > user agent header. It does not do same for URL language switch. Could you please report this as a bu

Re: How to fix i18n fallback , from variant xx-YY to xx and from xx to en the translatino is not available.

2017-05-08 Thread Abdullah Sh.
Well as far I can test, Django i18n does supports fall-back 'xx-YY' to 'xx' then to default ('en' in my case) but only for 'Accept-Language' user agent header. It does not do same for URL language switch. Here is the solution I could come up with: from django.views.generic import RedirectV

How to fix i18n fallback , from variant xx-YY to xx and from xx to en the translatino is not available.

2017-05-06 Thread Abdullah Sh.
Well, official documentation says clearly it should fall-back (ex: fr-fr to fr then to en) but my case raises 404 error. Source: https://django.readthedocs.io/en/1.5.x/topics/i18n/translation.html If a base language is available but the sublanguage specified is not, > Django uses the base lan