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

Commit

Permalink
Merge 94f8cfc into c639c65
Browse files Browse the repository at this point in the history
  • Loading branch information
msaqib52 committed Dec 9, 2020
2 parents c639c65 + 94f8cfc commit 48c2930
Show file tree
Hide file tree
Showing 57 changed files with 944 additions and 154 deletions.
Binary file modified edx_notifications/locale/ar/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/locale/de/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/locale/es/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/locale/fr/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/locale/ja/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/locale/nl/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/locale/pt/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/locale/zh_CN/LC_MESSAGES/django.mo
Binary file not shown.
4 changes: 3 additions & 1 deletion edx_notifications/renderers/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
from underscore import _ as us
from django.contrib.staticfiles import finders
from django.templatetags.static import static
from django.utils.translation import gettext

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

_payload.update({
'__display_created': created_str
'__display_created': created_str,
'gettext': gettext
})

return self.underscore_template(_payload)
Expand Down
Binary file modified edx_notifications/server/web/locale/ar/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/server/web/locale/ar/LC_MESSAGES/djangojs.mo
Binary file not shown.
101 changes: 82 additions & 19 deletions edx_notifications/server/web/locale/ar/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-14 16:03+0500\n"
"POT-Creation-Date: 2020-12-04 11:26+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -19,46 +18,110 @@ msgstr ""
"Plural-Forms: nplurals=6; plural=n==0 ? 0 : n==1 ? 1 : n==2 ? 2 : n%100>=3 "
"&& n%100<=10 ? 3 : n%100>=11 && n%100<=99 ? 4 : 5;\n"

#: static/edx_notifications/js/views/notification_pane_view.js:181
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:197
msgid "Announcements"
msgstr "إعلانات"

#: static/edx_notifications/templates/renderers/course_announcements/new_announcement.underscore:2
msgid "Announcement"
msgstr "إعلان"

#: static/edx_notifications/js/views/notification_pane_view.js:186
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:202
msgid "Group Work"
msgstr "العمل الجماعي"

#: static/edx_notifications/js/views/notification_pane_view.js:191
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:207
msgid "Leaderboards"
msgstr "لوحات المتسابقين"

#: static/edx_notifications/js/views/notification_pane_view.js:196
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:212
msgid "Discussion"
msgstr "النقاش"

#: static/edx_notifications/js/views/notification_pane_view.js:201
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:217
msgid "Other"
msgstr "أخرى"

#: static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:3
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:399
msgid "Today at "
msgstr "اليوم في"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/cohorted_comment_added.underscore:8
msgid "responded:"
msgstr "تمت الاستجابة:"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/cohorted_thread_added.underscore:7
msgid "posted:"
msgstr "تم النشر:"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/comment_upvoted.underscore:4
msgid "Your response to"
msgstr "الاستجابة إلى"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/comment_upvoted.underscore:4
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/post_upvoted.underscore:4
msgid "was upvoted"
msgstr "تم التأييد"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/comment_upvoted.underscore:4
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/post_upvoted.underscore:4
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/thread_followed.underscore:4
msgid "times"
msgstr "مرات"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/post_flagged.underscore:4
msgid "has flagged a post entitled"
msgstr "قام بوضع علامة على منشور بعنوان"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/post_upvoted.underscore:4
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/thread_followed.underscore:4
msgid "Your post"
msgstr "منشورك"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/reply_to_thread.underscore:4
msgid "responded to your post in"
msgstr "تمت الاستجابة إلى منشورك في"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/thread_followed.underscore:4
msgid "was followed"
msgstr "تمت المتابعة"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/file_uploaded.underscore:4
msgid "uploaded a file"
msgstr "تم تحميل ملف"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/grades_posted.underscore:1
msgid "Grade(s) are"
msgstr "الدرجة (الدرجات) هي"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/grades_posted.underscore:1
msgid "posted"
msgstr "تم النشر"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/stage_due.underscore:1
msgid "due"
msgstr "الاستحقاق"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/stage_open.underscore:1
msgid "are"
msgstr "يكون"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/stage_open.underscore:1
msgid "open"
msgstr "مفتوح"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:1
msgid "You are now"
msgstr "أنت الآن"

#: static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:3
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:1
msgid "for"
msgstr "في"

#: static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:3
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:1
msgid "in the cohort!"
msgstr "!على مستوى المجموعة"
msgstr "على مستوى المجموعة!"

