summaryrefslogtreecommitdiff
path: root/jfr_playoff/template.py
diff options
context:
space:
mode:
authoremkael <emkael@tlen.pl>2018-05-01 13:07:00 +0200
committeremkael <emkael@tlen.pl>2018-05-01 13:07:00 +0200
commit72c30e7b12a75d43b64e31094bf3f9d3a899fe65 (patch)
treee19e51c33ec807df0545bb303ece8652ffc08ff9 /jfr_playoff/template.py
parent0bb79de94e9bf78deb76dadb4a02133942665c6b (diff)
Instantation of template "engine" with i18n config
Diffstat (limited to 'jfr_playoff/template.py')
-rw-r--r--jfr_playoff/template.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/jfr_playoff/template.py b/jfr_playoff/template.py
index 64bc0e7..5fd0c45 100644
--- a/jfr_playoff/template.py
+++ b/jfr_playoff/template.py
@@ -183,6 +183,8 @@ class PlayoffTemplateStrings(object):
class PlayoffTemplate(object):
- @staticmethod
- def get(string, *params):
+ def __init__(self, settings):
+ self.settings = settings
+
+ def get(self, string, *params):
return getattr(PlayoffTemplateStrings, string).decode('utf8') % params