[PATCH 2 of 4] i18n: remove explicit formencode language setting

Thomas De Schampheleire patrickdepinguin at gmail.com
Sat Jun 17 20:32:46 UTC 2017


# HG changeset patch
# User Thomas De Schampheleire <thomas.de.schampheleire at gmail.com>
# Date 1497730751 -7200
#      Sat Jun 17 22:19:11 2017 +0200
# Node ID 8c756862fd5ad0f775d8ba93c1a6ec1616fbc34a
# Parent  ba365074a2db1175164aaef897a0b6a1e02b1045
i18n: remove explicit formencode language setting

Does not seem to be needed anymore, formencode validation is still
translated in the current language without it.

diff --git a/kallithea/config/app_cfg.py b/kallithea/config/app_cfg.py
--- a/kallithea/config/app_cfg.py
+++ b/kallithea/config/app_cfg.py
@@ -174,8 +174,6 @@ def setup_configuration(app):
         repo2db_mapper(ScmModel().repo_scan(repos_path),
                        remove_obsolete=False, install_git_hooks=False)
 
-    formencode.api.set_stdtranslation(languages=[config.get('lang')])
-
 hooks.register('configure_new_app', setup_configuration)
 
 


More information about the kallithea-general mailing list