comparison roundup/cgi/templating.py @ 2538:09b0fc5b1716

make client.translator available to templates as 'i18n'
author Alexander Smishlajev <a1s@users.sourceforge.net>
date Sun, 04 Jul 2004 05:05:19 +0000
parents 736115d374f2
children 9b9c8fb52732
comparison
equal deleted inserted replaced
2536:70ede89e8056 2538:09b0fc5b1716
282 'utils': utils(client), 282 'utils': utils(client),
283 'templates': Templates(client.instance.config.TEMPLATES), 283 'templates': Templates(client.instance.config.TEMPLATES),
284 'template': template, 284 'template': template,
285 'true': 1, 285 'true': 1,
286 'false': 0, 286 'false': 0,
287 'i18n': client.translator
287 } 288 }
288 # add in the item if there is one 289 # add in the item if there is one
289 if client.nodeid: 290 if client.nodeid:
290 if classname == 'user': 291 if classname == 'user':
291 c['context'] = HTMLUser(client, classname, client.nodeid, 292 c['context'] = HTMLUser(client, classname, client.nodeid,

Roundup Issue Tracker: http://roundup-tracker.org/