i18n: enable translation defaults for pyramid views.
This commit is contained in:
parent
f5d51eca24
commit
32df9f662a
1 changed files with 3 additions and 0 deletions
|
|
@ -283,6 +283,9 @@ def includeme(config):
|
|||
config.add_route(
|
||||
'rhodecode_support', 'https://rhodecode.com/help/', static=True)
|
||||
|
||||
config.add_translation_dirs('rhodecode:i18n/')
|
||||
settings['default_locale_name'] = settings.get('lang', 'en')
|
||||
|
||||
# Add subscribers.
|
||||
config.add_subscriber(scan_repositories_if_enabled, ApplicationCreated)
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue