# HG changeset patch # User Marcin Kuzminski # Date 2017-01-12 14:31:58 # Node ID 4e6cc8384c4d5fbc773bc436ac5f06652663950c # Parent fd7a7ca92da1343640f008d143911b95e51e842c i18n: enable translation defaults for pyramid views. diff --git a/rhodecode/config/middleware.py b/rhodecode/config/middleware.py --- a/rhodecode/config/middleware.py +++ b/rhodecode/config/middleware.py @@ -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)