##// END OF EJS Templates
i18n: added pluralize to renderer globals.
marcink -
r1304:9a1b7bc4 default
parent child Browse files
Show More
@@ -48,7 +48,7 b' def add_renderer_globals(event):'
48
48
49 # Add Pyramid translation as '_' to context
49 # Add Pyramid translation as '_' to context
50 event['_'] = request.translate
50 event['_'] = request.translate
51 event['localizer'] = request.localizer
51 event['_ungettext'] = request.plularize
52
52
53
53
54 def add_localizer(event):
54 def add_localizer(event):
@@ -60,6 +60,7 b' def add_localizer(event):'
60
60
61 request.localizer = localizer
61 request.localizer = localizer
62 request.translate = auto_translate
62 request.translate = auto_translate
63 request.plularize = localizer.pluralize
63
64
64
65
65 def scan_repositories_if_enabled(event):
66 def scan_repositories_if_enabled(event):
General Comments 0
You need to be logged in to leave comments. Login now