#: static/edx_notifications/templates/renderers/course_announcements/new_announcement.underscore:2
msgid "Announcement"
msgstr "إعلان"

#: static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:3
msgid "Progress"
msgstr "التقدم المحرز"

#: static/edx_notifications/js/views/notification_pane_view.js:383
msgid "Today at "
msgstr "اليوم"
Binary file modified edx_notifications/server/web/locale/de/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/server/web/locale/de/LC_MESSAGES/djangojs.mo
Binary file not shown.
93 changes: 78 additions & 15 deletions edx_notifications/server/web/locale/de/LC_MESSAGES/djangojs.po
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,11 @@
# This file is distributed under the same license as the PACKAGE package.
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
#
#, fuzzy
msgid ""
msgstr ""
"Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2018-11-14 16:03+0500\n"
"POT-Creation-Date: 2020-12-04 11:31+0000\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n"
Expand All @@ -18,42 +17,106 @@ msgstr ""
"Content-Transfer-Encoding: 8bit\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

#: static/edx_notifications/js/views/notification_pane_view.js:181
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:197
msgid "Announcements"
msgstr "Ankündigungen"

#: static/edx_notifications/js/views/notification_pane_view.js:186
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:202
msgid "Group Work"
msgstr "Gruppenarbeit"

#: static/edx_notifications/js/views/notification_pane_view.js:191
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:207
msgid "Leaderboards"
msgstr "Ranglisten"

#: static/edx_notifications/js/views/notification_pane_view.js:196
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:212
msgid "Discussion"
msgstr "Diskussionen"

#: static/edx_notifications/js/views/notification_pane_view.js:201
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:217
msgid "Other"
msgstr ""
msgstr "Andere"

#: static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:3
#: edx_notifications/server/web/static/edx_notifications/js/views/notification_pane_view.js:399
msgid "Today at "
msgstr "heute"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/cohorted_comment_added.underscore:8
msgid "responded:"
msgstr "beantwortet:"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/cohorted_thread_added.underscore:7
msgid "posted:"
msgstr "gepostet:"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/comment_upvoted.underscore:4
msgid "Your response to"
msgstr "Ihre Antwort ist an"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/comment_upvoted.underscore:4
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/post_upvoted.underscore:4
msgid "was upvoted"
msgstr "wurde positiv bewertet"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/comment_upvoted.underscore:4
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/post_upvoted.underscore:4
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/thread_followed.underscore:4
msgid "times"
msgstr "Mal"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/post_flagged.underscore:4
msgid "has flagged a post entitled"
msgstr "hat einen Post mit folgendem Titel gemeldet:"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/post_upvoted.underscore:4
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/thread_followed.underscore:4
msgid "Your post"
msgstr "Ihr Post"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/reply_to_thread.underscore:4
msgid "responded to your post in"
msgstr "hat auf Ihren Post geantwortet in"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/forums/thread_followed.underscore:4
msgid "was followed"
msgstr "wurde gefolgt"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/file_uploaded.underscore:4
msgid "uploaded a file"
msgstr "Eine Datei hochladen"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/grades_posted.underscore:1
msgid "Grade(s) are"
msgstr "Noten sind"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/grades_posted.underscore:1
msgid "posted"
msgstr "gepostet"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/stage_due.underscore:1
msgid "due"
msgstr "fällig"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/stage_open.underscore:1
msgid "are"
msgstr "sind"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/group_project/stage_open.underscore:1
msgid "open"
msgstr "offen"

#: edx_notifications/server/web/static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:1
msgid "You are now"
msgstr "Sie sind jetzt"

#: static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:3
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:1
msgid "for"
msgstr "für"

#: static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:3
#: edx_notifications/server/web/static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:1
msgid "in the cohort!"
msgstr "in der Gruppe"

#: static/edx_notifications/templates/renderers/leaderboard/rank_changed.underscore:3
msgid "Progress"
msgstr "Fortschritt"

#: static/edx_notifications/js/views/notification_pane_view.js:383
msgid "Today at "
msgstr "heute"
Binary file modified edx_notifications/server/web/locale/en/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/server/web/locale/en/LC_MESSAGES/djangojs.mo
Binary file not shown.
Binary file modified edx_notifications/server/web/locale/es/LC_MESSAGES/django.mo
Binary file not shown.
Binary file modified edx_notifications/server/web/locale/es/LC_MESSAGES/djangojs.mo
Binary file not shown.

0 comments on commit 48c2930

Please sign in to comment.