Skip to content

Commit

Permalink
Merge pull request #14 from Ydrasil/change-syntax
Browse files Browse the repository at this point in the history
Change syntax
  • Loading branch information
Vincent Agnano authored Jun 9, 2017
2 parents ca5299b + 490538c commit 6f3d548
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tcii18n/template.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,6 @@ def utility_processor():
def trans(sentence):
filename = get_translations_file()
if filename not in _cached_translators:
_cached_translators[filename] = Translator(
get_translations_file())
_cached_translators[filename] = Translator(filename)
return _cached_translators[filename].translate(sentence)
return dict(trans=trans)

0 comments on commit 6f3d548

Please sign in to comment.