Mercurial > libervia-web
diff libervia/server/session_iface.py @ 1165:6424d3684d1e
pages: locale handling:
language/locale can be set using C.KEY_LANG in url query (e.g. [url]?lang=fr), it is set for the whole session.
author | Goffi <goffi@goffi.org> |
---|---|
date | Wed, 10 Apr 2019 21:06:34 +0200 |
parents | 2af117bfe6cc |
children | 352865f4a268 |
line wrap: on
line diff
--- a/libervia/server/session_iface.py Sun Mar 03 17:14:27 2019 +0100 +++ b/libervia/server/session_iface.py Wed Apr 10 21:06:34 2019 +0200 @@ -47,6 +47,7 @@ self.uuid = unicode(shortuuid.uuid()) self.identities = data_objects.Identities() self.csrf_token = unicode(shortuuid.uuid()) + self.locale = None # i18n of the pages self.pages_data = {} # used to keep data accross reloads (key is page instance) self.affiliations = OrderedDict() # cache for node affiliations