Skip to content
This repository was archived by the owner on May 12, 2022. It is now read-only.

Commit ba8b3ea

Browse files
authored
MCKIN-27715: add missing translations (#233)
* MCKIN-27715: add missing translations (#232) * mark missing strings for translations * add missing translations * bump version * add japanese translations * fix tests * fix tests * update translations * bump version * remove unused import
1 parent c639c65 commit ba8b3ea

File tree

57 files changed

+944
-154
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

57 files changed

+944
-154
lines changed
-41 Bytes
Binary file not shown.
-41 Bytes
Binary file not shown.
-41 Bytes
Binary file not shown.
-41 Bytes
Binary file not shown.
-41 Bytes
Binary file not shown.
-41 Bytes
Binary file not shown.
-41 Bytes
Binary file not shown.
-41 Bytes
Binary file not shown.
-41 Bytes
Binary file not shown.

edx_notifications/renderers/basic.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
from underscore import _ as us
1111
from django.contrib.staticfiles import finders
1212
from django.templatetags.static import static
13+
from django.utils.translation import gettext
1314

1415
from edx_notifications.const import RENDER_FORMAT_HTML, RENDER_FORMAT_JSON
1516
from edx_notifications.renderers.renderer import BaseNotificationRenderer
@@ -106,7 +107,8 @@ def render(self, msg, render_format, lang):
106107
created_str = msg.created.strftime("%B %d, %Y") + ' at ' + msg.created.strftime("%H:%M%p") + ' GMT'
107108

108109
_payload.update({
109-
'__display_created': created_str
110+
'__display_created': created_str,
111+
'gettext': gettext
110112
})
111113

112114
return self.underscore_template(_payload)

0 commit comments

Comments
 (0)