Monday, July 29, 2019

Re: LANGUAGE_CODE

Hi

Thanks a lot !

yves

Le 28 juill. 2019 à 22:56, Aldian Fazrihady <mobile@aldian.net> a écrit :

Hi Yves, please clear cookies and refresh your django app page afterwards.

It is possible to not use cookies at all regarding i18n if you use language code as part of URL. I always prefer using URL for i18n. 

On Mon, Jul 29, 2019 at 1:08 AM Yves de Champlain <yesyves@gmail.com> wrote:
HI

Django translation works very well for me, except that when I try to change LANGUAGE_CODE in settings.py, my site remains in French. I need to change my OS system settings to see the English version.

I have two languages, English as default and a French Translation.

LANGUAGES = (
    ('en', _('English')),
    ('fr', _('French')),
)

LANGUAGE_CODE = 'en'

Thanks for your insights !

yves



--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/3a301603-3237-4674-9d8d-2f6362d3154e%40googlegroups.com.


--
Regards,


--
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 django-users+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/django-users/CAN7EoAbuxKZ%3DzrmnAMAWxGpcFe-sFvu9x16VWRQe%3DWa8NrLUPw%40mail.gmail.com.

No comments:

Post a Comment