diff options
author | emkael <emkael@tlen.pl> | 2018-05-01 13:07:00 +0200 |
---|---|---|
committer | emkael <emkael@tlen.pl> | 2018-05-01 13:07:00 +0200 |
commit | 72c30e7b12a75d43b64e31094bf3f9d3a899fe65 (patch) | |
tree | e19e51c33ec807df0545bb303ece8652ffc08ff9 /jfr_playoff/template.py | |
parent | 0bb79de94e9bf78deb76dadb4a02133942665c6b (diff) |
Instantation of template "engine" with i18n config
Diffstat (limited to 'jfr_playoff/template.py')
-rw-r--r-- | jfr_playoff/template.py | 6 |
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 |