Commit 1e428789 authored by Michal Čihař's avatar Michal Čihař

Fix machine translation initialization

parent 204aff95
...@@ -24,5 +24,5 @@ from trans.util import load_class ...@@ -24,5 +24,5 @@ from trans.util import load_class
# Initialize checks list # Initialize checks list
SERVICES = {} SERVICES = {}
for path in appsettings.MACHINE_TRANSLATION_SERVICES: for path in appsettings.MACHINE_TRANSLATION_SERVICES:
cls = load_class(path) obj = load_class(path)()
SERVICES[cls.mtid] = cls() SERVICES[obj.mtid] = obj
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment