From 508b66d12afeb1fe0c0f43c7aa926bb917697442 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Tue, 13 Nov 2018 20:25:33 +0500 Subject: [PATCH 01/39] Translations along with test fixes --- edx_notifications/base_data.py | 12 ++++ edx_notifications/const.py | 11 ++-- edx_notifications/data.py | 14 ++-- .../locale/ar/LC_MESSAGES/django.mo | Bin 0 -> 1514 bytes .../locale/ar/LC_MESSAGES/django.po | 60 +++++++++++++++++ .../locale/de/LC_MESSAGES/django.mo | Bin 0 -> 1248 bytes .../locale/de/LC_MESSAGES/django.po | 61 ++++++++++++++++++ .../locale/en/LC_MESSAGES/django.mo | Bin 0 -> 378 bytes .../locale/en/LC_MESSAGES/django.po | 58 +++++++++++++++++ .../locale/es/LC_MESSAGES/django.mo | Bin 0 -> 1332 bytes .../locale/es/LC_MESSAGES/django.po | 61 ++++++++++++++++++ .../locale/fr/LC_MESSAGES/django.mo | Bin 0 -> 1265 bytes .../locale/fr/LC_MESSAGES/django.po | 59 +++++++++++++++++ .../locale/ja/LC_MESSAGES/django.mo | Bin 0 -> 1315 bytes .../locale/ja/LC_MESSAGES/django.po | 59 +++++++++++++++++ .../locale/nl/LC_MESSAGES/django.mo | Bin 0 -> 421 bytes .../locale/nl/LC_MESSAGES/django.po | 59 +++++++++++++++++ .../locale/pt/LC_MESSAGES/django.mo | Bin 0 -> 1253 bytes .../locale/pt/LC_MESSAGES/django.po | 61 ++++++++++++++++++ .../locale/zh-ch/LC_MESSAGES/django.mo | Bin 0 -> 1102 bytes .../locale/zh-ch/LC_MESSAGES/django.po | 58 +++++++++++++++++ edx_notifications/stores/sql/models.py | 11 ++-- .../stores/sql/tests/test_store_provider.py | 19 +++--- requirements.txt | 4 +- settings.py | 38 ++++++++++- setup.py | 2 +- testserver/bokchoy_settings.py | 24 +++++++ 27 files changed, 640 insertions(+), 31 deletions(-) create mode 100644 edx_notifications/locale/ar/LC_MESSAGES/django.mo create mode 100644 edx_notifications/locale/ar/LC_MESSAGES/django.po create mode 100644 edx_notifications/locale/de/LC_MESSAGES/django.mo create mode 100644 edx_notifications/locale/de/LC_MESSAGES/django.po create mode 100644 edx_notifications/locale/en/LC_MESSAGES/django.mo create mode 100644 edx_notifications/locale/en/LC_MESSAGES/django.po create mode 100644 edx_notifications/locale/es/LC_MESSAGES/django.mo create mode 100644 edx_notifications/locale/es/LC_MESSAGES/django.po create mode 100644 edx_notifications/locale/fr/LC_MESSAGES/django.mo create mode 100644 edx_notifications/locale/fr/LC_MESSAGES/django.po create mode 100644 edx_notifications/locale/ja/LC_MESSAGES/django.mo create mode 100644 edx_notifications/locale/ja/LC_MESSAGES/django.po create mode 100644 edx_notifications/locale/nl/LC_MESSAGES/django.mo create mode 100644 edx_notifications/locale/nl/LC_MESSAGES/django.po create mode 100644 edx_notifications/locale/pt/LC_MESSAGES/django.mo create mode 100644 edx_notifications/locale/pt/LC_MESSAGES/django.po create mode 100644 edx_notifications/locale/zh-ch/LC_MESSAGES/django.mo create mode 100644 edx_notifications/locale/zh-ch/LC_MESSAGES/django.po diff --git a/edx_notifications/base_data.py b/edx_notifications/base_data.py index f27f9d46..777e8eef 100644 --- a/edx_notifications/base_data.py +++ b/edx_notifications/base_data.py @@ -7,6 +7,7 @@ import dateutil.parser import copy from datetime import datetime, timedelta +from django.utils.translation import ugettext_lazy from freezegun.api import FakeDatetime @@ -59,6 +60,8 @@ def __init__(self, *args, **kwargs): # pylint: disable=unused-argument Initializer which takes in the type this field should be set it is set """ + # from django.utils.functional import __proxy__ + # self._expected_types.append(__proxy__) if not self._expected_types: raise TypeError( @@ -99,6 +102,7 @@ def __set__(self, data_object, value): value_type = type(value) if value and value_type not in self._expected_types: + raise TypeError( ( "Field expected type of '{expected}' got '{got}'" @@ -129,6 +133,14 @@ class StringField(TypedField): _expected_types = [unicode, str] +class LazyField(TypedField): + """ + Specialized subclass of TypedField(unicode) as a convienence for Translations support + """ + + _expected_types = [unicode, str, type(ugettext_lazy())] + + class IntegerField(TypedField): """ Specialized subclass of TypedField(int) as a convienence diff --git a/edx_notifications/const.py b/edx_notifications/const.py index 8a549991..22843fca 100644 --- a/edx_notifications/const.py +++ b/edx_notifications/const.py @@ -3,6 +3,7 @@ """ from django.conf import settings +from django.utils.translation import ugettext_lazy as _ NOTIFICATION_PRIORITY_NONE = 0 NOTIFICATION_PRIORITY_LOW = 1 @@ -99,27 +100,27 @@ 'groups': { 'announcements': { 'name': 'announcements', - 'display_name': 'Announcements', + 'display_name': _('Announcements'), 'group_order': 1 }, 'group_work': { 'name': 'group_work', - 'display_name': 'Group Work', + 'display_name': _('Group Work'), 'group_order': 2 }, 'leaderboards': { 'name': 'leaderboards', - 'display_name': 'Leaderboards', + 'display_name': _('Leaderboards'), 'group_order': 3 }, 'discussions': { 'name': 'discussions', - 'display_name': 'Discussion', + 'display_name': _('Discussion'), 'group_order': 4 }, '_default': { 'name': '_default', - 'display_name': 'Other', + 'display_name': _('Other'), 'group_order': 5 }, }, diff --git a/edx_notifications/data.py b/edx_notifications/data.py index 7bab9851..be712a35 100644 --- a/edx_notifications/data.py +++ b/edx_notifications/data.py @@ -18,7 +18,7 @@ RelatedObjectField, BaseDataObject, BooleanField, -) + LazyField) class NotificationChannel(BaseDataObject): @@ -42,7 +42,7 @@ class NotificationType(BaseDataObject): """ # the name (including namespace) of the notification, e.g. open-edx.lms.forums.reply-to-post - name = StringField() + name = LazyField() # default delivery channel for this type # None = no default @@ -50,7 +50,7 @@ class NotificationType(BaseDataObject): # renderer class - as a string - that will handle the rendering of # this type - renderer = StringField() + renderer = LazyField() # any context information to pass into the renderer renderer_context = DictField() @@ -405,13 +405,13 @@ class NotificationPreference(BaseDataObject): """ # the internal name of the channel - name = StringField() + name = LazyField() # display_name for notification preference - display_name = StringField() + display_name = LazyField() # display description for notification preference - display_description = StringField() + display_description = LazyField() # default_value for notification preference default_value = StringField() @@ -428,7 +428,7 @@ class UserNotificationPreferences(BaseDataObject): # instance of NotificationPreference, None = unloaded preference = RelatedObjectField(NotificationPreference) - value = StringField() + value = LazyField() # timestamps created = DateTimeField() diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.mo b/edx_notifications/locale/ar/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..9aafe633bfade1bfd3eacadf4efc33cb2fab8a09 GIT binary patch literal 1514 zcmcIhU27aw7(QzKTGR_a5JB*zU=hlxGn>|?lT6K+-NeP+Y}{-rdN3Z#*7lM{8AsR#KML_%=XKn=lLHz-u&)MB3MG!>vz{~S~KhHb!%Zq2eWOyam z>#!8|JnSc!eGgzZ{tae({+M9tF~**Q{|fL);91~Hz_)-e180FT@I&AR@EG_r?Cj%= zy@2@FC&u#+fUhC`9ryjd#HPr!VwFU7dP*gE#ujDX>(WQLyw2((jD%dvLm4U7)Eh#w zmgtD&hM*`+(k&93fRo%!A+Db!+Z%}@CA3bmm~JL%N}aH$1cj5)D2avAl&@2WT9)f% zJ?VrR3KZ#_)&zz#ZQZTBCrOGpQCdh5jY%ntA}N$&f6p_K^Is7y%luQ((YzM%YeL#j z<jl3mpBzF0v@8fFF;*BP+1oVE>Yt+tv(p;*R>Y>uSEyGNuq0Xg8 z3#;`yEd`A#%~l&htv(l2Dy{0u%2l*xaW9MoZ;No#qk6EkxN0TO*6VX=av_)TX%D0} zYK`jYeeMOPG@oZ0e}cESy3nn~XZr1K8YbBcbv8nYKkToz7x?sPpOv*PB(G+jJi_1i zXnHNtrRB6I!;~-Na#MMfbw{D{-u0|2(7WUis=n{Sb;oWQZrQqTx{h@hg~VyC!;;QlB;b-U=3&71vV z8~Nj6z|gd7zOxgf3i5mA2;sfrRxv1cnEA$hZw`w)Sb_ZBh+vz{J>&-FfXrPixQ&^^ zVi#-!!q6^w2E`X<_)llRaRkC$D`+%Vd~SX)!?9FcWez|Nt|L%>YYr?+AJ-mQp}5GN z1(83Va9eq}5Z%WQcihL8Atpw5TFrL|Y&+n@_c}SJxIO9r%Tc3mxedDgqR;-NxJQrt He+B*t5{YBI literal 0 HcmV?d00001 diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po new file mode 100644 index 00000000..bc1b9c89 --- /dev/null +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -0,0 +1,60 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"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" + +#: const.py:103 +msgid "Announcements" +msgstr "إعلانات" + +#: const.py:108 +msgid "Group Work" +msgstr "العمل الجماعي" + +#: const.py:113 +msgid "Leaderboards" +msgstr "لوحات المتسابقين" + +#: const.py:118 +msgid "Discussion" +msgstr "النقاش" + +#: const.py:123 +msgid "Other" +msgstr "أخرى" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "استلام بريد إلكتروني يوميًا" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "هذا الإعداد سيؤدي لإرسال ملخص يومي بجميع الإشعارات إلى عنوان بريدك الإلكتروني المسجل" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "استلام بريد إلكتروني أسبوعيًا" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "هذا الإعداد سيؤدي لإرسال ملخص أسبوعي بجميع الإشعارات إلى عنوان بريدك الإلكتروني المسجل" diff --git a/edx_notifications/locale/de/LC_MESSAGES/django.mo b/edx_notifications/locale/de/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..6e2989b9e2ec6175448434abee0778dbbf90c389 GIT binary patch literal 1248 zcmb_byKWRo6s_gCjDP@0kQV8ZAP_1uHoKD5wvii8+dJBMSmUuRoRzz;dy46)8dX(e zEF@BX0Dgcagmk0L9PD49B_Jjz;`s#Nk^w1_ug}>>-5`8r(Ot*bHHyv23!DM z1J(E+sMha*8t`GlAHnB=)4vFD8GH$R1$+aXgXh2l@ZaDeaQ=i47qNbP@-XiixT^ac zT-ALEz6yQ=z6Sme`~>_S{1mKC34t==3{drY8o-vovG^7Ee4L#uASpy_j4e&dBR0W{ zhW2Ucy|zZII9rZs)4HK(vC7zOTjeq@dYrO;#FQyr>=BPZM|-=>!=ugqKzs5Wf;Ktr z>Y|`jm7YmWQZt>i4`g>p;mp{ecXX-(v^@n&+l*urs_C9B9XZam59~NQ6eX2qj=dM( z)|s^PvxHWieaLB$%}j2vt3FahtMSrb@k&A)NpG#$?bLcawl2uF&vhp6m${dH8&Pew z+m}m@4{j$LDsV(I_32qTU6*(3G&2+ZK6|_VN4<_f+2cpLDn5yOki1v7uNgB za`rf`YHNp`OiXGsynaNp+d9-%i_)n=E?YP95t;G9(l5-+(cyIArlIQ#G<|EX23rpI z|225I(&TI^Uk(p_iN%U5$743iZL77&4J@8 kG3Vg$;Zb1HPki85CKx{*=yVvS#CNrKzi9od`adB52`X21rT_o{ literal 0 HcmV?d00001 diff --git a/edx_notifications/locale/de/LC_MESSAGES/django.po b/edx_notifications/locale/de/LC_MESSAGES/django.po new file mode 100644 index 00000000..0492ec21 --- /dev/null +++ b/edx_notifications/locale/de/LC_MESSAGES/django.po @@ -0,0 +1,61 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: const.py:103 +msgid "Announcements" +msgstr "Ankündigungen" + +#: const.py:108 +msgid "Group Work" +msgstr "Gruppenarbeit" + +#: const.py:113 +msgid "Leaderboards" +msgstr "Ranglisten" + +#: const.py:118 +msgid "Discussion" +msgstr "Diskussionen" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "Tägliche E-Mail erhalten" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "Bei dieser Einstellung wird eine tägliche Zusammenfassung aller Nachrichten an " +"Ihre eingetragene E-Mail Adresse geschickt." + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "Wöchentliche E-Mail erhalten" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "Bei dieser Einstellung wird eine wöchentliche Zusammenfassung aller" + "Nachrichten an Ihre eingetragene E-Mail Adresse geschickt." diff --git a/edx_notifications/locale/en/LC_MESSAGES/django.mo b/edx_notifications/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..79d27b501b52bcd60bf91a27abe1e141dde2a2b5 GIT binary patch literal 378 zcmYL^u};G<6h%QWWn^aXz*b&y3rN8fRMWU6!bz$$tpuBCO)x5U<+unwgx}*^c##mj z(vb(BXW#d8bojl8*+-6%6XXCnMcTy35HGLrY@Pp1y?fKk0O<-A+Be2oMy7o9z$bz% zL^(@~JSz3Z`2bl{n-$z`>jo;vNHi@f7$Q_}CVi?~BCDMb-V z{bAb2|GY=ROUMdHIJqxamUfsx hvV2v((cxxZjUnE7ZLJsWLD;2R8Cx?FKbsKk{Q_95W=8-3 literal 0 HcmV?d00001 diff --git a/edx_notifications/locale/en/LC_MESSAGES/django.po b/edx_notifications/locale/en/LC_MESSAGES/django.po new file mode 100644 index 00000000..88ff04c6 --- /dev/null +++ b/edx_notifications/locale/en/LC_MESSAGES/django.po @@ -0,0 +1,58 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: const.py:103 +msgid "Announcements" +msgstr "" + +#: const.py:108 +msgid "Group Work" +msgstr "" + +#: const.py:113 +msgid "Leaderboards" +msgstr "" + +#: const.py:118 +msgid "Discussion" +msgstr "" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "" diff --git a/edx_notifications/locale/es/LC_MESSAGES/django.mo b/edx_notifications/locale/es/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..2db2d923b67ae8ccc4399d1b8877483d02eeba4b GIT binary patch literal 1332 zcmb`G&u$wx5XPCt?jOMh3a6){hv}tA5zv+06fo9tkd3u=g-Vto%PHC$wL4xjUXcpP zb?n@7>?OA#K#*In%_-;;_&tpF33~6TA7xoCP~=jWz=t2X8V)~lM(0a&F9pUY&=*hv zEkeIRar^C}d!4j{A9EgLyO59A#YakLH{JXp-OlJy*57OQb{c&iTNh;4m%5M->(a}C zO{lTk8^}$^liSIb3Y^etb7f7gH08HVT3t= z`(Dy*-}$+>lQlZZ2RU%c_(}!q6587DbZ95-W^^y>rtQvywAJcodwcg0YRX!bEC;Mc z33bw)?fq!^UZ?Y*(#zJBS23{KZFjS)`>iZD8=KYyR6-6;$M7BaBz!Zjls4;>A1a3m zZ|o1YP>05DRXbJ5E$c=;Av2yV{l@A#T}(G_8~SpCR=!?u zpe@mq+M*+Qi049;of@jgme^3~>ai6AHLTcKPX(i~s!8);he0e_R1dX_ou-x3mQWMQ zt#ge16-wyN-Wi?SSzv7x9rH6Z+(=>izVOTkg*@g!m$*r;k%cOzF}sltv0afnT2PLj z)Qrw8l&1>1Z0-wx2*fpx&)(uLGm8p=u0;dYKEUwAUzua8DLwtbg JTl^1S{{a8InF;^^ literal 0 HcmV?d00001 diff --git a/edx_notifications/locale/es/LC_MESSAGES/django.po b/edx_notifications/locale/es/LC_MESSAGES/django.po new file mode 100644 index 00000000..4ac1f55a --- /dev/null +++ b/edx_notifications/locale/es/LC_MESSAGES/django.po @@ -0,0 +1,61 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: const.py:103 +msgid "Announcements" +msgstr "Anuncios" + +#: const.py:108 +msgid "Group Work" +msgstr "Trabajo en grupo" + +#: const.py:113 +msgid "Leaderboards" +msgstr "Tableros de calificaciones" + +#: const.py:118 +msgid "Discussion" +msgstr "Debates" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "Recibir a diario por correo electrónico" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "Esta configuración le permite seleccionar que todas las notificaciones se envíen " +"a diario a la dirección de correo electrónico registrada." + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "Recibir una vez semana por correo electrónico" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "Esta configuración le permite seleccionar que todas las notificaciones" + "se envíen una vez por semana a la dirección de correo electrónico registrada." diff --git a/edx_notifications/locale/fr/LC_MESSAGES/django.mo b/edx_notifications/locale/fr/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..a2286cd42b3b6887fa9db4229770207681abe9f2 GIT binary patch literal 1265 zcmb`GJ8u&~6om&!c$iQSC=t3e1QboM4M@@Ep)B?$Sgap%91wJq-J8uM>lrgM>yR!5 zB`qyNq9KTX;fgz^mD{t#3|C`8OE*=r-|2zw}}aHfw)clK-?ison`DIjrYzmcA0oUyh?mC8owjn zr12->E#epA0r3a%H8GuFjLNX{q}=NyiKZAW59<<++l5h&u4K$tN@psa-U>p*XTpf#nP+>()SbhibkVH4@Fa(Q=OX9f%=(mFI4A6*I}jtyGN{(aBL z&S_oLGI|Fi$7?ZviYEV&JZSlqC;nOhPlNV)t=TBFv8RpWb(_eTKgtrzJKBRntJ&cd zgTt@mRpHQsa&vuNC7DQ&cTjXa2>r&|Ms9gA z3|CS)r%f{6LssjxdNBUJ(p<4n(aO#Q?)6e3)dED@!q5vZZFE-o{CHn( zYYPnzRHS2ieGle0r7N`3%!rh)YSXnIsNQgBm&yxp)LpuxU>Qnx7Yf5vQYcRbk{;TK zKBWy}gd`6qvPvqf9Yr_KWnW7JnSzJ{VCY?=-a}vKCB-nW^v}Vu TK~zV%rkej@;H3Xk@qp|%jCX@Z literal 0 HcmV?d00001 diff --git a/edx_notifications/locale/fr/LC_MESSAGES/django.po b/edx_notifications/locale/fr/LC_MESSAGES/django.po new file mode 100644 index 00000000..d446687b --- /dev/null +++ b/edx_notifications/locale/fr/LC_MESSAGES/django.po @@ -0,0 +1,59 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: const.py:103 +msgid "Announcements" +msgstr "Annonces" + +#: const.py:108 +msgid "Group Work" +msgstr "Travail de groupe" + +#: const.py:113 +msgid "Leaderboards" +msgstr "Classements" + +#: const.py:118 +msgid "Discussion" +msgstr "Discussions" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "Recevoir un courriel quotidien" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "Ce paramètre résultera en l'envoi d'un résumé quotidien de toutes les notifications à votre adresse de courriel enregistré" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "Recevoir un courriel hebdomadaire" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "Ce paramètre résultera en l'envoi d'un résumé hebdomadaire de toutes les notifications à votre adresse de courriel enregistrée" diff --git a/edx_notifications/locale/ja/LC_MESSAGES/django.mo b/edx_notifications/locale/ja/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..6104143c39c027119492b5dac03aac56e24cfe75 GIT binary patch literal 1315 zcmcJM&2JM&7{-SZO0noAgKLn@Yd6D;gFavZ91n|LRi1!u>d83VZ> z@2(ID2`vJp5fq80d=wD~EpULgYX6R25aTtx0dK0)q5{)N1R?C2omB61#yWypu9#OoFmZV?P4AEDkJTiXk4 zNr)W;vKExZqzH^A8DE!cTKh5}gG$z_^h>EulAPeKP-BuSSCgVB3;&d$F83=_R7@h) z_f89Oa(%Nj;cKdeF@E6D(|)Bw%eUhm{7@2vgokgf7Bjy=rN}_ zk}V9SilQo&VR`NOE<0TFG%HDqriKe8)~`hKb}YktA}-^+2?86-EHmf*_%F) zPGcY|ic@}4ydC$IV;5Pzz%n*HQn2#by~hhfPAbQ>VI{=_UExM5iw=zDa&*YfJM^HF zx3jrJb|zDFMn=BC(7>y4Pq32UlNQa{LxZD<<%7B0p^CpxDsLkOt>&|NXXAcd`_id? z85n#CR+_4!ZzIl_&#D#f2fegB!4HhQCY8cx5Z=MlM*Ui1J6v8}xDEAlIDxpHxQL!Y z^iyIoo?e@ohH$Q#7(sXs!W$U2cJ;T$+#`tBZQ?~{AikfZgiDQj*t9$k(Hw+-BpvG! S{-gh3s8Ro=@!gg8=;j}qS`VH8 literal 0 HcmV?d00001 diff --git a/edx_notifications/locale/ja/LC_MESSAGES/django.po b/edx_notifications/locale/ja/LC_MESSAGES/django.po new file mode 100644 index 00000000..e6e48e2b --- /dev/null +++ b/edx_notifications/locale/ja/LC_MESSAGES/django.po @@ -0,0 +1,59 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: const.py:103 +msgid "Announcements" +msgstr "お知らせ" + +#: const.py:108 +msgid "Group Work" +msgstr "グループワーク" + +#: const.py:113 +msgid "Leaderboards" +msgstr "スコアボード" + +#: const.py:118 +msgid "Discussion" +msgstr "検討事項" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "デイリーメールを受信する" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "この設定により、すべての通知の日々のダイジェスト版が、あなたの登録メールアドレスに送信されます。" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "ウィークリーメールを受信する" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "この設定により、すべての通知の週間ダイジェスト版が、あなたの登録メールアドレスに送信されます。" diff --git a/edx_notifications/locale/nl/LC_MESSAGES/django.mo b/edx_notifications/locale/nl/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..adb6c30f0f8af20495cce3baab14d508af31cd2b GIT binary patch literal 421 zcmYL^Pfx=j9ENA~)T3t)n0V04-)yTUm2GCYvf0>w>AEF)!wqY-gN8DrAH=WcXOXIL zZ}J2P5AgD}zxUZO*)bd#jtskoQ$rii@M<=%%-A~rNtJxzOAWya7F;!@6d0vsd`G4f zEoe3ilGw_4EtQ6-DasYxY>EbQiIJ5iIgAx&+8hF(X^xR=J03VToZHBC@rBp5FKye1 zkny*&z5LI+rzC?Y0iU4T1V=&lA&IFKvPMI$m}n}drNU@34?`4_h@t_FNDz*Q?`L#2 zyEdvQHmu-~bGF7PB=L0KRvv`ms49C>6}7|L62$AFI zrRbyOGgA%M!+AadZ|k+Sp11-kmU2~!0weFS)K*$;6suq&)w;n*)IZB+==Ra?ba*V# L;Sf0|eXH{gDE4$q literal 0 HcmV?d00001 diff --git a/edx_notifications/locale/nl/LC_MESSAGES/django.po b/edx_notifications/locale/nl/LC_MESSAGES/django.po new file mode 100644 index 00000000..87e1dfc3 --- /dev/null +++ b/edx_notifications/locale/nl/LC_MESSAGES/django.po @@ -0,0 +1,59 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: const.py:103 +msgid "Announcements" +msgstr "" + +#: const.py:108 +msgid "Group Work" +msgstr "" + +#: const.py:113 +msgid "Leaderboards" +msgstr "" + +#: const.py:118 +msgid "Discussion" +msgstr "" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "" diff --git a/edx_notifications/locale/pt/LC_MESSAGES/django.mo b/edx_notifications/locale/pt/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..c3357cf66732915d9b3add2753032bd6c48920af GIT binary patch literal 1253 zcmb_bO>YxP5N$pe3`i)8IPIbKvI3z7C%Y>}6SB$>PlAOVM~(y9J#BlYJZUoSHr+i5 zIjw}a?U^eQ;=l!o6TiR`{{jTRfIBDNI8MR^AtYLQdR;X&Rj;Styqh`sL|~l-egQJz z0`L;3)_b6eKL9o0{I&X@^*Rb=mv?m4d|LN+5_e_0BO5W@ z?nLe8wSPKmNv)-PkUgi2FI2EDqLs~7i`L?HLN}9k+-xnyjYc=w*!T;jCNEXavd3x| zQ7c|s-K-?vY_*mOecihJs0LEo&31BhzS-;b+OjnPHz9j_Bj^tNFx(gwN}B~rx0J&T zFK+f$=z7DnZqI9Z|E7lEtL}oMz{o>pL?Qa*a82WXQX0I;P zM2v4>5B)fP&A4Z$`l{HnxPIaXr5>?ZE)>jK*=GD=Qd60;&yHADzNAc#pE+$O{`?~C z;aZ~#k@%n}wPv7mC_{_qmIlg=pCLJ<2PIQEgztPgvmKXo|HeZ?EY-H^}ZrD vJ6dIyM#?E@c0Ef@PVv-D?8MEmxQV8LkSS^O$qj^B2tA@go%jH%W;0f literal 0 HcmV?d00001 diff --git a/edx_notifications/locale/pt/LC_MESSAGES/django.po b/edx_notifications/locale/pt/LC_MESSAGES/django.po new file mode 100644 index 00000000..a85a41c1 --- /dev/null +++ b/edx_notifications/locale/pt/LC_MESSAGES/django.po @@ -0,0 +1,61 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: const.py:103 +msgid "Announcements" +msgstr "Avisos" + +#: const.py:108 +msgid "Group Work" +msgstr "Trabalho em equipe" + +#: const.py:113 +msgid "Leaderboards" +msgstr "Classificações" + +#: const.py:118 +msgid "Discussion" +msgstr "Discussões" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "Receber e-mail diário" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "Esta configuração fará com que um resumo diário de todas as" + "notificações seja enviado para seu endereço de e-mail registrado" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "Receber e-mail semanal" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "Esta configuração fará com que um resumo semanal de todas" + "as notificações seja enviado para o seu endereço de e-mail cadastrado" diff --git a/edx_notifications/locale/zh-ch/LC_MESSAGES/django.mo b/edx_notifications/locale/zh-ch/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..e87b922707bce373db9230031cbdf74a6db95a7f GIT binary patch literal 1102 zcmb`E&rcIU6vsyee>8YO4<0aN<5fe@EKQWrH+xFyHPrikQ;=vdbC;8?xZ{|Diy_xya+Vl*;H~~5f zGC(Im>mYx81^MwePyqD3&Y!>*Q1c;#P61nir-A2yCa?>b0=@zEfLabCbQI#)kv*zF z|NL#BUpoan17vkR0;&+N*7*YnX?An?{$@}U2$s=t(7|!69zaQiB-?hfwob>XEjWr; zT+ecDIX3ENPBw#YIBX0lR5K_WaWrOdl%zVfCMY&ED?NqjIADKmlG3sLMKxt{%&8ET zZQ@BQoyNMBGXIgnctGmCF7?ZJSWXT`6Y)TjW*jC+jGLB0 zu4YY6R40rB0|}M%GP-*^643+=#raHH zv+ORcr!)pXe0fOiBcX=RZ)=n?BHOxS!0(4~Xv7i$H$IE4p(F;5nGiUDbdbLQ literal 0 HcmV?d00001 diff --git a/edx_notifications/locale/zh-ch/LC_MESSAGES/django.po b/edx_notifications/locale/zh-ch/LC_MESSAGES/django.po new file mode 100644 index 00000000..701e6c12 --- /dev/null +++ b/edx_notifications/locale/zh-ch/LC_MESSAGES/django.po @@ -0,0 +1,58 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: const.py:103 +msgid "Announcements" +msgstr "公告" + +#: const.py:108 +msgid "Group Work" +msgstr "群组工作" + +#: const.py:113 +msgid "Leaderboards" +msgstr "排行榜" + +#: const.py:118 +msgid "Discussion" +msgstr "讨论" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "接收每日电子邮件" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "此设置将使所有通知的每日摘要都发送到您注册的电子邮件地址" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "接收每周电子邮件" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "此设置将使所有通知的每周摘要都发送到您注册的电子邮件地址" diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 3e86c528..276ebb69 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -19,6 +19,7 @@ from edx_notifications import const from django.db.models.signals import pre_delete from django.dispatch import receiver +from django.utils.translation import ugettext_lazy as _ class SQLNotificationType(models.Model): @@ -48,7 +49,7 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument """ return NotificationType( - name=self.name, + name=_(self.name), renderer=self.renderer, renderer_context=DictField.from_json(self.renderer_context) ) @@ -285,9 +286,9 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument """ return NotificationPreference( - name=self.name, - display_name=self.display_name, - display_description=self.display_description, + name=_(self.name), + display_name=_(self.display_name), + display_description=_(self.display_description), default_value=self.default_value ) @@ -340,7 +341,7 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument return UserNotificationPreferences( user_id=self.user_id, preference=self.preference.to_data_object(), # pylint: disable=no-member, - value=self.value + value=_(self.value) ) @classmethod diff --git a/edx_notifications/stores/sql/tests/test_store_provider.py b/edx_notifications/stores/sql/tests/test_store_provider.py index 84b13b6a..7fdefed8 100644 --- a/edx_notifications/stores/sql/tests/test_store_provider.py +++ b/edx_notifications/stores/sql/tests/test_store_provider.py @@ -22,6 +22,8 @@ BulkOperationTooLarge ) from edx_notifications import const +from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext as getext class TestSQLStoreProvider(TestCase): @@ -119,8 +121,9 @@ def _save_user_notification_preference(self, number_of_queries, preference_name, """ notification_preference = self._save_notification_preference( number_of_queries=number_of_queries, - name=preference_name, - display_name='Test Preference' + name=_(preference_name), + display_name=getext('Test Preference'), + display_description=getext('this is a Test Preference') ) test_user_notification_preference = UserNotificationPreferences( user_id=user_id, @@ -1033,16 +1036,16 @@ def test_get_all_notification_preferences(self): """ test_notification_preference = self._save_notification_preference( number_of_queries=3, - name='test_notification_preference,', - display_name="Test Preference", - display_description="This is the test preference" + name=getext("test_notification_preference,"), + display_name=getext("Test Preference"), + display_description=getext("This is the test preference") ) test2_notification_preference = self._save_notification_preference( number_of_queries=3, - name='notification_preference2', - display_name="Test Preference 2", - display_description="This is the second test preference" + name=getext('notification_preference2'), + display_name=getext("Test Preference 2"), + display_description=getext("This is the second test preference") ) with self.assertNumQueries(1): diff --git a/requirements.txt b/requirements.txt index 746b1a5d..25f6df44 100755 --- a/requirements.txt +++ b/requirements.txt @@ -1,10 +1,10 @@ # Django/Framework Packages -django==1.8.18 +django==1.8.19 django-model-utils==2.3.1 python-dateutil==2.1 requests==2.9.1 pylru==1.0.6 -djangorestframework==3.2.3 +git+https://github.com/edx/django-rest-framework.git@3c72cb5ee5baebc4328947371195eae2077197b0#egg=djangorestframework==3.2.3 pytz==2016.7 PyContracts==1.7.1 underscore.py==0.1.6 diff --git a/settings.py b/settings.py index 0aa8f0a5..9a024737 100644 --- a/settings.py +++ b/settings.py @@ -1,3 +1,5 @@ +#!/usr/bin/bash +# -*- coding: utf-8 -* """ Django settings file for local development purposes """ @@ -14,7 +16,7 @@ TEST_ROOT = "tests" TRANSACTIONS_MANAGED = {} USE_TZ = True -TIME_ZONE = {} +TIME_ZONE = 'UTC' SECRET_KEY='SHHHHHH' DATABASES = { @@ -24,6 +26,10 @@ }, } +USE_I18N = True +USE_L10N = True + + INSTALLED_APPS = ( 'django.contrib.auth', 'django.contrib.contenttypes', @@ -50,19 +56,45 @@ } }) + +LANGUAGE_CODE = "en" +LANGUAGE_COOKIE_NAME = "openedx-language-preference" +LANGUAGES = ( + ('en', u'English '), + ('ar', u'العربية'), # Arabic + ('es', u'Español'), + ('nl', u'Dutch '), + ('pt', u'Português'), + ('zh-ch', u'中文(简体)'), + ('fr', u'Français'), + ('jp', u'日本人'), + ('de', u'Deutsche'), +) + +LOCALE_PATHS = [ + os.path.join(BASE_DIR, 'locale'), +] + MIDDLEWARE_CLASSES = ( + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', + ) ROOT_URLCONF = 'edx_notifications.server.urls' WSGI_APPLICATION = 'edx_notifications.server.wsgi.application' -TEMPLATE_DIRS = ['edx_notifications/server/web/templates'] + +TEMPLATES = [{ + 'BACKEND': 'django.template.backends.django.DjangoTemplates', + 'DIRS': ['edx_notifications/server/web/templates'] +}] NOTIFICATION_STORE_PROVIDER = { "class": "edx_notifications.stores.sql.store_provider.SQLNotificationStoreProvider", @@ -155,4 +187,4 @@ NOTIFICATION_BRANDED_DEFAULT_LOGO = 'edx_notifications/img/edx-openedx-logo-tag.png' # digest email css -NOTIFICATION_DIGEST_EMAIL_CSS = 'edx_notifications/css/email_digests.css' +NOTIFICATION_DIGEST_EMAIL_CSS = 'edx_notifications/css/email_digests.css' \ No newline at end of file diff --git a/setup.py b/setup.py index 291c5806..98e59247 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ def load_requirements(*requirements_paths): setup( name='edx-notifications', - version='0.6.3', + version='0.6.6', description='Notification subsystem for Open edX', long_description=open('README.md').read(), author='edX', diff --git a/testserver/bokchoy_settings.py b/testserver/bokchoy_settings.py index 7cf3eb42..06983267 100644 --- a/testserver/bokchoy_settings.py +++ b/testserver/bokchoy_settings.py @@ -1,3 +1,5 @@ +#!/usr/bin/bash +# -*- coding: utf-8 -* """ Django settings for edx_notifications test project. For more information on this file, see @@ -37,12 +39,34 @@ 'django_nose', ) + +LANGUAGE_CODE = "en" +LANGUAGE_COOKIE_NAME = "openedx-language-preference" +LANGUAGES = ( + ('en', u'English '), + ('ar', u'العربية'), # Arabic + ('es', u'Español'), + ('nl', u'Dutch '), + ('pt', u'Português'), + ('zh-ch', u'中文(简体)'), + ('fr', u'Français'), + ('jp', u'日本人'), + ('de', u'Deutsche'), +) + +LOCALE_PATHS = [ + os.path.join(BASE_DIR, 'locale'), +] + MIDDLEWARE_CLASSES = ( + 'django.contrib.sessions.middleware.SessionMiddleware', + 'django.middleware.locale.LocaleMiddleware', 'django.middleware.common.CommonMiddleware', 'django.contrib.auth.middleware.AuthenticationMiddleware', 'django.contrib.messages.middleware.MessageMiddleware', 'django.middleware.csrf.CsrfViewMiddleware', + ) REST_FRAMEWORK = { From 00bcc6118c9f98529eda01a151469c0f53e1117e Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 15 Nov 2018 16:23:00 +0500 Subject: [PATCH 02/39] fixing version in setup.py --- setup.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/setup.py b/setup.py index 98e59247..841e98b8 100755 --- a/setup.py +++ b/setup.py @@ -34,7 +34,7 @@ def load_requirements(*requirements_paths): setup( name='edx-notifications', - version='0.6.6', + version='0.6.8', description='Notification subsystem for Open edX', long_description=open('README.md').read(), author='edX', From c4705b6531b087a1a0bc6d939774164d92f77c08 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 28 Nov 2018 19:01:16 +0500 Subject: [PATCH 03/39] fixing version in setup.py --- .../locale/ar/LC_MESSAGES/django.mo | Bin 1514 -> 1570 bytes .../locale/ar/LC_MESSAGES/django.po | 4 ++++ 2 files changed, 4 insertions(+) diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.mo b/edx_notifications/locale/ar/LC_MESSAGES/django.mo index 9aafe633bfade1bfd3eacadf4efc33cb2fab8a09..cf6f3d9108af6ae988e2eaf69d9aa5073ce68419 100644 GIT binary patch delta 301 zcmXxfKM%n`7{~F`*1xtyu{04@gH5C}Z=jP`APolXQi)09Mc52twus#;@EXJ*29w?5 z`&2#2?>_0>^`5(zb+D6L-PkJ1A}taVhg^wNEvJ-?4py*@CiXJDY<+}z=6!777@Ii9 zDXwvbPrMLcOV3GE)ljO+f{W6qi!KhZgFcop!alCh!z1qSfqUH0opaN@a*==0CoQ?O kJhJ@zRQ#rj(m~HAgn|siFpQSrBv=Gte0qPh^IbQ!FVkKc(EtDd delta 270 zcmXxeJqp4=5QgE|82@6l@COkDAvS`gMH&k&Ej@z-Ep#o6bxvVtA=Y-O1o0?>tsuk$ zNPJgx;NzLyO=kD#K1$K8YVU+{NSiE4nOumegqZbgP0#oZ!ft=C&U3s!*+H*sG*t+;Ea>I3oB97_NI diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index bc1b9c89..e84270a6 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -23,6 +23,10 @@ msgstr "" msgid "Announcements" msgstr "إعلانات" +#: static/edx_notifications/templates/renderers/course_announcements/new_announcement.underscore:2 +msgid "Announcement" +msgstr "إعلان" + #: const.py:108 msgid "Group Work" msgstr "العمل الجماعي" From 57c3979955bfe63699df5588e142adc4e0fdffcf Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 28 Nov 2018 19:35:24 +0500 Subject: [PATCH 04/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 276ebb69..d1f2e2ae 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -118,13 +118,13 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument msg = NotificationMessage( id=self.id, - namespace=self.namespace, + namespace=_(self.namespace), msg_type=self.msg_type.to_data_object(), from_user_id=self.from_user_id, deliver_no_earlier_than=self.deliver_no_earlier_than, expires_at=self.expires_at, expires_secs_after_read=self.expires_secs_after_read, - payload=DictField.from_json(self.payload), # special case, dict<-->JSON string + payload=DictField.from_json(self.translate_payload_title(self.payload)), # special case, dict<-->JSON string created=self.created, resolve_links=DictField.from_json(self.resolve_links), # special case, dict<-->JSON string object_id=self.object_id @@ -132,6 +132,13 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument return msg + def translate_payload_title(self, payload): + title = payload['title'] + title = title.split(" ") + title = "%s %s %s %s %s" (_(title[0]), _(title[1]), title[2], title[3], title[4]) + payload['title'] = title + return payload + @classmethod def from_data_object(cls, msg): """ From f936256a33f81547e215deac8df1d7a2f18dbf11 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 28 Nov 2018 19:38:06 +0500 Subject: [PATCH 05/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index d1f2e2ae..fc5dc639 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -124,7 +124,7 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument deliver_no_earlier_than=self.deliver_no_earlier_than, expires_at=self.expires_at, expires_secs_after_read=self.expires_secs_after_read, - payload=DictField.from_json(self.translate_payload_title(self.payload)), # special case, dict<-->JSON string + payload=self.translate_payload_title(DictField.from_json(self.payload)), # special case, dict<-->JSON string created=self.created, resolve_links=DictField.from_json(self.resolve_links), # special case, dict<-->JSON string object_id=self.object_id From 78315660247071bc4ad7f1b5614e684f517dcecd Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 28 Nov 2018 19:41:42 +0500 Subject: [PATCH 06/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index fc5dc639..62440453 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -135,7 +135,7 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument def translate_payload_title(self, payload): title = payload['title'] title = title.split(" ") - title = "%s %s %s %s %s" (_(title[0]), _(title[1]), title[2], title[3], title[4]) + title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) payload['title'] = title return payload From e79e9fb8fc5607f1b71ecf6b95a1e726a1c6881c Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 28 Nov 2018 19:53:50 +0500 Subject: [PATCH 07/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 62440453..a6db5ef7 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -136,6 +136,8 @@ def translate_payload_title(self, payload): title = payload['title'] title = title.split(" ") title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) + print "///////////###############//////////////////" + print (title) payload['title'] = title return payload From 38e9ce3548c47408e456115b3da3e7cf49e85d09 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 28 Nov 2018 19:56:48 +0500 Subject: [PATCH 08/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index a6db5ef7..59a5898f 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -118,7 +118,7 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument msg = NotificationMessage( id=self.id, - namespace=_(self.namespace), + namespace=self.namespace, msg_type=self.msg_type.to_data_object(), from_user_id=self.from_user_id, deliver_no_earlier_than=self.deliver_no_earlier_than, From b39d1bc658a88fe36ec6d45495e9a5b09b4a3e72 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 28 Nov 2018 20:00:18 +0500 Subject: [PATCH 09/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 59a5898f..8c1d6fe9 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -136,8 +136,8 @@ def translate_payload_title(self, payload): title = payload['title'] title = title.split(" ") title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) - print "///////////###############//////////////////" - print (title) + # print "///////////###############//////////////////" + # print (title) payload['title'] = title return payload From 7086e1260ab2626eb7266cca94ad35b342c5d14b Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 28 Nov 2018 20:01:18 +0500 Subject: [PATCH 10/39] fixing version in setup.py --- edx_notifications/locale/ar/LC_MESSAGES/django.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index e84270a6..4fc9eda9 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -23,7 +23,7 @@ msgstr "" msgid "Announcements" msgstr "إعلانات" -#: static/edx_notifications/templates/renderers/course_announcements/new_announcement.underscore:2 +#: const.py:103 msgid "Announcement" msgstr "إعلان" From 3aadc3ed2ef6d1160307984bff4107e828603430 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 28 Nov 2018 20:08:15 +0500 Subject: [PATCH 11/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 8c1d6fe9..5625ec94 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -135,9 +135,12 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument def translate_payload_title(self, payload): title = payload['title'] title = title.split(" ") + print "///////////###############//////////////////" + print (_(title[0])) + print (title[0]) title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) - # print "///////////###############//////////////////" - # print (title) + print "///////////###############//////////////////" + print (title) payload['title'] = title return payload From 18fa62f8ee6638b687199f10d0b9130696f04902 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 28 Nov 2018 20:13:15 +0500 Subject: [PATCH 12/39] fixing version in setup.py --- edx_notifications/const.py | 4 ++++ edx_notifications/locale/ar/LC_MESSAGES/django.po | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/edx_notifications/const.py b/edx_notifications/const.py index 22843fca..bda57150 100644 --- a/edx_notifications/const.py +++ b/edx_notifications/const.py @@ -162,3 +162,7 @@ "NOTIFICATION_ENFORCE_SINGLE_DIGEST_PREFERENCE", True ) + +STRINGS_TO_TRANSLATE = [ + _("Announcement"), +] diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index 4fc9eda9..ce3a3557 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -23,7 +23,7 @@ msgstr "" msgid "Announcements" msgstr "إعلانات" -#: const.py:103 +#: const.py:167 msgid "Announcement" msgstr "إعلان" From e4d88c08e51cf56ee901d4addbf8444b40d6ce27 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 17:15:26 +0500 Subject: [PATCH 13/39] fixing version in setup.py --- .../locale/ar/LC_MESSAGES/django.mo | Bin 1570 -> 1634 bytes .../locale/ar/LC_MESSAGES/django.po | 25 +++++++++++++----- 2 files changed, 18 insertions(+), 7 deletions(-) diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.mo b/edx_notifications/locale/ar/LC_MESSAGES/django.mo index cf6f3d9108af6ae988e2eaf69d9aa5073ce68419..734661034d63a1838741b1b587b768957e695749 100644 GIT binary patch delta 322 zcmZ3)^N44HO1%;T1A`zV0|PIRHUZLHK-vjP`vPemAU^^~vjXWMcfdPnHDriouQ#1!)L6si;R z^72cQQ*%@EO5#%zOHyk$%QChxavACxSt=NsTNxT{UdxooXrgdq`OTIaOK\n" "Language-Team: LANGUAGE \n" @@ -23,10 +23,6 @@ msgstr "" msgid "Announcements" msgstr "إعلانات" -#: const.py:167 -msgid "Announcement" -msgstr "إعلان" - #: const.py:108 msgid "Group Work" msgstr "العمل الجماعي" @@ -43,6 +39,12 @@ msgstr "النقاش" msgid "Other" msgstr "أخرى" +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "إعلانات" + #: digests.py:200 msgid "Receive daily email" msgstr "استلام بريد إلكتروني يوميًا" @@ -51,7 +53,9 @@ msgstr "استلام بريد إلكتروني يوميًا" msgid "" "This setting will cause a daily digest of all notifications to be sent to " "your registered email address" -msgstr "هذا الإعداد سيؤدي لإرسال ملخص يومي بجميع الإشعارات إلى عنوان بريدك الإلكتروني المسجل" +msgstr "" +"هذا الإعداد سيؤدي لإرسال ملخص يومي بجميع الإشعارات إلى عنوان بريدك " +"الإلكتروني المسجل" #: digests.py:210 msgid "Receive weekly email" @@ -61,4 +65,11 @@ msgstr "استلام بريد إلكتروني أسبوعيًا" msgid "" "This setting will cause a weekly digest of all notifications to be sent to " "your registered email address" -msgstr "هذا الإعداد سيؤدي لإرسال ملخص أسبوعي بجميع الإشعارات إلى عنوان بريدك الإلكتروني المسجل" +msgstr "" +"هذا الإعداد سيؤدي لإرسال ملخص أسبوعي بجميع الإشعارات إلى عنوان بريدك " +"الإلكتروني المسجل" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr " الإعلان عن المساق {annoucement_date}" From c4ab578eb9516d874307d15689364bd088c73427 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 17:15:39 +0500 Subject: [PATCH 14/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 19 +++++++++++-------- 1 file changed, 11 insertions(+), 8 deletions(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 5625ec94..182d86e6 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -133,14 +133,17 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument return msg def translate_payload_title(self, payload): - title = payload['title'] - title = title.split(" ") - print "///////////###############//////////////////" - print (_(title[0])) - print (title[0]) - title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) - print "///////////###############//////////////////" - print (title) + announcement_date = payload['announcement_date'] + + # print "///////////###############//////////////////" + # print (_(title[0])) + # print (title[0]) + # title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) + # print "///////////###############//////////////////" + # print (title) + + title = _('Announcement on {annoucement_date}').format(annoucement_date=announcement_date) + payload['title'] = title return payload From edde14d13defb7efe256afff9f885feee3fa24ca Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 17:20:52 +0500 Subject: [PATCH 15/39] fixing version in setup.py --- edx_notifications/locale/ar/LC_MESSAGES/django.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index 96569636..075bbb44 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -70,6 +70,6 @@ msgstr "" "الإلكتروني المسجل" #: stores/sql/models.py:145 -#, python-brace-format +#| msgid "Announcement on {annoucement_date}" msgid "Announcement on {annoucement_date}" msgstr " الإعلان عن المساق {annoucement_date}" From 3a44be188e3c8f3bd149d10b1adb55b810ecb7fa Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 17:33:03 +0500 Subject: [PATCH 16/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 15 ++++++--------- 1 file changed, 6 insertions(+), 9 deletions(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 182d86e6..6e3ed983 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -20,6 +20,7 @@ from django.db.models.signals import pre_delete from django.dispatch import receiver from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import ugettext as _gettext class SQLNotificationType(models.Model): @@ -134,16 +135,12 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument def translate_payload_title(self, payload): announcement_date = payload['announcement_date'] - - # print "///////////###############//////////////////" - # print (_(title[0])) - # print (title[0]) + title = _gettext('Announcement on {annoucement_date}').format(annoucement_date=announcement_date) + print "///////////###############//////////////////" + print (_(title)) # title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) - # print "///////////###############//////////////////" - # print (title) - - title = _('Announcement on {annoucement_date}').format(annoucement_date=announcement_date) - + print "///////////###############//////////////////" + print (title) payload['title'] = title return payload From 623e42916aff000a02c63efc236868e8889bad3d Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 17:46:54 +0500 Subject: [PATCH 17/39] fixing version in setup.py --- edx_notifications/locale/ar/LC_MESSAGES/django.po | 1 + 1 file changed, 1 insertion(+) diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index 075bbb44..95dc1b85 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -70,6 +70,7 @@ msgstr "" "الإلكتروني المسجل" #: stores/sql/models.py:145 +#, python-brace-format #| msgid "Announcement on {annoucement_date}" msgid "Announcement on {annoucement_date}" msgstr " الإعلان عن المساق {annoucement_date}" From b5f98483f9124799dadf3db55190566acb19307e Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 17:51:14 +0500 Subject: [PATCH 18/39] fixing version in setup.py --- .../stores/locale/ar/LC_MESSAGES/django.mo | Bin 0 -> 1634 bytes .../stores/locale/ar/LC_MESSAGES/django.po | 76 ++++++++++++++++++ .../stores/locale/de/LC_MESSAGES/django.mo | Bin 0 -> 1248 bytes .../stores/locale/de/LC_MESSAGES/django.po | 74 +++++++++++++++++ .../stores/locale/en/LC_MESSAGES/django.mo | Bin 0 -> 378 bytes .../stores/locale/en/LC_MESSAGES/django.po | 67 +++++++++++++++ .../stores/locale/es/LC_MESSAGES/django.mo | Bin 0 -> 1332 bytes .../stores/locale/es/LC_MESSAGES/django.po | 74 +++++++++++++++++ .../stores/locale/fr/LC_MESSAGES/django.mo | Bin 0 -> 1265 bytes .../stores/locale/fr/LC_MESSAGES/django.po | 74 +++++++++++++++++ .../stores/locale/ja/LC_MESSAGES/django.mo | Bin 0 -> 1315 bytes .../stores/locale/ja/LC_MESSAGES/django.po | 74 +++++++++++++++++ .../stores/locale/nl/LC_MESSAGES/django.mo | Bin 0 -> 421 bytes .../stores/locale/nl/LC_MESSAGES/django.po | 68 ++++++++++++++++ .../stores/locale/pt/LC_MESSAGES/django.mo | Bin 0 -> 1253 bytes .../stores/locale/pt/LC_MESSAGES/django.po | 74 +++++++++++++++++ .../stores/locale/zh-ch/LC_MESSAGES/django.mo | Bin 0 -> 1102 bytes .../stores/locale/zh-ch/LC_MESSAGES/django.po | 69 ++++++++++++++++ 18 files changed, 650 insertions(+) create mode 100644 edx_notifications/stores/locale/ar/LC_MESSAGES/django.mo create mode 100644 edx_notifications/stores/locale/ar/LC_MESSAGES/django.po create mode 100644 edx_notifications/stores/locale/de/LC_MESSAGES/django.mo create mode 100644 edx_notifications/stores/locale/de/LC_MESSAGES/django.po create mode 100644 edx_notifications/stores/locale/en/LC_MESSAGES/django.mo create mode 100644 edx_notifications/stores/locale/en/LC_MESSAGES/django.po create mode 100644 edx_notifications/stores/locale/es/LC_MESSAGES/django.mo create mode 100644 edx_notifications/stores/locale/es/LC_MESSAGES/django.po create mode 100644 edx_notifications/stores/locale/fr/LC_MESSAGES/django.mo create mode 100644 edx_notifications/stores/locale/fr/LC_MESSAGES/django.po create mode 100644 edx_notifications/stores/locale/ja/LC_MESSAGES/django.mo create mode 100644 edx_notifications/stores/locale/ja/LC_MESSAGES/django.po create mode 100644 edx_notifications/stores/locale/nl/LC_MESSAGES/django.mo create mode 100644 edx_notifications/stores/locale/nl/LC_MESSAGES/django.po create mode 100644 edx_notifications/stores/locale/pt/LC_MESSAGES/django.mo create mode 100644 edx_notifications/stores/locale/pt/LC_MESSAGES/django.po create mode 100644 edx_notifications/stores/locale/zh-ch/LC_MESSAGES/django.mo create mode 100644 edx_notifications/stores/locale/zh-ch/LC_MESSAGES/django.po diff --git a/edx_notifications/stores/locale/ar/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/ar/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..734661034d63a1838741b1b587b768957e695749 GIT binary patch literal 1634 zcmcJOO>Y}T7{?bVZ{|fUa6v-i5h}e@TXvn6CYx;OHr@maJB}QuP%dcVovfEQyVlHZ zON0&3DLa0(CdO_-)4={V-6Yvo@@Sn947X%VQFw*1SGc(W2|CyD4 zdG6R32G&!smtZOE1ng&+UdJCYj90)D;4|P^umoNju?{|s{X5{JAP1iZ*T5IRkHHZ9 z9PEIEP*$zz7`EO-UfbvodSUHHkKlRmSMW>lB$|E&-Um^( zh}Aj{m)5G6o=>kQVQ6h2-FO`K2<&h@rX4SilPqrYbsndb#PlK42gCh)0ZaKue+ZFA zC6et-$|#AAd68s2dOHzoMvb$8iW|Loybn#K# z72j)`^@dsT=*@;xubzIlvEY|#Or~Z_uvm6knh1yHmTNUy@ajIz_;s&ZyXaLaO@C?W z0z%_3V<9(NoUJ=l^A_fpwd9#v?P51NlZbE}1F7|D-5<|qpRr1_Nu1(Kn5~T-bf^4- z^tE1>Me#JXJ51mUyUVRPb8;M~Wvy~y`f)o6@bw*+kW73Y6_QUad~dK zWRM!i_G{8aM zK+RqCt, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"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" + +#: const.py:103 +msgid "Announcements" +msgstr "إعلانات" + +#: const.py:108 +msgid "Group Work" +msgstr "العمل الجماعي" + +#: const.py:113 +msgid "Leaderboards" +msgstr "لوحات المتسابقين" + +#: const.py:118 +msgid "Discussion" +msgstr "النقاش" + +#: const.py:123 +msgid "Other" +msgstr "أخرى" + +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "إعلانات" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "استلام بريد إلكتروني يوميًا" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"هذا الإعداد سيؤدي لإرسال ملخص يومي بجميع الإشعارات إلى عنوان بريدك " +"الإلكتروني المسجل" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "استلام بريد إلكتروني أسبوعيًا" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"هذا الإعداد سيؤدي لإرسال ملخص أسبوعي بجميع الإشعارات إلى عنوان بريدك " +"الإلكتروني المسجل" + +#: stores/sql/models.py:145 +#, python-brace-format +#| msgid "Announcement on {annoucement_date}" +msgid "Announcement on {annoucement_date}" +msgstr " الإعلان عن المساق {annoucement_date}" diff --git a/edx_notifications/stores/locale/de/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/de/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..aa9167eac3c00c477646f45a2dcb6a371aea8827 GIT binary patch literal 1248 zcmb_b%WfP+6s>?w!pN{l*dPVzW)mf{%FI}baN0I<+tW59=3$M;wvt`B`?{x?o~lt* zwI4!an;(E5NLZ3>R@r&MUqob)HG5W^wnug%8L@zpj!r%9z2{cf={L7$ei0a-0(XH7 z_zd_BsKy^awSEiKfIp}F7kCbsy&=RM@NMuH;QQblybK(=@_u`bAt&vho(%iPO> zji|QW8^{gE=eLth6*!{BdSgj88glV5HNJ@&i}UqI^*RD&pO17^d>Z#8iTkqClg*gE z>qVW`{L@}HskN04a^RHlg$mY1w7J`EQ#bA;w32k-3|j59I?2`j8VmK>hBW~%AqS@u^d0yld_5_YHp`R_mBS0K z?hZEP(p6m5)*(BYnAB!?{fL$hbf|3?rBj96v~KJpGL!SAUtL_Li|OhEL-$sx@o>2Y zTaM0N8@ya;ayFGOM;E@tV#}422^-}OSO?L^^@_?FMhwn=#WWo, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: const.py:103 +msgid "Announcements" +msgstr "Ankündigungen" + +#: const.py:108 +msgid "Group Work" +msgstr "Gruppenarbeit" + +#: const.py:113 +msgid "Leaderboards" +msgstr "Ranglisten" + +#: const.py:118 +msgid "Discussion" +msgstr "Diskussionen" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "Ankündigungen" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "Tägliche E-Mail erhalten" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"Bei dieser Einstellung wird eine tägliche Zusammenfassung aller Nachrichten " +"an Ihre eingetragene E-Mail Adresse geschickt." + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "Wöchentliche E-Mail erhalten" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"Bei dieser Einstellung wird eine wöchentliche Zusammenfassung " +"allerNachrichten an Ihre eingetragene E-Mail Adresse geschickt." + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/stores/locale/en/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/en/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..88b2449ad3bdd3134b1ce4d3f179c90a2d15b224 GIT binary patch literal 378 zcmYL^K~KUk7=|%=+R?Lz9=zd)8;NmLG*nh_aoxxmBzmh*XAQQbD@1>Yf6w3Ix5UVs zJn5m&*S_D+>B)BobA+5B=g2W~fwYN{5nc}PY@PqioPAd-59u0~$~D>=N@i^Q$fleu zc{xvuJSf%HIuD|$^&0MXbpw^9B$yQyjGdAmhaiz&QPK~i7@`RJ0}@@+sNW5*!VpC$ z)n2!c|9MZGl^_a87, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: const.py:103 +msgid "Announcements" +msgstr "" + +#: const.py:108 +msgid "Group Work" +msgstr "" + +#: const.py:113 +msgid "Leaderboards" +msgstr "" + +#: const.py:118 +msgid "Discussion" +msgstr "" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: const.py:167 +msgid "Announcement" +msgstr "" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/stores/locale/es/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/es/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..72df8398ee65b51c1c5b6ecc28686b7e311e116b GIT binary patch literal 1332 zcmb`GL2nZ|6vxd13q&BTfD_{IxF8U6H>tFuOetb$rX?b2sx)P_dvj)9r=}A-*q%bU zapb}cAt7#D;e_}Ed=CVlVDEd{zuS-^AucN{{q?ga&(DARy?i=*?1jKM1zm&+=nV80 zisLgB*I%Fp^v{(4f~TS5M}#;Bo(0c?m%$QT1h>IA;0|>97a>k!{rIR5C%~uRZ{RcV z0{9BN0)7DJz)#?F@XRqGUV^Vdq!GVD(d%&tp9I48^8&LG^T&ZBg-DIDwaIzRCV0`- zKCivk)`(SS>k0j7-Hzz8D%g#za)lQI&ROp=6-rlo#A9Ig?Gf|N?Bj4-d-5EDHYGjM zRYkd~J(HSlEp*8~kliAM-;511syzv%yBEzt$M=#JV7RzSM=hQSnZjv)jF0={f7l!x&iYb$Z$1{aSO)#x0OSMmo|qh za^Wy8+S+0#Gn3l_)lX<)q(fu9s-3Fjigjb3keTc+{nGp*9ZZ+57`n7Xt*eU-v?ZES zTXZCk@LZ^}QzP}j5*sRAJ+We_Mio2jsbDl#wckA0VGxTJ)g$dl|Z$ zg%Y}t?~TswEU-3;cKHb!ZmclZSDhq2*fpZKfc3VW)>9!Vb{eBF>k!p_l~Fk0;dW!Cw`KhZ`^!+hxh=~xA-5v F{sRj)nGOH| literal 0 HcmV?d00001 diff --git a/edx_notifications/stores/locale/es/LC_MESSAGES/django.po b/edx_notifications/stores/locale/es/LC_MESSAGES/django.po new file mode 100644 index 00000000..17d20407 --- /dev/null +++ b/edx_notifications/stores/locale/es/LC_MESSAGES/django.po @@ -0,0 +1,74 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: const.py:103 +msgid "Announcements" +msgstr "Anuncios" + +#: const.py:108 +msgid "Group Work" +msgstr "Trabajo en grupo" + +#: const.py:113 +msgid "Leaderboards" +msgstr "Tableros de calificaciones" + +#: const.py:118 +msgid "Discussion" +msgstr "Debates" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "Anuncios" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "Recibir a diario por correo electrónico" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"Esta configuración le permite seleccionar que todas las notificaciones se " +"envíen a diario a la dirección de correo electrónico registrada." + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "Recibir una vez semana por correo electrónico" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"Esta configuración le permite seleccionar que todas las notificacionesse " +"envíen una vez por semana a la dirección de correo electrónico registrada." + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/stores/locale/fr/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/fr/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..a4b044ff71ab8bf97057534728bd872a0ad83986 GIT binary patch literal 1265 zcmb`Gy>AmS7{(2>e1tMk7!i6|D5!EtA|cA9t$HNa5|K1fnu1_+?%rP9UhH7|Qo40u zWMxH2EEMryWa6JdFf*_-@m?A=MTiB}(xab0Uq2T=`8qrGmQlMzxE#epA0r3a%H8GiDjLNX{q|ECyiKZAWkLnVR+l6tDu4K$tN~bEs9x7*9McOd6 zR%*r8jZXXUOq*R+LlL3rXkjADS{R}nAVfkY`+z;d@!THb?(t;1D=k=bPO2F8WRgHA zQi~wQM*=X~! z!O_?8ig4&bF<)5Zg#s@=gu(-_P@K=-&*y0)Z{a{@#mD=e2Y!p!8@%Gf7$Y%(mnp?6lBh-z{cE|4ok;ftMcGg>guXDM zH~i=ff*Bs#G@-l+Kn2MhDmo3(9917J^@fL&>X{{{Q->B3(w|u#zK4O%N{Ufl>7RoW TgQ$*jO*Q|+z)An7;sM!jme+$y literal 0 HcmV?d00001 diff --git a/edx_notifications/stores/locale/fr/LC_MESSAGES/django.po b/edx_notifications/stores/locale/fr/LC_MESSAGES/django.po new file mode 100644 index 00000000..0e43e963 --- /dev/null +++ b/edx_notifications/stores/locale/fr/LC_MESSAGES/django.po @@ -0,0 +1,74 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n > 1);\n" + +#: const.py:103 +msgid "Announcements" +msgstr "Annonces" + +#: const.py:108 +msgid "Group Work" +msgstr "Travail de groupe" + +#: const.py:113 +msgid "Leaderboards" +msgstr "Classements" + +#: const.py:118 +msgid "Discussion" +msgstr "Discussions" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "Annonces" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "Recevoir un courriel quotidien" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"Ce paramètre résultera en l'envoi d'un résumé quotidien de toutes les " +"notifications à votre adresse de courriel enregistré" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "Recevoir un courriel hebdomadaire" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"Ce paramètre résultera en l'envoi d'un résumé hebdomadaire de toutes les " +"notifications à votre adresse de courriel enregistrée" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/stores/locale/ja/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/ja/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..b2f075a7f452be1180be0cbcdfb20c95db540048 GIT binary patch literal 1315 zcmcJM%Wo4$9LEO;6fAlP^wz^15C_muJ5trKA&70f30CbmavV^5n|LRiEzXXa83VZ> z@2(IDNgpaoBPbG0d5X~RJV0Bue@8Ef>IVd$xc9_wZ7bn|DkM76cR%y^J-)N^q`PZ@ z;Mj)x80DfqMBPRu<0&dx|AR`QUUm2{ayx4C210fqyOBGQyOAEU4>^gvf^<>aH@4%C zZ))>2@*_N-Lv|yVkh_o%k$aGTBfm#>brJFnasi2D$QD%Mbu$XL2!@fZs5i$4odvce z#0~;k4=Q3x1V)pruPb$}eHoA;CF?bMRH|bnFSskzxa7*!q$DcBKOv~g{pvIoQ;4;_ zlR_L@+bmD|nrdN;A9(bnU#-##uWLbhC)M>mp$(N2l;c?-jX&X6xWV3<8cD|mCI=>& zPRqKYN_f6DLJ7CslycWqLTmE&J{>#ntI>#(UyF)iIhP#~D)~tk9kB<#u!kIa#3_yD zio>ars7Ym5L3_T-KCgS4m8C^fBgHZsP@;7^mgPoRv?rbEWtj}?*-tZ{S(%=_=}*&X z3}hv7!cU5K;=Xk35-Sv0)~1JxRw1|dtKzVe%5!a4S@A$uxsl4EgJbzT9kvS&J>V4V zT>g-q&6b?e(SsNocy;axRu+89qIr9GXe_aOAfG=}_4i5Tt;e9%LayMf-!HQ-of?pV z!Ixm==^FYr;*|NMR^@)sM=O(D;S2YVl?PexdR$^_LMY}073t#ZTeNrFH>r_oUGXX# zlxj*_G^n+fxE+FDpZzx1{P_%l=q|*|5dQ)3 zBE)x+NpuHyA4Bv2qF*4s)H<6b5TAwUD#W*1>!sFr8KNJaf4BJTuO$dCKs1MW*CD#n zF7jWY;duyGUf%rm`N~BIvC<4g=b#ZLmBPmmUdPjB<6>evTzRp04H{=~0&yd85j}$F zMq)CaS)HAMaK4ooL3j(o%NVwL;rHhJeTdg=;zed5zMZ6m%gsjEvb+G%JcNHH9UBq; RqjxaWY}{-9c>aHM^BSds52647 literal 0 HcmV?d00001 diff --git a/edx_notifications/stores/locale/ja/LC_MESSAGES/django.po b/edx_notifications/stores/locale/ja/LC_MESSAGES/django.po new file mode 100644 index 00000000..c13389c3 --- /dev/null +++ b/edx_notifications/stores/locale/ja/LC_MESSAGES/django.po @@ -0,0 +1,74 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=1; plural=0;\n" + +#: const.py:103 +msgid "Announcements" +msgstr "お知らせ" + +#: const.py:108 +msgid "Group Work" +msgstr "グループワーク" + +#: const.py:113 +msgid "Leaderboards" +msgstr "スコアボード" + +#: const.py:118 +msgid "Discussion" +msgstr "検討事項" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "お知らせ" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "デイリーメールを受信する" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"この設定により、すべての通知の日々のダイジェスト版が、あなたの登録メールアド" +"レスに送信されます。" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "ウィークリーメールを受信する" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"この設定により、すべての通知の週間ダイジェスト版が、あなたの登録メールアドレ" +"スに送信されます。" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/stores/locale/nl/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/nl/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..135c4149c9fdf6b258204fe91edcefe261df69df GIT binary patch literal 421 zcmYL^Pfx=j9ENA~)T3t)n0V04-)x&0JGPnCmCeTfOV=&Y8*W&u9W=m;lXFeWY2J9I5F%S&JArm!>ifso3VBNlS%QyRvN-JESXf5;2358BF#&y*bvfMeQY8=L7_dlm+TNA-G&Z+@0), YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: const.py:103 +msgid "Announcements" +msgstr "" + +#: const.py:108 +msgid "Group Work" +msgstr "" + +#: const.py:113 +msgid "Leaderboards" +msgstr "" + +#: const.py:118 +msgid "Discussion" +msgstr "" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: const.py:167 +msgid "Announcement" +msgstr "" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/stores/locale/pt/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/pt/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..e204154fa027b289abaf5bce5142a2531a7ac14b GIT binary patch literal 1253 zcmb_b&ube;6rLtdnyLu|xAfG*%O#|kNhL$5yS9tB*4h!3EF;Sa?J1+(r}f0E8F^;b zKTd(tTh6@(LJqzJdg@;w=zo#W{sq1F)Nf_k&LxCG2R^=eZ{NQ6&Ca)P=jVPESf2o2 z0vT`%cnwtRPoRqb0&2kDGyVsB6S($~5TAkP!JmWgf^+aPcn|yvybs*GBE)sX$5(~; z6#NW44}K254SoUs0{q*I{{a7t_zn0M@RKhtMWnT0+Wqrt$DP5cpk3bi>Bj){!WPeY4 z@*ILTIUVVupj4HfNzGo(bk07I9g@N`V}l;*R0YiT6f6xGFPl(pPi*PPajtz}$JyCX zQd#EMd-47`Gdcg)plxTLavEeSlaJU{A1R{kc>RZXGoeRGZ>QDWs`YqmU6380>r8%M z=3e$~M78a1U#>fzo=!GZ;D{FMjV0M=$i;7|@lDiNT&O>&*HI{Ye5kADv$`LXxF_MI}mP{F#0Hg?->+KM{~tt6ee)n1F6&0eyz^Bqb}UaFjB zpVcU$cD%K@TS;DNx7P}N-@5#=22wk%PI7s^#{GJ2-I{=#ko}V}bO$~TUylo=%`&BX z%Hf7rcl#T1>9VepHDo6fliCcoAJNi4huU^gI#tLG>qb5zGoFTib#a-_wyXCH-C3o^ zSIadK;~UruKTdvU+_O^yRqR<@Kk-4S$1K(h1+!MRnVe2*Dsv9l5zES#l2JVPSJtSWt~~sq3%CPn907701+RQVBaeuRX9bMiuf1Rp?<~y literal 0 HcmV?d00001 diff --git a/edx_notifications/stores/locale/pt/LC_MESSAGES/django.po b/edx_notifications/stores/locale/pt/LC_MESSAGES/django.po new file mode 100644 index 00000000..eb0bd15d --- /dev/null +++ b/edx_notifications/stores/locale/pt/LC_MESSAGES/django.po @@ -0,0 +1,74 @@ +# SOME DESCRIPTIVE TITLE. +# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER +# This file is distributed under the same license as the PACKAGE package. +# FIRST AUTHOR , YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" +"Plural-Forms: nplurals=2; plural=(n != 1);\n" + +#: const.py:103 +msgid "Announcements" +msgstr "Avisos" + +#: const.py:108 +msgid "Group Work" +msgstr "Trabalho em equipe" + +#: const.py:113 +msgid "Leaderboards" +msgstr "Classificações" + +#: const.py:118 +msgid "Discussion" +msgstr "Discussões" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "Avisos" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "Receber e-mail diário" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"Esta configuração fará com que um resumo diário de todas asnotificações seja " +"enviado para seu endereço de e-mail registrado" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "Receber e-mail semanal" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "" +"Esta configuração fará com que um resumo semanal de todasas notificações " +"seja enviado para o seu endereço de e-mail cadastrado" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/stores/locale/zh-ch/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/zh-ch/LC_MESSAGES/django.mo new file mode 100644 index 0000000000000000000000000000000000000000..2ebb9669d3423d7e019d6afc34dd9b0231b0e859 GIT binary patch literal 1102 zcmb`E&rcIU6vsyee>8YO4<0aN<5fe@EKQWrH+xFyHPrikQ;=vdbC;8?xZ{|Diy_xya+Vl*;H~~5f zGC(Im>mYx81^MwePyqD3&Y!>*Q1c;#P61nir-A2yCa?>b0=@zEfLabCbQEIs$R0JI zfBrVmubl#(0kS$D0X2wM>-+(PG`l%`e>12F1k30+=-@b351=GMl5IO#J4wf>EjWr; zJelR(a%|MkoNNZ)aM&19sBTa;;^@raC_$6dnxNRwt@IS8qnA2lqKa)F&utizt|2y4_z>H=zWEF3&S;jk_I>6DXYm{HT>f--9C z6~($?Fv>albDerS|EtgdbMDZjAW?%1Q|3QX7!OFj*QI_L56g+cXgn53(2T}j!l%BNJ?l80AfmYS1DmU&IY7Yi_9b3Rp5N#?0eG7V5oX@0n z%kIL-l+NIXFAr&bq_g4k+Zv^e$ac~(;P=D0bHow>H$IE4p(F;5nGiUD, YEAR. +# +#, fuzzy +msgid "" +msgstr "" +"Project-Id-Version: PACKAGE VERSION\n" +"Report-Msgid-Bugs-To: \n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" +"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" +"Last-Translator: FULL NAME \n" +"Language-Team: LANGUAGE \n" +"Language: \n" +"MIME-Version: 1.0\n" +"Content-Type: text/plain; charset=UTF-8\n" +"Content-Transfer-Encoding: 8bit\n" + +#: const.py:103 +msgid "Announcements" +msgstr "公告" + +#: const.py:108 +msgid "Group Work" +msgstr "群组工作" + +#: const.py:113 +msgid "Leaderboards" +msgstr "排行榜" + +#: const.py:118 +msgid "Discussion" +msgstr "讨论" + +#: const.py:123 +msgid "Other" +msgstr "" + +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "公告" + +#: digests.py:200 +msgid "Receive daily email" +msgstr "接收每日电子邮件" + +#: digests.py:201 +msgid "" +"This setting will cause a daily digest of all notifications to be sent to " +"your registered email address" +msgstr "此设置将使所有通知的每日摘要都发送到您注册的电子邮件地址" + +#: digests.py:210 +msgid "Receive weekly email" +msgstr "接收每周电子邮件" + +#: digests.py:211 +msgid "" +"This setting will cause a weekly digest of all notifications to be sent to " +"your registered email address" +msgstr "此设置将使所有通知的每周摘要都发送到您注册的电子邮件地址" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" From 2d7fa4c262281409954dd7eb4a5d1559e6419eab Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 18:05:28 +0500 Subject: [PATCH 19/39] fixing version in setup.py --- .../locale/ar/LC_MESSAGES/django.mo | Bin 1634 -> 1634 bytes .../locale/ar/LC_MESSAGES/django.po | 2 +- .../stores/locale/ar/LC_MESSAGES/django.mo | Bin 1634 -> 0 bytes .../stores/locale/ar/LC_MESSAGES/django.po | 76 ------------------ .../stores/locale/de/LC_MESSAGES/django.mo | Bin 1248 -> 0 bytes .../stores/locale/de/LC_MESSAGES/django.po | 74 ----------------- .../stores/locale/en/LC_MESSAGES/django.mo | Bin 378 -> 0 bytes .../stores/locale/en/LC_MESSAGES/django.po | 67 --------------- .../stores/locale/es/LC_MESSAGES/django.mo | Bin 1332 -> 0 bytes .../stores/locale/es/LC_MESSAGES/django.po | 74 ----------------- .../stores/locale/fr/LC_MESSAGES/django.mo | Bin 1265 -> 0 bytes .../stores/locale/fr/LC_MESSAGES/django.po | 74 ----------------- .../stores/locale/ja/LC_MESSAGES/django.mo | Bin 1315 -> 0 bytes .../stores/locale/ja/LC_MESSAGES/django.po | 74 ----------------- .../stores/locale/nl/LC_MESSAGES/django.mo | Bin 421 -> 0 bytes .../stores/locale/nl/LC_MESSAGES/django.po | 68 ---------------- .../stores/locale/pt/LC_MESSAGES/django.mo | Bin 1253 -> 0 bytes .../stores/locale/pt/LC_MESSAGES/django.po | 74 ----------------- .../stores/locale/zh-ch/LC_MESSAGES/django.mo | Bin 1102 -> 0 bytes .../stores/locale/zh-ch/LC_MESSAGES/django.po | 69 ---------------- 20 files changed, 1 insertion(+), 651 deletions(-) delete mode 100644 edx_notifications/stores/locale/ar/LC_MESSAGES/django.mo delete mode 100644 edx_notifications/stores/locale/ar/LC_MESSAGES/django.po delete mode 100644 edx_notifications/stores/locale/de/LC_MESSAGES/django.mo delete mode 100644 edx_notifications/stores/locale/de/LC_MESSAGES/django.po delete mode 100644 edx_notifications/stores/locale/en/LC_MESSAGES/django.mo delete mode 100644 edx_notifications/stores/locale/en/LC_MESSAGES/django.po delete mode 100644 edx_notifications/stores/locale/es/LC_MESSAGES/django.mo delete mode 100644 edx_notifications/stores/locale/es/LC_MESSAGES/django.po delete mode 100644 edx_notifications/stores/locale/fr/LC_MESSAGES/django.mo delete mode 100644 edx_notifications/stores/locale/fr/LC_MESSAGES/django.po delete mode 100644 edx_notifications/stores/locale/ja/LC_MESSAGES/django.mo delete mode 100644 edx_notifications/stores/locale/ja/LC_MESSAGES/django.po delete mode 100644 edx_notifications/stores/locale/nl/LC_MESSAGES/django.mo delete mode 100644 edx_notifications/stores/locale/nl/LC_MESSAGES/django.po delete mode 100644 edx_notifications/stores/locale/pt/LC_MESSAGES/django.mo delete mode 100644 edx_notifications/stores/locale/pt/LC_MESSAGES/django.po delete mode 100644 edx_notifications/stores/locale/zh-ch/LC_MESSAGES/django.mo delete mode 100644 edx_notifications/stores/locale/zh-ch/LC_MESSAGES/django.po diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.mo b/edx_notifications/locale/ar/LC_MESSAGES/django.mo index 734661034d63a1838741b1b587b768957e695749..7078a2e071359bcfeccc81fff35ec2159777f647 100644 GIT binary patch delta 35 qcmaFF^N44I3X4#6VqRW;X>w|AYF|O7NyCGjKZ5ESvZ*hN74m{ diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index 95dc1b85..6d0cfa03 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -73,4 +73,4 @@ msgstr "" #, python-brace-format #| msgid "Announcement on {annoucement_date}" msgid "Announcement on {annoucement_date}" -msgstr " الإعلان عن المساق {annoucement_date}" +msgstr "{annoucement_date} الإعلان عن المساق " diff --git a/edx_notifications/stores/locale/ar/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/ar/LC_MESSAGES/django.mo deleted file mode 100644 index 734661034d63a1838741b1b587b768957e695749..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1634 zcmcJOO>Y}T7{?bVZ{|fUa6v-i5h}e@TXvn6CYx;OHr@maJB}QuP%dcVovfEQyVlHZ zON0&3DLa0(CdO_-)4={V-6Yvo@@Sn947X%VQFw*1SGc(W2|CyD4 zdG6R32G&!smtZOE1ng&+UdJCYj90)D;4|P^umoNju?{|s{X5{JAP1iZ*T5IRkHHZ9 z9PEIEP*$zz7`EO-UfbvodSUHHkKlRmSMW>lB$|E&-Um^( zh}Aj{m)5G6o=>kQVQ6h2-FO`K2<&h@rX4SilPqrYbsndb#PlK42gCh)0ZaKue+ZFA zC6et-$|#AAd68s2dOHzoMvb$8iW|Loybn#K# z72j)`^@dsT=*@;xubzIlvEY|#Or~Z_uvm6knh1yHmTNUy@ajIz_;s&ZyXaLaO@C?W z0z%_3V<9(NoUJ=l^A_fpwd9#v?P51NlZbE}1F7|D-5<|qpRr1_Nu1(Kn5~T-bf^4- z^tE1>Me#JXJ51mUyUVRPb8;M~Wvy~y`f)o6@bw*+kW73Y6_QUad~dK zWRM!i_G{8aM zK+RqCt, YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 17:12+0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"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" - -#: const.py:103 -msgid "Announcements" -msgstr "إعلانات" - -#: const.py:108 -msgid "Group Work" -msgstr "العمل الجماعي" - -#: const.py:113 -msgid "Leaderboards" -msgstr "لوحات المتسابقين" - -#: const.py:118 -msgid "Discussion" -msgstr "النقاش" - -#: const.py:123 -msgid "Other" -msgstr "أخرى" - -#: const.py:167 -#, fuzzy -#| msgid "Announcements" -msgid "Announcement" -msgstr "إعلانات" - -#: digests.py:200 -msgid "Receive daily email" -msgstr "استلام بريد إلكتروني يوميًا" - -#: digests.py:201 -msgid "" -"This setting will cause a daily digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"هذا الإعداد سيؤدي لإرسال ملخص يومي بجميع الإشعارات إلى عنوان بريدك " -"الإلكتروني المسجل" - -#: digests.py:210 -msgid "Receive weekly email" -msgstr "استلام بريد إلكتروني أسبوعيًا" - -#: digests.py:211 -msgid "" -"This setting will cause a weekly digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"هذا الإعداد سيؤدي لإرسال ملخص أسبوعي بجميع الإشعارات إلى عنوان بريدك " -"الإلكتروني المسجل" - -#: stores/sql/models.py:145 -#, python-brace-format -#| msgid "Announcement on {annoucement_date}" -msgid "Announcement on {annoucement_date}" -msgstr " الإعلان عن المساق {annoucement_date}" diff --git a/edx_notifications/stores/locale/de/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/de/LC_MESSAGES/django.mo deleted file mode 100644 index aa9167eac3c00c477646f45a2dcb6a371aea8827..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1248 zcmb_b%WfP+6s>?w!pN{l*dPVzW)mf{%FI}baN0I<+tW59=3$M;wvt`B`?{x?o~lt* zwI4!an;(E5NLZ3>R@r&MUqob)HG5W^wnug%8L@zpj!r%9z2{cf={L7$ei0a-0(XH7 z_zd_BsKy^awSEiKfIp}F7kCbsy&=RM@NMuH;QQblybK(=@_u`bAt&vho(%iPO> zji|QW8^{gE=eLth6*!{BdSgj88glV5HNJ@&i}UqI^*RD&pO17^d>Z#8iTkqClg*gE z>qVW`{L@}HskN04a^RHlg$mY1w7J`EQ#bA;w32k-3|j59I?2`j8VmK>hBW~%AqS@u^d0yld_5_YHp`R_mBS0K z?hZEP(p6m5)*(BYnAB!?{fL$hbf|3?rBj96v~KJpGL!SAUtL_Li|OhEL-$sx@o>2Y zTaM0N8@ya;ayFGOM;E@tV#}422^-}OSO?L^^@_?FMhwn=#WWo, YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 17:12+0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: const.py:103 -msgid "Announcements" -msgstr "Ankündigungen" - -#: const.py:108 -msgid "Group Work" -msgstr "Gruppenarbeit" - -#: const.py:113 -msgid "Leaderboards" -msgstr "Ranglisten" - -#: const.py:118 -msgid "Discussion" -msgstr "Diskussionen" - -#: const.py:123 -msgid "Other" -msgstr "" - -#: const.py:167 -#, fuzzy -#| msgid "Announcements" -msgid "Announcement" -msgstr "Ankündigungen" - -#: digests.py:200 -msgid "Receive daily email" -msgstr "Tägliche E-Mail erhalten" - -#: digests.py:201 -msgid "" -"This setting will cause a daily digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"Bei dieser Einstellung wird eine tägliche Zusammenfassung aller Nachrichten " -"an Ihre eingetragene E-Mail Adresse geschickt." - -#: digests.py:210 -msgid "Receive weekly email" -msgstr "Wöchentliche E-Mail erhalten" - -#: digests.py:211 -msgid "" -"This setting will cause a weekly digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"Bei dieser Einstellung wird eine wöchentliche Zusammenfassung " -"allerNachrichten an Ihre eingetragene E-Mail Adresse geschickt." - -#: stores/sql/models.py:145 -#, python-brace-format -msgid "Announcement on {annoucement_date}" -msgstr "" diff --git a/edx_notifications/stores/locale/en/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/en/LC_MESSAGES/django.mo deleted file mode 100644 index 88b2449ad3bdd3134b1ce4d3f179c90a2d15b224..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 378 zcmYL^K~KUk7=|%=+R?Lz9=zd)8;NmLG*nh_aoxxmBzmh*XAQQbD@1>Yf6w3Ix5UVs zJn5m&*S_D+>B)BobA+5B=g2W~fwYN{5nc}PY@PqioPAd-59u0~$~D>=N@i^Q$fleu zc{xvuJSf%HIuD|$^&0MXbpw^9B$yQyjGdAmhaiz&QPK~i7@`RJ0}@@+sNW5*!VpC$ z)n2!c|9MZGl^_a87, YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 17:12+0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: const.py:103 -msgid "Announcements" -msgstr "" - -#: const.py:108 -msgid "Group Work" -msgstr "" - -#: const.py:113 -msgid "Leaderboards" -msgstr "" - -#: const.py:118 -msgid "Discussion" -msgstr "" - -#: const.py:123 -msgid "Other" -msgstr "" - -#: const.py:167 -msgid "Announcement" -msgstr "" - -#: digests.py:200 -msgid "Receive daily email" -msgstr "" - -#: digests.py:201 -msgid "" -"This setting will cause a daily digest of all notifications to be sent to " -"your registered email address" -msgstr "" - -#: digests.py:210 -msgid "Receive weekly email" -msgstr "" - -#: digests.py:211 -msgid "" -"This setting will cause a weekly digest of all notifications to be sent to " -"your registered email address" -msgstr "" - -#: stores/sql/models.py:145 -#, python-brace-format -msgid "Announcement on {annoucement_date}" -msgstr "" diff --git a/edx_notifications/stores/locale/es/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/es/LC_MESSAGES/django.mo deleted file mode 100644 index 72df8398ee65b51c1c5b6ecc28686b7e311e116b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1332 zcmb`GL2nZ|6vxd13q&BTfD_{IxF8U6H>tFuOetb$rX?b2sx)P_dvj)9r=}A-*q%bU zapb}cAt7#D;e_}Ed=CVlVDEd{zuS-^AucN{{q?ga&(DARy?i=*?1jKM1zm&+=nV80 zisLgB*I%Fp^v{(4f~TS5M}#;Bo(0c?m%$QT1h>IA;0|>97a>k!{rIR5C%~uRZ{RcV z0{9BN0)7DJz)#?F@XRqGUV^Vdq!GVD(d%&tp9I48^8&LG^T&ZBg-DIDwaIzRCV0`- zKCivk)`(SS>k0j7-Hzz8D%g#za)lQI&ROp=6-rlo#A9Ig?Gf|N?Bj4-d-5EDHYGjM zRYkd~J(HSlEp*8~kliAM-;511syzv%yBEzt$M=#JV7RzSM=hQSnZjv)jF0={f7l!x&iYb$Z$1{aSO)#x0OSMmo|qh za^Wy8+S+0#Gn3l_)lX<)q(fu9s-3Fjigjb3keTc+{nGp*9ZZ+57`n7Xt*eU-v?ZES zTXZCk@LZ^}QzP}j5*sRAJ+We_Mio2jsbDl#wckA0VGxTJ)g$dl|Z$ zg%Y}t?~TswEU-3;cKHb!ZmclZSDhq2*fpZKfc3VW)>9!Vb{eBF>k!p_l~Fk0;dW!Cw`KhZ`^!+hxh=~xA-5v F{sRj)nGOH| diff --git a/edx_notifications/stores/locale/es/LC_MESSAGES/django.po b/edx_notifications/stores/locale/es/LC_MESSAGES/django.po deleted file mode 100644 index 17d20407..00000000 --- a/edx_notifications/stores/locale/es/LC_MESSAGES/django.po +++ /dev/null @@ -1,74 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 17:12+0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: const.py:103 -msgid "Announcements" -msgstr "Anuncios" - -#: const.py:108 -msgid "Group Work" -msgstr "Trabajo en grupo" - -#: const.py:113 -msgid "Leaderboards" -msgstr "Tableros de calificaciones" - -#: const.py:118 -msgid "Discussion" -msgstr "Debates" - -#: const.py:123 -msgid "Other" -msgstr "" - -#: const.py:167 -#, fuzzy -#| msgid "Announcements" -msgid "Announcement" -msgstr "Anuncios" - -#: digests.py:200 -msgid "Receive daily email" -msgstr "Recibir a diario por correo electrónico" - -#: digests.py:201 -msgid "" -"This setting will cause a daily digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"Esta configuración le permite seleccionar que todas las notificaciones se " -"envíen a diario a la dirección de correo electrónico registrada." - -#: digests.py:210 -msgid "Receive weekly email" -msgstr "Recibir una vez semana por correo electrónico" - -#: digests.py:211 -msgid "" -"This setting will cause a weekly digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"Esta configuración le permite seleccionar que todas las notificacionesse " -"envíen una vez por semana a la dirección de correo electrónico registrada." - -#: stores/sql/models.py:145 -#, python-brace-format -msgid "Announcement on {annoucement_date}" -msgstr "" diff --git a/edx_notifications/stores/locale/fr/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/fr/LC_MESSAGES/django.mo deleted file mode 100644 index a4b044ff71ab8bf97057534728bd872a0ad83986..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1265 zcmb`Gy>AmS7{(2>e1tMk7!i6|D5!EtA|cA9t$HNa5|K1fnu1_+?%rP9UhH7|Qo40u zWMxH2EEMryWa6JdFf*_-@m?A=MTiB}(xab0Uq2T=`8qrGmQlMzxE#epA0r3a%H8GiDjLNX{q|ECyiKZAWkLnVR+l6tDu4K$tN~bEs9x7*9McOd6 zR%*r8jZXXUOq*R+LlL3rXkjADS{R}nAVfkY`+z;d@!THb?(t;1D=k=bPO2F8WRgHA zQi~wQM*=X~! z!O_?8ig4&bF<)5Zg#s@=gu(-_P@K=-&*y0)Z{a{@#mD=e2Y!p!8@%Gf7$Y%(mnp?6lBh-z{cE|4ok;ftMcGg>guXDM zH~i=ff*Bs#G@-l+Kn2MhDmo3(9917J^@fL&>X{{{Q->B3(w|u#zK4O%N{Ufl>7RoW TgQ$*jO*Q|+z)An7;sM!jme+$y diff --git a/edx_notifications/stores/locale/fr/LC_MESSAGES/django.po b/edx_notifications/stores/locale/fr/LC_MESSAGES/django.po deleted file mode 100644 index 0e43e963..00000000 --- a/edx_notifications/stores/locale/fr/LC_MESSAGES/django.po +++ /dev/null @@ -1,74 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 17:12+0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n > 1);\n" - -#: const.py:103 -msgid "Announcements" -msgstr "Annonces" - -#: const.py:108 -msgid "Group Work" -msgstr "Travail de groupe" - -#: const.py:113 -msgid "Leaderboards" -msgstr "Classements" - -#: const.py:118 -msgid "Discussion" -msgstr "Discussions" - -#: const.py:123 -msgid "Other" -msgstr "" - -#: const.py:167 -#, fuzzy -#| msgid "Announcements" -msgid "Announcement" -msgstr "Annonces" - -#: digests.py:200 -msgid "Receive daily email" -msgstr "Recevoir un courriel quotidien" - -#: digests.py:201 -msgid "" -"This setting will cause a daily digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"Ce paramètre résultera en l'envoi d'un résumé quotidien de toutes les " -"notifications à votre adresse de courriel enregistré" - -#: digests.py:210 -msgid "Receive weekly email" -msgstr "Recevoir un courriel hebdomadaire" - -#: digests.py:211 -msgid "" -"This setting will cause a weekly digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"Ce paramètre résultera en l'envoi d'un résumé hebdomadaire de toutes les " -"notifications à votre adresse de courriel enregistrée" - -#: stores/sql/models.py:145 -#, python-brace-format -msgid "Announcement on {annoucement_date}" -msgstr "" diff --git a/edx_notifications/stores/locale/ja/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/ja/LC_MESSAGES/django.mo deleted file mode 100644 index b2f075a7f452be1180be0cbcdfb20c95db540048..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1315 zcmcJM%Wo4$9LEO;6fAlP^wz^15C_muJ5trKA&70f30CbmavV^5n|LRiEzXXa83VZ> z@2(IDNgpaoBPbG0d5X~RJV0Bue@8Ef>IVd$xc9_wZ7bn|DkM76cR%y^J-)N^q`PZ@ z;Mj)x80DfqMBPRu<0&dx|AR`QUUm2{ayx4C210fqyOBGQyOAEU4>^gvf^<>aH@4%C zZ))>2@*_N-Lv|yVkh_o%k$aGTBfm#>brJFnasi2D$QD%Mbu$XL2!@fZs5i$4odvce z#0~;k4=Q3x1V)pruPb$}eHoA;CF?bMRH|bnFSskzxa7*!q$DcBKOv~g{pvIoQ;4;_ zlR_L@+bmD|nrdN;A9(bnU#-##uWLbhC)M>mp$(N2l;c?-jX&X6xWV3<8cD|mCI=>& zPRqKYN_f6DLJ7CslycWqLTmE&J{>#ntI>#(UyF)iIhP#~D)~tk9kB<#u!kIa#3_yD zio>ars7Ym5L3_T-KCgS4m8C^fBgHZsP@;7^mgPoRv?rbEWtj}?*-tZ{S(%=_=}*&X z3}hv7!cU5K;=Xk35-Sv0)~1JxRw1|dtKzVe%5!a4S@A$uxsl4EgJbzT9kvS&J>V4V zT>g-q&6b?e(SsNocy;axRu+89qIr9GXe_aOAfG=}_4i5Tt;e9%LayMf-!HQ-of?pV z!Ixm==^FYr;*|NMR^@)sM=O(D;S2YVl?PexdR$^_LMY}073t#ZTeNrFH>r_oUGXX# zlxj*_G^n+fxE+FDpZzx1{P_%l=q|*|5dQ)3 zBE)x+NpuHyA4Bv2qF*4s)H<6b5TAwUD#W*1>!sFr8KNJaf4BJTuO$dCKs1MW*CD#n zF7jWY;duyGUf%rm`N~BIvC<4g=b#ZLmBPmmUdPjB<6>evTzRp04H{=~0&yd85j}$F zMq)CaS)HAMaK4ooL3j(o%NVwL;rHhJeTdg=;zed5zMZ6m%gsjEvb+G%JcNHH9UBq; RqjxaWY}{-9c>aHM^BSds52647 diff --git a/edx_notifications/stores/locale/ja/LC_MESSAGES/django.po b/edx_notifications/stores/locale/ja/LC_MESSAGES/django.po deleted file mode 100644 index c13389c3..00000000 --- a/edx_notifications/stores/locale/ja/LC_MESSAGES/django.po +++ /dev/null @@ -1,74 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 17:12+0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=1; plural=0;\n" - -#: const.py:103 -msgid "Announcements" -msgstr "お知らせ" - -#: const.py:108 -msgid "Group Work" -msgstr "グループワーク" - -#: const.py:113 -msgid "Leaderboards" -msgstr "スコアボード" - -#: const.py:118 -msgid "Discussion" -msgstr "検討事項" - -#: const.py:123 -msgid "Other" -msgstr "" - -#: const.py:167 -#, fuzzy -#| msgid "Announcements" -msgid "Announcement" -msgstr "お知らせ" - -#: digests.py:200 -msgid "Receive daily email" -msgstr "デイリーメールを受信する" - -#: digests.py:201 -msgid "" -"This setting will cause a daily digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"この設定により、すべての通知の日々のダイジェスト版が、あなたの登録メールアド" -"レスに送信されます。" - -#: digests.py:210 -msgid "Receive weekly email" -msgstr "ウィークリーメールを受信する" - -#: digests.py:211 -msgid "" -"This setting will cause a weekly digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"この設定により、すべての通知の週間ダイジェスト版が、あなたの登録メールアドレ" -"スに送信されます。" - -#: stores/sql/models.py:145 -#, python-brace-format -msgid "Announcement on {annoucement_date}" -msgstr "" diff --git a/edx_notifications/stores/locale/nl/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/nl/LC_MESSAGES/django.mo deleted file mode 100644 index 135c4149c9fdf6b258204fe91edcefe261df69df..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 421 zcmYL^Pfx=j9ENA~)T3t)n0V04-)x&0JGPnCmCeTfOV=&Y8*W&u9W=m;lXFeWY2J9I5F%S&JArm!>ifso3VBNlS%QyRvN-JESXf5;2358BF#&y*bvfMeQY8=L7_dlm+TNA-G&Z+@0), YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 17:12+0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: const.py:103 -msgid "Announcements" -msgstr "" - -#: const.py:108 -msgid "Group Work" -msgstr "" - -#: const.py:113 -msgid "Leaderboards" -msgstr "" - -#: const.py:118 -msgid "Discussion" -msgstr "" - -#: const.py:123 -msgid "Other" -msgstr "" - -#: const.py:167 -msgid "Announcement" -msgstr "" - -#: digests.py:200 -msgid "Receive daily email" -msgstr "" - -#: digests.py:201 -msgid "" -"This setting will cause a daily digest of all notifications to be sent to " -"your registered email address" -msgstr "" - -#: digests.py:210 -msgid "Receive weekly email" -msgstr "" - -#: digests.py:211 -msgid "" -"This setting will cause a weekly digest of all notifications to be sent to " -"your registered email address" -msgstr "" - -#: stores/sql/models.py:145 -#, python-brace-format -msgid "Announcement on {annoucement_date}" -msgstr "" diff --git a/edx_notifications/stores/locale/pt/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/pt/LC_MESSAGES/django.mo deleted file mode 100644 index e204154fa027b289abaf5bce5142a2531a7ac14b..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1253 zcmb_b&ube;6rLtdnyLu|xAfG*%O#|kNhL$5yS9tB*4h!3EF;Sa?J1+(r}f0E8F^;b zKTd(tTh6@(LJqzJdg@;w=zo#W{sq1F)Nf_k&LxCG2R^=eZ{NQ6&Ca)P=jVPESf2o2 z0vT`%cnwtRPoRqb0&2kDGyVsB6S($~5TAkP!JmWgf^+aPcn|yvybs*GBE)sX$5(~; z6#NW44}K254SoUs0{q*I{{a7t_zn0M@RKhtMWnT0+Wqrt$DP5cpk3bi>Bj){!WPeY4 z@*ILTIUVVupj4HfNzGo(bk07I9g@N`V}l;*R0YiT6f6xGFPl(pPi*PPajtz}$JyCX zQd#EMd-47`Gdcg)plxTLavEeSlaJU{A1R{kc>RZXGoeRGZ>QDWs`YqmU6380>r8%M z=3e$~M78a1U#>fzo=!GZ;D{FMjV0M=$i;7|@lDiNT&O>&*HI{Ye5kADv$`LXxF_MI}mP{F#0Hg?->+KM{~tt6ee)n1F6&0eyz^Bqb}UaFjB zpVcU$cD%K@TS;DNx7P}N-@5#=22wk%PI7s^#{GJ2-I{=#ko}V}bO$~TUylo=%`&BX z%Hf7rcl#T1>9VepHDo6fliCcoAJNi4huU^gI#tLG>qb5zGoFTib#a-_wyXCH-C3o^ zSIadK;~UruKTdvU+_O^yRqR<@Kk-4S$1K(h1+!MRnVe2*Dsv9l5zES#l2JVPSJtSWt~~sq3%CPn907701+RQVBaeuRX9bMiuf1Rp?<~y diff --git a/edx_notifications/stores/locale/pt/LC_MESSAGES/django.po b/edx_notifications/stores/locale/pt/LC_MESSAGES/django.po deleted file mode 100644 index eb0bd15d..00000000 --- a/edx_notifications/stores/locale/pt/LC_MESSAGES/django.po +++ /dev/null @@ -1,74 +0,0 @@ -# SOME DESCRIPTIVE TITLE. -# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER -# This file is distributed under the same license as the PACKAGE package. -# FIRST AUTHOR , YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 17:12+0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" -"Plural-Forms: nplurals=2; plural=(n != 1);\n" - -#: const.py:103 -msgid "Announcements" -msgstr "Avisos" - -#: const.py:108 -msgid "Group Work" -msgstr "Trabalho em equipe" - -#: const.py:113 -msgid "Leaderboards" -msgstr "Classificações" - -#: const.py:118 -msgid "Discussion" -msgstr "Discussões" - -#: const.py:123 -msgid "Other" -msgstr "" - -#: const.py:167 -#, fuzzy -#| msgid "Announcements" -msgid "Announcement" -msgstr "Avisos" - -#: digests.py:200 -msgid "Receive daily email" -msgstr "Receber e-mail diário" - -#: digests.py:201 -msgid "" -"This setting will cause a daily digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"Esta configuração fará com que um resumo diário de todas asnotificações seja " -"enviado para seu endereço de e-mail registrado" - -#: digests.py:210 -msgid "Receive weekly email" -msgstr "Receber e-mail semanal" - -#: digests.py:211 -msgid "" -"This setting will cause a weekly digest of all notifications to be sent to " -"your registered email address" -msgstr "" -"Esta configuração fará com que um resumo semanal de todasas notificações " -"seja enviado para o seu endereço de e-mail cadastrado" - -#: stores/sql/models.py:145 -#, python-brace-format -msgid "Announcement on {annoucement_date}" -msgstr "" diff --git a/edx_notifications/stores/locale/zh-ch/LC_MESSAGES/django.mo b/edx_notifications/stores/locale/zh-ch/LC_MESSAGES/django.mo deleted file mode 100644 index 2ebb9669d3423d7e019d6afc34dd9b0231b0e859..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 1102 zcmb`E&rcIU6vsyee>8YO4<0aN<5fe@EKQWrH+xFyHPrikQ;=vdbC;8?xZ{|Diy_xya+Vl*;H~~5f zGC(Im>mYx81^MwePyqD3&Y!>*Q1c;#P61nir-A2yCa?>b0=@zEfLabCbQEIs$R0JI zfBrVmubl#(0kS$D0X2wM>-+(PG`l%`e>12F1k30+=-@b351=GMl5IO#J4wf>EjWr; zJelR(a%|MkoNNZ)aM&19sBTa;;^@raC_$6dnxNRwt@IS8qnA2lqKa)F&utizt|2y4_z>H=zWEF3&S;jk_I>6DXYm{HT>f--9C z6~($?Fv>albDerS|EtgdbMDZjAW?%1Q|3QX7!OFj*QI_L56g+cXgn53(2T}j!l%BNJ?l80AfmYS1DmU&IY7Yi_9b3Rp5N#?0eG7V5oX@0n z%kIL-l+NIXFAr&bq_g4k+Zv^e$ac~(;P=D0bHow>H$IE4p(F;5nGiUD, YEAR. -# -#, fuzzy -msgid "" -msgstr "" -"Project-Id-Version: PACKAGE VERSION\n" -"Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-11-29 17:12+0500\n" -"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" -"Last-Translator: FULL NAME \n" -"Language-Team: LANGUAGE \n" -"Language: \n" -"MIME-Version: 1.0\n" -"Content-Type: text/plain; charset=UTF-8\n" -"Content-Transfer-Encoding: 8bit\n" - -#: const.py:103 -msgid "Announcements" -msgstr "公告" - -#: const.py:108 -msgid "Group Work" -msgstr "群组工作" - -#: const.py:113 -msgid "Leaderboards" -msgstr "排行榜" - -#: const.py:118 -msgid "Discussion" -msgstr "讨论" - -#: const.py:123 -msgid "Other" -msgstr "" - -#: const.py:167 -#, fuzzy -#| msgid "Announcements" -msgid "Announcement" -msgstr "公告" - -#: digests.py:200 -msgid "Receive daily email" -msgstr "接收每日电子邮件" - -#: digests.py:201 -msgid "" -"This setting will cause a daily digest of all notifications to be sent to " -"your registered email address" -msgstr "此设置将使所有通知的每日摘要都发送到您注册的电子邮件地址" - -#: digests.py:210 -msgid "Receive weekly email" -msgstr "接收每周电子邮件" - -#: digests.py:211 -msgid "" -"This setting will cause a weekly digest of all notifications to be sent to " -"your registered email address" -msgstr "此设置将使所有通知的每周摘要都发送到您注册的电子邮件地址" - -#: stores/sql/models.py:145 -#, python-brace-format -msgid "Announcement on {annoucement_date}" -msgstr "" From 73bac3fb7f09feff97bec47205b0e2dd2878ff54 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 18:06:25 +0500 Subject: [PATCH 20/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 6e3ed983..fe76ad3e 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -135,7 +135,7 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument def translate_payload_title(self, payload): announcement_date = payload['announcement_date'] - title = _gettext('Announcement on {annoucement_date}').format(annoucement_date=announcement_date) + title = _('Announcement on {annoucement_date}').format(annoucement_date=announcement_date) print "///////////###############//////////////////" print (_(title)) # title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) From 5216034ddd6804b011daae73bf80d41019339e00 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 18:23:18 +0500 Subject: [PATCH 21/39] fixing version in setup.py --- edx_notifications/const.py | 2 +- .../locale/ar/LC_MESSAGES/django.mo | Bin 1634 -> 1595 bytes .../locale/ar/LC_MESSAGES/django.po | 8 +++----- 3 files changed, 4 insertions(+), 6 deletions(-) diff --git a/edx_notifications/const.py b/edx_notifications/const.py index bda57150..f655db41 100644 --- a/edx_notifications/const.py +++ b/edx_notifications/const.py @@ -164,5 +164,5 @@ ) STRINGS_TO_TRANSLATE = [ - _("Announcement"), + _("Announcement on"), ] diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.mo b/edx_notifications/locale/ar/LC_MESSAGES/django.mo index 7078a2e071359bcfeccc81fff35ec2159777f647..3db308d166c51832f05df6f83b0f4d2bb0c78bcd 100644 GIT binary patch delta 207 zcmXZUp$fuK7{&3kaRr@s%5cTB31Tq_E(~l2t6^zx;DYZUHlr7t7<`9C!DjF^Y(|4o z@Glq+zwdnEJnY5phnudX$df`GV1SdqGqm&tHn6}RmKft2SGdIrpLivOFQxRzNFAKw xZ)c8uTw;Qi(MU~>9ghqh=6J&se(;P(cTYk_)g~<>_a4`o_wo<9N$b)C{uhrL7Ulo| delta 249 zcmZY2F$)247{~GFu2Y;lrL&mspDv3@l-+J;(#1bY&f+HNUIG`R!8(Z=@A4m!+T%%DaOCs@J+N4Ui?zVSk|$t~u< z5-DI0zjwx1#u$BESyGiO&4EP&PuRi-?l9o%9D<@I@T@Q`~cZ#Cy4+6 diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index 6d0cfa03..4a38dd1c 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -69,8 +69,6 @@ msgstr "" "هذا الإعداد سيؤدي لإرسال ملخص أسبوعي بجميع الإشعارات إلى عنوان بريدك " "الإلكتروني المسجل" -#: stores/sql/models.py:145 -#, python-brace-format -#| msgid "Announcement on {annoucement_date}" -msgid "Announcement on {annoucement_date}" -msgstr "{annoucement_date} الإعلان عن المساق " +#: const.py:166 +msgid "Announcement on" +msgstr "الإعلان عن المساق" From 122b08d2b0ad9e7a246cd805333de69118dcddb5 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 18:23:32 +0500 Subject: [PATCH 22/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index fe76ad3e..57152e7e 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -7,6 +7,7 @@ from model_utils.models import TimeStampedModel from edx_notifications.base_data import DictField +from edx_notifications.const import STRINGS_TO_TRANSLATE from edx_notifications.data import ( NotificationMessage, @@ -135,7 +136,7 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument def translate_payload_title(self, payload): announcement_date = payload['announcement_date'] - title = _('Announcement on {annoucement_date}').format(annoucement_date=announcement_date) + title = "{} {}".format(STRINGS_TO_TRANSLATE[0], announcement_date) print "///////////###############//////////////////" print (_(title)) # title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) From b11ea96d99d539a9e4f863326b494f01b3929351 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 18:27:16 +0500 Subject: [PATCH 23/39] fixing version in setup.py --- edx_notifications/locale/ar/LC_MESSAGES/django.po | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index 4a38dd1c..3b2e529f 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -69,6 +69,6 @@ msgstr "" "هذا الإعداد سيؤدي لإرسال ملخص أسبوعي بجميع الإشعارات إلى عنوان بريدك " "الإلكتروني المسجل" -#: const.py:166 +#: const.py:167 msgid "Announcement on" msgstr "الإعلان عن المساق" From b87de0f8b431d97a0d80df05322a91edd961eb69 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 18:44:29 +0500 Subject: [PATCH 24/39] fixing version in setup.py --- edx_notifications/locale/ar/LC_MESSAGES/django.po | 6 ------ 1 file changed, 6 deletions(-) diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index 3b2e529f..e4818553 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -39,12 +39,6 @@ msgstr "النقاش" msgid "Other" msgstr "أخرى" -#: const.py:167 -#, fuzzy -#| msgid "Announcements" -msgid "Announcement" -msgstr "إعلانات" - #: digests.py:200 msgid "Receive daily email" msgstr "استلام بريد إلكتروني يوميًا" From 2cc58ae6f07e56733e8cf7633e4f12d0522427c5 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 18:47:33 +0500 Subject: [PATCH 25/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 57152e7e..f98ecab6 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -136,7 +136,7 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument def translate_payload_title(self, payload): announcement_date = payload['announcement_date'] - title = "{} {}".format(STRINGS_TO_TRANSLATE[0], announcement_date) + title = "{} {}".format(_(STRINGS_TO_TRANSLATE[0]), announcement_date) print "///////////###############//////////////////" print (_(title)) # title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) From 7bb330a613ac1479cf36216112b6ea9484b392da Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 19:14:08 +0500 Subject: [PATCH 26/39] fixing version in setup.py --- edx_notifications/locale/ar/LC_MESSAGES/django.po | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index e4818553..765a4b13 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -23,6 +23,10 @@ msgstr "" msgid "Announcements" msgstr "إعلانات" +#: const.py:167 +msgid "Announcement on" +msgstr "الإعلان عن المساق" + #: const.py:108 msgid "Group Work" msgstr "العمل الجماعي" @@ -63,6 +67,3 @@ msgstr "" "هذا الإعداد سيؤدي لإرسال ملخص أسبوعي بجميع الإشعارات إلى عنوان بريدك " "الإلكتروني المسجل" -#: const.py:167 -msgid "Announcement on" -msgstr "الإعلان عن المساق" From 2872297075e66f2e26a309b2bce03f70089d7cbe Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 19:14:18 +0500 Subject: [PATCH 27/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index f98ecab6..5ec8f9c9 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -7,7 +7,6 @@ from model_utils.models import TimeStampedModel from edx_notifications.base_data import DictField -from edx_notifications.const import STRINGS_TO_TRANSLATE from edx_notifications.data import ( NotificationMessage, @@ -136,12 +135,10 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument def translate_payload_title(self, payload): announcement_date = payload['announcement_date'] - title = "{} {}".format(_(STRINGS_TO_TRANSLATE[0]), announcement_date) - print "///////////###############//////////////////" - print (_(title)) - # title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) - print "///////////###############//////////////////" - print (title) + title = payload['title'] + title = title.split(" ") + title = "{} {}".format(title[0], title[1]) + title = "{} {} ".format(_(title), announcement_date) payload['title'] = title return payload From 736cce303ed274d88a7b3b53336194b407f21ee4 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 19:16:27 +0500 Subject: [PATCH 28/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 5ec8f9c9..558e5edb 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -137,6 +137,8 @@ def translate_payload_title(self, payload): announcement_date = payload['announcement_date'] title = payload['title'] title = title.split(" ") + print "///////////###############//////////////////" + print (_(title)) title = "{} {}".format(title[0], title[1]) title = "{} {} ".format(_(title), announcement_date) payload['title'] = title From f6316cc444bf9ec2555e6b9020af5c5e3361137e Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 19:19:28 +0500 Subject: [PATCH 29/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 558e5edb..cae2fcf5 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -138,8 +138,9 @@ def translate_payload_title(self, payload): title = payload['title'] title = title.split(" ") print "///////////###############//////////////////" - print (_(title)) + title = "{} {}".format(title[0], title[1]) + print (_(title)) title = "{} {} ".format(_(title), announcement_date) payload['title'] = title return payload From 42f6949c8c9b70bf8dc154411aa495a368927a3f Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 19:19:59 +0500 Subject: [PATCH 30/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index cae2fcf5..2e28b90f 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -141,7 +141,7 @@ def translate_payload_title(self, payload): title = "{} {}".format(title[0], title[1]) print (_(title)) - title = "{} {} ".format(_(title), announcement_date) + title = "{} {}".format(_(title), announcement_date) payload['title'] = title return payload From 71d9469d1702b3e9a196ff5a03362a1f059821b5 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Thu, 29 Nov 2018 20:02:23 +0500 Subject: [PATCH 31/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 2e28b90f..233e8a84 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -20,7 +20,6 @@ from django.db.models.signals import pre_delete from django.dispatch import receiver from django.utils.translation import ugettext_lazy as _ -from django.utils.translation import ugettext as _gettext class SQLNotificationType(models.Model): @@ -137,11 +136,12 @@ def translate_payload_title(self, payload): announcement_date = payload['announcement_date'] title = payload['title'] title = title.split(" ") - print "///////////###############//////////////////" - + print "///////////#######b4########//////////////////" title = "{} {}".format(title[0], title[1]) print (_(title)) title = "{} {}".format(_(title), announcement_date) + print "///////////#######after########//////////////////" + print title payload['title'] = title return payload From c3e2621744af006bb39d90cd5acfcd86d6f447fd Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Tue, 4 Dec 2018 13:17:52 +0500 Subject: [PATCH 32/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index 233e8a84..f5b9b752 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -19,7 +19,7 @@ from edx_notifications import const from django.db.models.signals import pre_delete from django.dispatch import receiver -from django.utils.translation import ugettext_lazy as _ +from django.utils.translation import get_language,ugettext_lazy as _ class SQLNotificationType(models.Model): @@ -139,6 +139,8 @@ def translate_payload_title(self, payload): print "///////////#######b4########//////////////////" title = "{} {}".format(title[0], title[1]) print (_(title)) + print (get_language()) + title = "{} {}".format(_(title), announcement_date) print "///////////#######after########//////////////////" print title From 18d9582bfec282b4e2ff3baaa7903b21b51e2e14 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Tue, 4 Dec 2018 15:06:10 +0500 Subject: [PATCH 33/39] fixing version in setup.py --- .../locale/de/LC_MESSAGES/django.mo | Bin 1248 -> 1248 bytes .../locale/de/LC_MESSAGES/django.po | 23 ++++++++++++++---- .../locale/en/LC_MESSAGES/django.mo | Bin 378 -> 378 bytes .../locale/en/LC_MESSAGES/django.po | 11 ++++++++- .../locale/es/LC_MESSAGES/django.mo | Bin 1332 -> 1332 bytes .../locale/es/LC_MESSAGES/django.po | 23 ++++++++++++++---- .../locale/fr/LC_MESSAGES/django.mo | Bin 1265 -> 1265 bytes .../locale/fr/LC_MESSAGES/django.po | 21 +++++++++++++--- .../locale/ja/LC_MESSAGES/django.mo | Bin 1315 -> 1315 bytes .../locale/ja/LC_MESSAGES/django.po | 21 +++++++++++++--- .../locale/nl/LC_MESSAGES/django.mo | Bin 421 -> 421 bytes .../locale/nl/LC_MESSAGES/django.po | 11 ++++++++- .../locale/pt/LC_MESSAGES/django.mo | Bin 1253 -> 1253 bytes .../locale/pt/LC_MESSAGES/django.po | 23 ++++++++++++++---- .../{zh-ch => zh-cn}/LC_MESSAGES/django.mo | Bin 1102 -> 1102 bytes .../{zh-ch => zh-cn}/LC_MESSAGES/django.po | 13 +++++++++- settings.py | 2 +- testserver/bokchoy_settings.py | 2 +- 18 files changed, 124 insertions(+), 26 deletions(-) rename edx_notifications/locale/{zh-ch => zh-cn}/LC_MESSAGES/django.mo (96%) rename edx_notifications/locale/{zh-ch => zh-cn}/LC_MESSAGES/django.po (85%) diff --git a/edx_notifications/locale/de/LC_MESSAGES/django.mo b/edx_notifications/locale/de/LC_MESSAGES/django.mo index 6e2989b9e2ec6175448434abee0778dbbf90c389..aa9167eac3c00c477646f45a2dcb6a371aea8827 100644 GIT binary patch delta 23 ecmaFB`G9jn0uz^^u92mJp}Ccz(dI0sGA004)dq9` delta 23 ecmaFB`G9jn0uz^kuCalFk&%^&#pW!gGA004eFks< diff --git a/edx_notifications/locale/de/LC_MESSAGES/django.po b/edx_notifications/locale/de/LC_MESSAGES/django.po index 0492ec21..17ad279d 100644 --- a/edx_notifications/locale/de/LC_MESSAGES/django.po +++ b/edx_notifications/locale/de/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "Diskussionen" msgid "Other" msgstr "" +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "Ankündigungen" + #: digests.py:200 msgid "Receive daily email" msgstr "Tägliche E-Mail erhalten" @@ -46,8 +52,9 @@ msgstr "Tägliche E-Mail erhalten" msgid "" "This setting will cause a daily digest of all notifications to be sent to " "your registered email address" -msgstr "Bei dieser Einstellung wird eine tägliche Zusammenfassung aller Nachrichten an " -"Ihre eingetragene E-Mail Adresse geschickt." +msgstr "" +"Bei dieser Einstellung wird eine tägliche Zusammenfassung aller Nachrichten " +"an Ihre eingetragene E-Mail Adresse geschickt." #: digests.py:210 msgid "Receive weekly email" @@ -57,5 +64,11 @@ msgstr "Wöchentliche E-Mail erhalten" msgid "" "This setting will cause a weekly digest of all notifications to be sent to " "your registered email address" -msgstr "Bei dieser Einstellung wird eine wöchentliche Zusammenfassung aller" - "Nachrichten an Ihre eingetragene E-Mail Adresse geschickt." +msgstr "" +"Bei dieser Einstellung wird eine wöchentliche Zusammenfassung " +"allerNachrichten an Ihre eingetragene E-Mail Adresse geschickt." + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/locale/en/LC_MESSAGES/django.mo b/edx_notifications/locale/en/LC_MESSAGES/django.mo index 79d27b501b52bcd60bf91a27abe1e141dde2a2b5..88b2449ad3bdd3134b1ce4d3f179c90a2d15b224 100644 GIT binary patch delta 20 bcmeyx^owaiFPEXNk)?v6xs{>O#OaR#OGXD7 delta 20 bcmeyx^owaiFPDL?v4Mh-k(G(X#OaR#O7;g8 diff --git a/edx_notifications/locale/en/LC_MESSAGES/django.po b/edx_notifications/locale/en/LC_MESSAGES/django.po index 88ff04c6..ce599eb0 100644 --- a/edx_notifications/locale/en/LC_MESSAGES/django.po +++ b/edx_notifications/locale/en/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,6 +37,10 @@ msgstr "" msgid "Other" msgstr "" +#: const.py:167 +msgid "Announcement" +msgstr "" + #: digests.py:200 msgid "Receive daily email" msgstr "" @@ -56,3 +60,8 @@ msgid "" "This setting will cause a weekly digest of all notifications to be sent to " "your registered email address" msgstr "" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/locale/es/LC_MESSAGES/django.mo b/edx_notifications/locale/es/LC_MESSAGES/django.mo index 2db2d923b67ae8ccc4399d1b8877483d02eeba4b..72df8398ee65b51c1c5b6ecc28686b7e311e116b 100644 GIT binary patch delta 23 ecmdnOwS{X#0uz^^u92mJp}Ccz(dI0sQ%nF*7Y1?w delta 23 ecmdnOwS{X#0uz^kuCalFk&%^&#pW!gQ%nF)zXomq diff --git a/edx_notifications/locale/es/LC_MESSAGES/django.po b/edx_notifications/locale/es/LC_MESSAGES/django.po index 4ac1f55a..17d20407 100644 --- a/edx_notifications/locale/es/LC_MESSAGES/django.po +++ b/edx_notifications/locale/es/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "Debates" msgid "Other" msgstr "" +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "Anuncios" + #: digests.py:200 msgid "Receive daily email" msgstr "Recibir a diario por correo electrónico" @@ -46,8 +52,9 @@ msgstr "Recibir a diario por correo electrónico" msgid "" "This setting will cause a daily digest of all notifications to be sent to " "your registered email address" -msgstr "Esta configuración le permite seleccionar que todas las notificaciones se envíen " -"a diario a la dirección de correo electrónico registrada." +msgstr "" +"Esta configuración le permite seleccionar que todas las notificaciones se " +"envíen a diario a la dirección de correo electrónico registrada." #: digests.py:210 msgid "Receive weekly email" @@ -57,5 +64,11 @@ msgstr "Recibir una vez semana por correo electrónico" msgid "" "This setting will cause a weekly digest of all notifications to be sent to " "your registered email address" -msgstr "Esta configuración le permite seleccionar que todas las notificaciones" - "se envíen una vez por semana a la dirección de correo electrónico registrada." +msgstr "" +"Esta configuración le permite seleccionar que todas las notificacionesse " +"envíen una vez por semana a la dirección de correo electrónico registrada." + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/locale/fr/LC_MESSAGES/django.mo b/edx_notifications/locale/fr/LC_MESSAGES/django.mo index a2286cd42b3b6887fa9db4229770207681abe9f2..a4b044ff71ab8bf97057534728bd872a0ad83986 100644 GIT binary patch delta 23 ecmey!`H^!&0uz^^u92mJp}Ccz(dI0sb|wH>;|8Yy delta 23 ecmey!`H^!&0uz^kuCalFk&%^&#pW!gb|wH>iw2_r diff --git a/edx_notifications/locale/fr/LC_MESSAGES/django.po b/edx_notifications/locale/fr/LC_MESSAGES/django.po index d446687b..0e43e963 100644 --- a/edx_notifications/locale/fr/LC_MESSAGES/django.po +++ b/edx_notifications/locale/fr/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "Discussions" msgid "Other" msgstr "" +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "Annonces" + #: digests.py:200 msgid "Receive daily email" msgstr "Recevoir un courriel quotidien" @@ -46,7 +52,9 @@ msgstr "Recevoir un courriel quotidien" msgid "" "This setting will cause a daily digest of all notifications to be sent to " "your registered email address" -msgstr "Ce paramètre résultera en l'envoi d'un résumé quotidien de toutes les notifications à votre adresse de courriel enregistré" +msgstr "" +"Ce paramètre résultera en l'envoi d'un résumé quotidien de toutes les " +"notifications à votre adresse de courriel enregistré" #: digests.py:210 msgid "Receive weekly email" @@ -56,4 +64,11 @@ msgstr "Recevoir un courriel hebdomadaire" msgid "" "This setting will cause a weekly digest of all notifications to be sent to " "your registered email address" -msgstr "Ce paramètre résultera en l'envoi d'un résumé hebdomadaire de toutes les notifications à votre adresse de courriel enregistrée" +msgstr "" +"Ce paramètre résultera en l'envoi d'un résumé hebdomadaire de toutes les " +"notifications à votre adresse de courriel enregistrée" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/locale/ja/LC_MESSAGES/django.mo b/edx_notifications/locale/ja/LC_MESSAGES/django.mo index 6104143c39c027119492b5dac03aac56e24cfe75..b2f075a7f452be1180be0cbcdfb20c95db540048 100644 GIT binary patch delta 23 ecmZ3?wU}!|0uz^^u92mJp}Ccz(dI0solF2t2?jp^ delta 23 ecmZ3?wU}!|0uz^kuCalFk&%^&#pW!golF2su?9N; diff --git a/edx_notifications/locale/ja/LC_MESSAGES/django.po b/edx_notifications/locale/ja/LC_MESSAGES/django.po index e6e48e2b..c13389c3 100644 --- a/edx_notifications/locale/ja/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ja/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "検討事項" msgid "Other" msgstr "" +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "お知らせ" + #: digests.py:200 msgid "Receive daily email" msgstr "デイリーメールを受信する" @@ -46,7 +52,9 @@ msgstr "デイリーメールを受信する" msgid "" "This setting will cause a daily digest of all notifications to be sent to " "your registered email address" -msgstr "この設定により、すべての通知の日々のダイジェスト版が、あなたの登録メールアドレスに送信されます。" +msgstr "" +"この設定により、すべての通知の日々のダイジェスト版が、あなたの登録メールアド" +"レスに送信されます。" #: digests.py:210 msgid "Receive weekly email" @@ -56,4 +64,11 @@ msgstr "ウィークリーメールを受信する" msgid "" "This setting will cause a weekly digest of all notifications to be sent to " "your registered email address" -msgstr "この設定により、すべての通知の週間ダイジェスト版が、あなたの登録メールアドレスに送信されます。" +msgstr "" +"この設定により、すべての通知の週間ダイジェスト版が、あなたの登録メールアドレ" +"スに送信されます。" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/locale/nl/LC_MESSAGES/django.mo b/edx_notifications/locale/nl/LC_MESSAGES/django.mo index adb6c30f0f8af20495cce3baab14d508af31cd2b..135c4149c9fdf6b258204fe91edcefe261df69df 100644 GIT binary patch delta 21 ccmZ3=yp(xDFPEXNk)?v6xs{>O#_4>F07Mi8y#N3J delta 21 ccmZ3=yp(xDFPDL?v4Mh-k(G(X#_4>F07Jk9xc~qF diff --git a/edx_notifications/locale/nl/LC_MESSAGES/django.po b/edx_notifications/locale/nl/LC_MESSAGES/django.po index 87e1dfc3..21cdd599 100644 --- a/edx_notifications/locale/nl/LC_MESSAGES/django.po +++ b/edx_notifications/locale/nl/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,10 @@ msgstr "" msgid "Other" msgstr "" +#: const.py:167 +msgid "Announcement" +msgstr "" + #: digests.py:200 msgid "Receive daily email" msgstr "" @@ -57,3 +61,8 @@ msgid "" "This setting will cause a weekly digest of all notifications to be sent to " "your registered email address" msgstr "" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/locale/pt/LC_MESSAGES/django.mo b/edx_notifications/locale/pt/LC_MESSAGES/django.mo index c3357cf66732915d9b3add2753032bd6c48920af..e204154fa027b289abaf5bce5142a2531a7ac14b 100644 GIT binary patch delta 23 ecmaFL`IK`*0uz^^u92mJp}Ccz(dI0sY9;_zy9R>* delta 23 ecmaFL`IK`*0uz^kuCalFk&%^&#pW!gY9;_zV+MZ! diff --git a/edx_notifications/locale/pt/LC_MESSAGES/django.po b/edx_notifications/locale/pt/LC_MESSAGES/django.po index a85a41c1..eb0bd15d 100644 --- a/edx_notifications/locale/pt/LC_MESSAGES/django.po +++ b/edx_notifications/locale/pt/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -38,6 +38,12 @@ msgstr "Discussões" msgid "Other" msgstr "" +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "Avisos" + #: digests.py:200 msgid "Receive daily email" msgstr "Receber e-mail diário" @@ -46,8 +52,9 @@ msgstr "Receber e-mail diário" msgid "" "This setting will cause a daily digest of all notifications to be sent to " "your registered email address" -msgstr "Esta configuração fará com que um resumo diário de todas as" - "notificações seja enviado para seu endereço de e-mail registrado" +msgstr "" +"Esta configuração fará com que um resumo diário de todas asnotificações seja " +"enviado para seu endereço de e-mail registrado" #: digests.py:210 msgid "Receive weekly email" @@ -57,5 +64,11 @@ msgstr "Receber e-mail semanal" msgid "" "This setting will cause a weekly digest of all notifications to be sent to " "your registered email address" -msgstr "Esta configuração fará com que um resumo semanal de todas" - "as notificações seja enviado para o seu endereço de e-mail cadastrado" +msgstr "" +"Esta configuração fará com que um resumo semanal de todasas notificações " +"seja enviado para o seu endereço de e-mail cadastrado" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/edx_notifications/locale/zh-ch/LC_MESSAGES/django.mo b/edx_notifications/locale/zh-cn/LC_MESSAGES/django.mo similarity index 96% rename from edx_notifications/locale/zh-ch/LC_MESSAGES/django.mo rename to edx_notifications/locale/zh-cn/LC_MESSAGES/django.mo index e87b922707bce373db9230031cbdf74a6db95a7f..2ebb9669d3423d7e019d6afc34dd9b0231b0e859 100644 GIT binary patch delta 23 ecmX@dagJj{0uz^^u92mJp}Ccz(dI0sCyW48ZU(ym delta 23 ecmX@dagJj{0uz^kuCalFk&%^&#pW!gCyW4876!Kf diff --git a/edx_notifications/locale/zh-ch/LC_MESSAGES/django.po b/edx_notifications/locale/zh-cn/LC_MESSAGES/django.po similarity index 85% rename from edx_notifications/locale/zh-ch/LC_MESSAGES/django.po rename to edx_notifications/locale/zh-cn/LC_MESSAGES/django.po index 701e6c12..b62ea944 100644 --- a/edx_notifications/locale/zh-ch/LC_MESSAGES/django.po +++ b/edx_notifications/locale/zh-cn/LC_MESSAGES/django.po @@ -8,7 +8,7 @@ msgid "" msgstr "" "Project-Id-Version: PACKAGE VERSION\n" "Report-Msgid-Bugs-To: \n" -"POT-Creation-Date: 2018-10-30 22:48+0500\n" +"POT-Creation-Date: 2018-11-29 17:12+0500\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "Last-Translator: FULL NAME \n" "Language-Team: LANGUAGE \n" @@ -37,6 +37,12 @@ msgstr "讨论" msgid "Other" msgstr "" +#: const.py:167 +#, fuzzy +#| msgid "Announcements" +msgid "Announcement" +msgstr "公告" + #: digests.py:200 msgid "Receive daily email" msgstr "接收每日电子邮件" @@ -56,3 +62,8 @@ msgid "" "This setting will cause a weekly digest of all notifications to be sent to " "your registered email address" msgstr "此设置将使所有通知的每周摘要都发送到您注册的电子邮件地址" + +#: stores/sql/models.py:145 +#, python-brace-format +msgid "Announcement on {annoucement_date}" +msgstr "" diff --git a/settings.py b/settings.py index 9a024737..81a537f0 100644 --- a/settings.py +++ b/settings.py @@ -65,7 +65,7 @@ ('es', u'Español'), ('nl', u'Dutch '), ('pt', u'Português'), - ('zh-ch', u'中文(简体)'), + ('zh-cn', u'中文(简体)'), ('fr', u'Français'), ('jp', u'日本人'), ('de', u'Deutsche'), diff --git a/testserver/bokchoy_settings.py b/testserver/bokchoy_settings.py index 06983267..4c954d4e 100644 --- a/testserver/bokchoy_settings.py +++ b/testserver/bokchoy_settings.py @@ -48,7 +48,7 @@ ('es', u'Español'), ('nl', u'Dutch '), ('pt', u'Português'), - ('zh-ch', u'中文(简体)'), + ('zh-cn', u'中文(简体)'), ('fr', u'Français'), ('jp', u'日本人'), ('de', u'Deutsche'), From 4cd2f7b67928b0b91305fd34683e79a48f38d334 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Tue, 4 Dec 2018 15:27:22 +0500 Subject: [PATCH 34/39] fixing version in setup.py --- settings.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/settings.py b/settings.py index 81a537f0..01e1ec65 100644 --- a/settings.py +++ b/settings.py @@ -4,6 +4,8 @@ Django settings file for local development purposes """ import sys +sys.setdefaultencoding('utf-8') +import sys # Build paths inside the project like this: os.path.join(BASE_DIR, ...) From 2e5fd9bbb97fa4cdd3ac3246d7878834426b8e94 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Tue, 4 Dec 2018 15:35:34 +0500 Subject: [PATCH 35/39] fixing version in setup.py --- .../locale/ar/LC_MESSAGES/django.mo | Bin 1595 -> 1696 bytes .../locale/ar/LC_MESSAGES/django.po | 5 +++++ 2 files changed, 5 insertions(+) diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.mo b/edx_notifications/locale/ar/LC_MESSAGES/django.mo index 3db308d166c51832f05df6f83b0f4d2bb0c78bcd..be9a9ca17eabae9f08973a588eb3160e9d5698f8 100644 GIT binary patch delta 353 zcmZY4%?bfg7{>84W_%4pGo+L_EbV0B23&%@d`xVN4W*Ekm8E2(Sh<0*Q|`bW$Q{_) z@*fQwZ$14^r_=Lx&hdk>xLevrFmaM2Gh&h(@kS~_B(aDkte}An)UoY5K(AwhL0n=A zSD3~<_V9##%mswFC}JU&93&TYjdHXxfm`$nkC;Ul3wXr{KCp^UtYMk0J8a_tU&t;I zB_Z;in15g`{WN;NPzmop#q|9qyfze>kwZsLTaGgvckF@fjGEon$ez1WvDDQ6yFO(L=A|dJuBn%Rp!D{GawCP~9H#Vz?NW{>4=qRz-T!Y<3Nc>Mz zCwcPAdB5M(zkA8MWuJwrksjHRfV_xS(-3K3fIbefilf3Adh`o)Fv2#ju!CFN;2vZA z;Dbb_NGOs>V2jk57^5CE$1W~$fH79^fD=686rXs*FQ$0qcFxV$>O=mekJaM7{F83p ZiLgz|`ZcQ Date: Tue, 4 Dec 2018 15:35:45 +0500 Subject: [PATCH 36/39] fixing version in setup.py --- edx_notifications/stores/sql/models.py | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index f5b9b752..e484b3f5 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -134,16 +134,16 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument def translate_payload_title(self, payload): announcement_date = payload['announcement_date'] - title = payload['title'] - title = title.split(" ") - print "///////////#######b4########//////////////////" - title = "{} {}".format(title[0], title[1]) - print (_(title)) - print (get_language()) - - title = "{} {}".format(_(title), announcement_date) - print "///////////#######after########//////////////////" - print title + + # print "///////////###############//////////////////" + # print (_(title[0])) + # print (title[0]) + # title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) + # print "///////////###############//////////////////" + # print (title) + + title = _('Announcement on {annoucement_date}').format(annoucement_date=announcement_date) + payload['title'] = title return payload From fee788e1bea4c7bd3cd8c9c3b6e50194bbf3762b Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Tue, 4 Dec 2018 16:48:08 +0500 Subject: [PATCH 37/39] announcement on strings fied --- edx_notifications/const.py | 4 ---- .../locale/ar/LC_MESSAGES/django.mo | Bin 1696 -> 1631 bytes .../locale/ar/LC_MESSAGES/django.po | 4 ---- .../locale/de/LC_MESSAGES/django.mo | Bin 1248 -> 1334 bytes .../locale/de/LC_MESSAGES/django.po | 8 +------- .../locale/es/LC_MESSAGES/django.mo | Bin 1332 -> 1413 bytes .../locale/es/LC_MESSAGES/django.po | 8 +------- .../locale/fr/LC_MESSAGES/django.mo | Bin 1265 -> 1346 bytes .../locale/fr/LC_MESSAGES/django.po | 8 +------- .../locale/ja/LC_MESSAGES/django.mo | Bin 1315 -> 1407 bytes .../locale/ja/LC_MESSAGES/django.po | 8 +------- .../locale/pt/LC_MESSAGES/django.mo | Bin 1253 -> 1335 bytes .../locale/pt/LC_MESSAGES/django.po | 8 +------- .../locale/zh-cn/LC_MESSAGES/django.mo | Bin 1102 -> 1179 bytes .../locale/zh-cn/LC_MESSAGES/django.po | 8 +------- settings.py | 4 ---- 16 files changed, 6 insertions(+), 54 deletions(-) diff --git a/edx_notifications/const.py b/edx_notifications/const.py index f655db41..22843fca 100644 --- a/edx_notifications/const.py +++ b/edx_notifications/const.py @@ -162,7 +162,3 @@ "NOTIFICATION_ENFORCE_SINGLE_DIGEST_PREFERENCE", True ) - -STRINGS_TO_TRANSLATE = [ - _("Announcement on"), -] diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.mo b/edx_notifications/locale/ar/LC_MESSAGES/django.mo index be9a9ca17eabae9f08973a588eb3160e9d5698f8..08aa037080a8c6319a1cf941f172aa83f75129dd 100644 GIT binary patch delta 289 zcmXxfI|{-;6ouiNWPB%LVj4jZ#RVt|7U}G5#SIJ!c4D6mSZZgH1=t1KtiUyB?H(-r zub2aeZ^BIGkp(Y5eMaUYq(%GmNJILdnvNqf!Vm+TV-uHuSLpM-!3tXJ;vQp6af@f% z;Rg$9U6Co%GBzS@Cf2AMS?u8f2YA9d-f)I@T;Ln8IONm}3uNElTD?day{twbsA*8n X7JiqSL?Rx8GF1lo#EHG!n#BDA96J^_ delta 328 zcmX}nyAHu%7{>9h2j??gBto&-Fm$mj%)M^_n1W&3wXjH-m#7kw6Ma}4R&ycPvn*e z5kL7&c=T}S1x8jN A;Q#;t diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index a4476410..b9c186bd 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -23,10 +23,6 @@ msgstr "" msgid "Announcements" msgstr "إعلانات" -#: const.py:167 -msgid "Announcement on" -msgstr "الإعلان عن المساق" - #: const.py:108 msgid "Group Work" msgstr "العمل الجماعي" diff --git a/edx_notifications/locale/de/LC_MESSAGES/django.mo b/edx_notifications/locale/de/LC_MESSAGES/django.mo index aa9167eac3c00c477646f45a2dcb6a371aea8827..30c213d67b0d8c98225b5a856de8dc03e8e7721b 100644 GIT binary patch delta 314 zcmZwBzY0Nd6u|Mr^*;<;N>MkvT^VHX5GLKYA^a?45T3#t*i2F^p227%vx&{EZwLH$%ReiaWM9QBHqpiw_RwG-uQ;T7 z(7(5{MA9N_x$r{|+)zL8MEx@#ET9zbkbA;CiBp8a#9Cscqjz+oKEg?n ohB1?w>3Cz$Or6}sI15)d{-WJ=r`~e^*aq{CJO1z_=q25kvy?Gjz3MFH~D` z;LxGCi=c1N|5e8x`1mCshXZ$&dB2T+@12=28B!(#k|S$k=16>UBBn1SF1!BKN6gaK zFpmu^U=us2v5Q;mlV?k$!vDe+NsGkt#Yc+b8}IN3OSs1ebRCf@KH(H!aE=G$o^VfY zh)a@$+8jQQd6XG*-wY>3>RN|G{i@!Sj=W;1y>VcgOVMfvk(w-bA66yMZ1qA<4gT5q I9NC-1A2Km8tpET3 delta 240 zcmX}mI|{-;6h`5H^6(K8ki<%?#mWu18bMHS19p*a?Vl9U>*pI|3Z0Z;iai|S94ENI6D}$Cq!#;? zFEug8t~Aw_MW2HMj_`_OtZ|1)AeDGT?oos6XG7vheD=K<{$mf=@TRKF?Y-*m-`oe~ C0u@mJ diff --git a/edx_notifications/locale/es/LC_MESSAGES/django.po b/edx_notifications/locale/es/LC_MESSAGES/django.po index 17d20407..d2ddd52b 100644 --- a/edx_notifications/locale/es/LC_MESSAGES/django.po +++ b/edx_notifications/locale/es/LC_MESSAGES/django.po @@ -38,12 +38,6 @@ msgstr "Debates" msgid "Other" msgstr "" -#: const.py:167 -#, fuzzy -#| msgid "Announcements" -msgid "Announcement" -msgstr "Anuncios" - #: digests.py:200 msgid "Receive daily email" msgstr "Recibir a diario por correo electrónico" @@ -71,4 +65,4 @@ msgstr "" #: stores/sql/models.py:145 #, python-brace-format msgid "Announcement on {annoucement_date}" -msgstr "" +msgstr "anuncio el {annoucement_date}" diff --git a/edx_notifications/locale/fr/LC_MESSAGES/django.mo b/edx_notifications/locale/fr/LC_MESSAGES/django.mo index a4b044ff71ab8bf97057534728bd872a0ad83986..0f07a016b0cd0b8aa8e91f86edb043a914d09b8d 100644 GIT binary patch delta 321 zcmZvXyAAa5ZQ|DExx>2c2kXR9cOW_yg1$>zXO; zWM$p6b8?dV4xPe_d%|1`2}2eJ5Q78gyr2kg(0$5qc8jh{I7(l}NnFP%+`wI|a1UQ` zAF3Xa9P`#I5)@g;nMZ`;g5&t+&QF|Y{@?=6m?BGD!7F^k+!O9e2>jp!YJK<@{VAP* vBjJ=tO{vjDwe6v;##VZytXWGpPSNbN#`b*o*m!cfWz8Dce>V10@67lD{*5st delta 240 zcmX}my$ZrG7)IeY{ZU)%VCz@}m)?X|BM6GP3odqWbQL$3ZsOKEaMGJ7Iy;D~lP41V z;P5mFB)!D%Xw#&@UQ9$eO{qs`vU4Z9eo#y==LZuCjg(=E11xZcW1M4!3rakx!+PaQ zT`aLLO|)|xM;vl+!V%uE#3ycX8A#lt7TKQ-i7j#byBPk{c3-@yIx`2azWQtP1!{Y2hw>!Is-^w1JWr#Y|q5NpaJABVFv4~XE+OCFx&#tqCkn~Kw1b$ z{{_-2Kw5x>fk6vMn*!+xKso_P_X6pUKpJQs1JFDMP9SCjVpbpq3Nvs3F$jP>1p@34 ziUDXO1A}8;UVdp_a%ygBUWtNeex5>gB1i-x5TBA*l3Kg*!DJ@2)sGvOJZ@}x+_>y< U42Rl8ezJHW$-biiImUjS$e*1#|!r1jzuB)G3A`T(}@fC!=gH!DwNVjfo zE^d}C?)nD)FX`9=AHRD)E(h+RvU0PZhBFt&CAZ{_)W{bxb0i@-5z~8C{x9(_!b&$vYRL-)9ZC8sFWI&$eK{Bqd+CXO=zfe+luHU?m#Ij*-PLK z{EwM(-{i?}&XaTAWG<;~dU?;s)?zZGM1Dw)oQRzV@yL_dz8DGadZA^^(pRv64J={@ z2WW7JSFDk$BYkmRMWuwa)F$}Q4(*~}Oydzh@f>=?Hs@z(GbXW5?0es5nc{?6DPqU| sl$~UNcq-M68PCkOKl07g{TLf}-m^_mbo;%jzu5mxoWei-p%rx^FCz9UQ~&?~ delta 239 zcmYk#Jr06E5J2JKPk}%K78cfCf`$v&(OH?8Kn(}*0F=hch6GDH?!gfVoPb(ve5+eH z$;-zO*u8tbdl@48CX7crI#WnbQZtg;C-Q05E*Owwh{PD-2KSg_f(5piQecX#*bmmv v4Eg^gM;_GW1#Yp_)|jzBv@hhG?;+}Yhiu}txb#13y>O>=u~C`V#(IAMXgw4Q diff --git a/edx_notifications/locale/zh-cn/LC_MESSAGES/django.po b/edx_notifications/locale/zh-cn/LC_MESSAGES/django.po index b62ea944..153730e0 100644 --- a/edx_notifications/locale/zh-cn/LC_MESSAGES/django.po +++ b/edx_notifications/locale/zh-cn/LC_MESSAGES/django.po @@ -37,12 +37,6 @@ msgstr "讨论" msgid "Other" msgstr "" -#: const.py:167 -#, fuzzy -#| msgid "Announcements" -msgid "Announcement" -msgstr "公告" - #: digests.py:200 msgid "Receive daily email" msgstr "接收每日电子邮件" @@ -66,4 +60,4 @@ msgstr "此设置将使所有通知的每周摘要都发送到您注册的电子 #: stores/sql/models.py:145 #, python-brace-format msgid "Announcement on {annoucement_date}" -msgstr "" +msgstr "公告 {annoucement_date}" diff --git a/settings.py b/settings.py index 01e1ec65..0e05de2f 100644 --- a/settings.py +++ b/settings.py @@ -3,10 +3,6 @@ """ Django settings file for local development purposes """ -import sys -sys.setdefaultencoding('utf-8') -import sys - # Build paths inside the project like this: os.path.join(BASE_DIR, ...) import os From ef3cb87fc37a582bd7f0d6b006dd5b7f66ac2ea3 Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Tue, 4 Dec 2018 16:54:07 +0500 Subject: [PATCH 38/39] small nit --- .../locale/ar/LC_MESSAGES/django.mo | Bin 1631 -> 1622 bytes .../locale/ar/LC_MESSAGES/django.po | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.mo b/edx_notifications/locale/ar/LC_MESSAGES/django.mo index 08aa037080a8c6319a1cf941f172aa83f75129dd..216c79ff7162b6ab259c7f9f7e0f0f00b3900824 100644 GIT binary patch delta 97 zcmcc5bB$+0jjsj+1A__+0|OtB_65>BKsp9UO9JUkAT1B1n}IY3kX{U=je+zUAZ-q$ f9{}k&Kw5&8fnfoV-n#K*12c2W&CboCEL=r* diff --git a/edx_notifications/locale/ar/LC_MESSAGES/django.po b/edx_notifications/locale/ar/LC_MESSAGES/django.po index b9c186bd..8bb9b94c 100644 --- a/edx_notifications/locale/ar/LC_MESSAGES/django.po +++ b/edx_notifications/locale/ar/LC_MESSAGES/django.po @@ -67,4 +67,4 @@ msgstr "" #, python-brace-format #| msgid "Announcement on {annoucement_date}" msgid "Announcement on {annoucement_date}" -msgstr "{annoucement_date} الإعلان عن المسا" \ No newline at end of file +msgstr "{annoucement_date} الإعلان على" \ No newline at end of file From c7d1b513f0a592699628d86254af4bded7ec230f Mon Sep 17 00:00:00 2001 From: hamzamunir7300 Date: Wed, 5 Dec 2018 13:33:48 +0500 Subject: [PATCH 39/39] small nit --- .../{zh-cn => zh_CN}/LC_MESSAGES/django.mo | Bin .../{zh-cn => zh_CN}/LC_MESSAGES/django.po | 0 edx_notifications/stores/sql/models.py | 16 ++++------------ 3 files changed, 4 insertions(+), 12 deletions(-) rename edx_notifications/locale/{zh-cn => zh_CN}/LC_MESSAGES/django.mo (100%) rename edx_notifications/locale/{zh-cn => zh_CN}/LC_MESSAGES/django.po (100%) diff --git a/edx_notifications/locale/zh-cn/LC_MESSAGES/django.mo b/edx_notifications/locale/zh_CN/LC_MESSAGES/django.mo similarity index 100% rename from edx_notifications/locale/zh-cn/LC_MESSAGES/django.mo rename to edx_notifications/locale/zh_CN/LC_MESSAGES/django.mo diff --git a/edx_notifications/locale/zh-cn/LC_MESSAGES/django.po b/edx_notifications/locale/zh_CN/LC_MESSAGES/django.po similarity index 100% rename from edx_notifications/locale/zh-cn/LC_MESSAGES/django.po rename to edx_notifications/locale/zh_CN/LC_MESSAGES/django.po diff --git a/edx_notifications/stores/sql/models.py b/edx_notifications/stores/sql/models.py index e484b3f5..8a1f027d 100644 --- a/edx_notifications/stores/sql/models.py +++ b/edx_notifications/stores/sql/models.py @@ -133,18 +133,10 @@ def to_data_object(self, options=None): # pylint: disable=unused-argument return msg def translate_payload_title(self, payload): - announcement_date = payload['announcement_date'] - - # print "///////////###############//////////////////" - # print (_(title[0])) - # print (title[0]) - # title = "{} {} {} {} {}".format(_(title[0]), _(title[1]), title[2], title[3], title[4]) - # print "///////////###############//////////////////" - # print (title) - - title = _('Announcement on {annoucement_date}').format(annoucement_date=announcement_date) - - payload['title'] = title + if payload and 'notification_type' in payload and payload['notification_type'] == "courseannouncement": + announcement_date = payload['announcement_date'] + title = _('Announcement on {annoucement_date}').format(annoucement_date=announcement_date) + payload['title'] = title return payload @classmethod