#6175 (The lets1 demo site is broken)
by Luc Saffre · in Developers · assigned to Sharif Mehedi
Kurzbeschreibung
Kinder
Kommentare
- 1 Jahr, 3 Monate ago von Luc Saffre about #6175 (The lets1 demo site is broken) : I tested it (it works), I made a little optimization, ... but I still don't understand why we need to to differentiate between site_lang and user_lang.
- 1 Jahr, 3 Monate ago von Luc Saffre about #6175 (The lets1 demo site is broken) : How does ExtJS do it? Because there it works, doesn't it?
- 1 Jahr, 3 Monate ago von Sharif Mehedi about #6175 (The lets1 demo site is broken) : In Site.apply_languages(), I wonder why it's not setting the LANGUAGE_CODE when SITE.languages is None.
- 1 Jahr, 3 Monate ago von Sharif Mehedi about #6175 (The lets1 demo site is broken) : There is conflict, the lino.DJANGO_DEFAULT_LANGUAGE says the language is "en" whereas get_language() returns "en-us". DJANGO_DEFAULT_LANGUAGE is put to the SITE.languages and yet this language doesn't take effect. Not sure how to fix it as in having both the returned get_language() and the SITE.langu...
- 1 Jahr, 3 Monate ago von Luc Saffre about #6175 (The lets1 demo site is broken) : This ticket might be a quick win for you, @8lurry.
- 1 Jahr, 3 Monate ago von Luc Saffre about #6175 (The lets1 demo site is broken) : It's because this site has no languages. It works when you add a Site.languages:
languages = ["en"]
But that's only a workaround, actually we want Lino to support sites without languages, they should simply have the i18n machinery disabled. And BTW another workaround is to remove default_ui = ... - 1 Jahr, 3 Monate ago von Luc Saffre about #6175 (The lets1 demo site is broken) : Created new Ticket #6175 (The lets1 demo site is broken).