def select_lang_view(self):
lang = self.request.POST.get('select_lang', '').strip()
self.request.locale = babel.Locale(*babel.parse_locale(lang))
return HTTPFound(location=self.request.route_url('i18n_helper.po', lang=lang, domain=self.domain))
评论列表
文章目录