Skip to content

Commit 339c503

Browse files
author
Alexander Smishlajev
committed
make client.translator available to templates as 'i18n'
1 parent c830a06 commit 339c503

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

roundup/cgi/templating.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -284,6 +284,7 @@ class utils(client.instance.interfaces.TemplatingUtils, utils):
284284
'template': template,
285285
'true': 1,
286286
'false': 0,
287+
'i18n': client.translator
287288
}
288289
# add in the item if there is one
289290
if client.nodeid:

0 commit comments

Comments
 (0)