Mercurial > libervia-web
comparison src/pages/g/page_meta.py @ 945:44dde9b955e8
pages (g): use invitee's locale as template locale
author | Goffi <goffi@goffi.org> |
---|---|
date | Sun, 21 May 2017 16:00:29 +0200 |
parents | aba7208d9d50 |
children | 43df2bf38787 |
comparison
equal
deleted
inserted
replaced
944:5d9f6d25c586 | 945:44dde9b955e8 |
---|---|
73 profile = profile))) | 73 profile = profile))) |
74 sat_session.profile = profile | 74 sat_session.profile = profile |
75 | 75 |
76 # we copy data useful in templates | 76 # we copy data useful in templates |
77 template_data = request.template_data | 77 template_data = request.template_data |
78 for key in ('name',): | 78 for key in (u'name', u'locale'): |
79 if key in data: | 79 if key in data: |
80 template_data[key] = data[key] | 80 template_data[key] = data[key] |
81 | 81 |
82 | 82 |
83 def prepare_render(self, request): | 83 def prepare_render(self, request): |