current
Last change
on this file since c081c35 was
737eb6c,
checked in by Borja Lopez <borja@…>, 5 years ago
|
Fixed missing translations for submit buttons all over the place.
|
-
Property mode set to
100644
|
File size:
398 bytes
|
Line | |
---|
1 | from pyramid.events import subscriber, BeforeRender |
---|
2 | from pyramid.i18n import TranslationStringFactory, get_localizer |
---|
3 | |
---|
4 | from ow.utilities import timedelta_to_hms |
---|
5 | |
---|
6 | _ = TranslationStringFactory('OpenWorkouts') |
---|
7 | |
---|
8 | |
---|
9 | @subscriber(BeforeRender) |
---|
10 | def add_renderer_globals(event): # pragma: no cover |
---|
11 | event['timedelta_to_hms'] = timedelta_to_hms |
---|
12 | event['_'] = _ |
---|
13 | event['get_localizer'] = get_localizer |
---|
Note: See
TracBrowser
for help on using the repository browser.