From afc92e379ca9a76fe6843326a58113664556ffc3 Mon Sep 17 00:00:00 2001 From: musmanmalik Date: Wed, 23 Sep 2020 13:08:59 +0500 Subject: [PATCH 1/4] missing translations added --- .../public/js/translations/de_DE/textjs.js | 6 +- .../public/js/translations/es_419/textjs.js | 6 +- .../public/js/translations/pl_PL/textjs.js | 6 +- .../public/js/translations/pt_BR/textjs.js | 70 +++++++------ .../public/js/translations/zh_CN/textjs.js | 6 +- .../translations/ar/LC_MESSAGES/text.mo | Bin 2759 -> 5159 bytes .../translations/ar/LC_MESSAGES/text.po | 94 ++++++------------ .../translations/de_DE/LC_MESSAGES/textjs.mo | Bin 1120 -> 1377 bytes .../translations/de_DE/LC_MESSAGES/textjs.po | 10 +- .../translations/es_419/LC_MESSAGES/textjs.mo | Bin 1124 -> 1356 bytes .../translations/es_419/LC_MESSAGES/textjs.po | 10 +- .../translations/pl_PL/LC_MESSAGES/textjs.mo | Bin 1368 -> 1599 bytes .../translations/pl_PL/LC_MESSAGES/textjs.po | 12 +-- .../translations/pt_BR/LC_MESSAGES/textjs.mo | Bin 1118 -> 1330 bytes .../translations/pt_BR/LC_MESSAGES/textjs.po | 4 +- .../translations/zh_CN/LC_MESSAGES/textjs.mo | Bin 1016 -> 1260 bytes .../translations/zh_CN/LC_MESSAGES/textjs.po | 9 +- setup.py | 2 +- 18 files changed, 112 insertions(+), 123 deletions(-) diff --git a/problem_builder/public/js/translations/de_DE/textjs.js b/problem_builder/public/js/translations/de_DE/textjs.js index 6b59c96b..125d7d2b 100644 --- a/problem_builder/public/js/translations/de_DE/textjs.js +++ b/problem_builder/public/js/translations/de_DE/textjs.js @@ -30,7 +30,11 @@ "Ergebnisse am <%= creation_time %> (<%= seconds %> second) abgerufen", "Ergebnisse am <%= creation_time %> (<%= seconds %> second) abgerufen." ], - "The report is currently being generated\u2026": "Der Report wird gerade zusammengestellt\u2026" + "The report is currently being generated\u2026": "Der Report wird gerade zusammengestellt\u2026", + "You have used {num_used} of 1 submission.": [ + "Sie haben {num_used} von einer Einreichung verwendet.", + "Sie haben {num_used} von {max_attempts} Einreichungen verwendet. " + ] }; for (var key in newcatalog) { django.catalog[key] = newcatalog[key]; diff --git a/problem_builder/public/js/translations/es_419/textjs.js b/problem_builder/public/js/translations/es_419/textjs.js index d4a52b94..d5a969f6 100644 --- a/problem_builder/public/js/translations/es_419/textjs.js +++ b/problem_builder/public/js/translations/es_419/textjs.js @@ -30,7 +30,11 @@ "Resultados obtenidos en <%= creation_time %> (<%= seconds %> second).", "Resultados obtenidos en <%= creation_time %> (<%= seconds %> seconds)." ], - "The report is currently being generated\u2026": "El informe se est\u00e1 generando..." + "The report is currently being generated\u2026": "El informe se est\u00e1 generando...", + "You have used {num_used} of 1 submission.": [ + "Ha utilizado {num_used} de 1 presentaci\u00f3n.", + "Ha utilizado {num_used} de {max_attempts} presentaciones." + ] }; for (var key in newcatalog) { django.catalog[key] = newcatalog[key]; diff --git a/problem_builder/public/js/translations/pl_PL/textjs.js b/problem_builder/public/js/translations/pl_PL/textjs.js index 4dd91667..2321160e 100644 --- a/problem_builder/public/js/translations/pl_PL/textjs.js +++ b/problem_builder/public/js/translations/pl_PL/textjs.js @@ -32,7 +32,11 @@ "Rezultaty pobrano <%= creation_time %> (<%= seconds %> sekund).", "Rezultaty pobrano <%= creation_time %> (<%= seconds %> sekund)." ], - "The report is currently being generated\u2026": "Generujemy raport..." + "The report is currently being generated\u2026": "Generujemy raport...", + "You have used {num_used} of 1 submission.": [ + "Wykorzysta\u0142e\u015b {num_used} z 1 zg\u0142oszenia.", + "Wykorzysta\u0142e\u015b {num_used} z {max_attempts} zg\u0142osze\u0144. " + ] }; for (var key in newcatalog) { django.catalog[key] = newcatalog[key]; diff --git a/problem_builder/public/js/translations/pt_BR/textjs.js b/problem_builder/public/js/translations/pt_BR/textjs.js index 147d780e..cf225c94 100644 --- a/problem_builder/public/js/translations/pt_BR/textjs.js +++ b/problem_builder/public/js/translations/pt_BR/textjs.js @@ -24,13 +24,17 @@ django.catalog = django.catalog || {}; var newcatalog = { - "All": "Tudo", - "Data export failed. Reason: <%= error %>": "Falha na exporta\u00e7\u00e3o de dados. Motivo: <%= error %>", + "All": "Tudo", + "Data export failed. Reason: <%= error %>": "Falha na exporta\u00e7\u00e3o de dados. Motivo: <%= error %>", "Results retrieved on <%= creation_time %> (<%= seconds %> second).": [ - "Resultados recuperados em <%= creation_time %> (<%= seconds %> segundo).", + "Resultados recuperados em <%= creation_time %> (<%= seconds %> segundo).", "Resultados recuperados em <%= creation_time %> (<%= seconds %> segundos)." - ], - "The report is currently being generated\u2026": "O relat\u00f3rio est\u00e1 sendo gerado..." + ], + "The report is currently being generated\u2026": "O relat\u00f3rio est\u00e1 sendo gerado...", + "You have used {num_used} of 1 submission.": [ + "Voc\u00ea usou {num_used} de 1 envio.", + "Voc\u00ea usou {num_used} de {max_attempts} envios." + ] }; for (var key in newcatalog) { django.catalog[key] = newcatalog[key]; @@ -86,40 +90,40 @@ /* formatting library */ django.formats = { - "DATETIME_FORMAT": "j \\d\\e F \\d\\e Y \u00e0\\s H:i", + "DATETIME_FORMAT": "j \\d\\e F \\d\\e Y \u00e0\\s H:i", "DATETIME_INPUT_FORMATS": [ - "%d/%m/%Y %H:%M:%S", - "%d/%m/%Y %H:%M:%S.%f", - "%d/%m/%Y %H:%M", - "%d/%m/%Y", - "%d/%m/%y %H:%M:%S", - "%d/%m/%y %H:%M:%S.%f", - "%d/%m/%y %H:%M", - "%d/%m/%y", - "%Y-%m-%d %H:%M:%S", - "%Y-%m-%d %H:%M:%S.%f", - "%Y-%m-%d %H:%M", + "%d/%m/%Y %H:%M:%S", + "%d/%m/%Y %H:%M:%S.%f", + "%d/%m/%Y %H:%M", + "%d/%m/%Y", + "%d/%m/%y %H:%M:%S", + "%d/%m/%y %H:%M:%S.%f", + "%d/%m/%y %H:%M", + "%d/%m/%y", + "%Y-%m-%d %H:%M:%S", + "%Y-%m-%d %H:%M:%S.%f", + "%Y-%m-%d %H:%M", "%Y-%m-%d" - ], - "DATE_FORMAT": "j \\d\\e F \\d\\e Y", + ], + "DATE_FORMAT": "j \\d\\e F \\d\\e Y", "DATE_INPUT_FORMATS": [ - "%d/%m/%Y", - "%d/%m/%y", + "%d/%m/%Y", + "%d/%m/%y", "%Y-%m-%d" - ], - "DECIMAL_SEPARATOR": ",", - "FIRST_DAY_OF_WEEK": "0", - "MONTH_DAY_FORMAT": "j \\d\\e F", - "NUMBER_GROUPING": "3", - "SHORT_DATETIME_FORMAT": "d/m/Y H:i", - "SHORT_DATE_FORMAT": "d/m/Y", - "THOUSAND_SEPARATOR": ".", - "TIME_FORMAT": "H:i", + ], + "DECIMAL_SEPARATOR": ",", + "FIRST_DAY_OF_WEEK": "0", + "MONTH_DAY_FORMAT": "j \\d\\e F", + "NUMBER_GROUPING": "3", + "SHORT_DATETIME_FORMAT": "d/m/Y H:i", + "SHORT_DATE_FORMAT": "d/m/Y", + "THOUSAND_SEPARATOR": ".", + "TIME_FORMAT": "H:i", "TIME_INPUT_FORMATS": [ - "%H:%M:%S", - "%H:%M:%S.%f", + "%H:%M:%S", + "%H:%M:%S.%f", "%H:%M" - ], + ], "YEAR_MONTH_FORMAT": "F \\d\\e Y" }; diff --git a/problem_builder/public/js/translations/zh_CN/textjs.js b/problem_builder/public/js/translations/zh_CN/textjs.js index 9340e23e..ab4d3f64 100644 --- a/problem_builder/public/js/translations/zh_CN/textjs.js +++ b/problem_builder/public/js/translations/zh_CN/textjs.js @@ -29,7 +29,11 @@ "Results retrieved on <%= creation_time %> (<%= seconds %> second).": [ "<%= creation_time %> (<%= seconds %> second) \u65f6\u68c0\u7d22\u5230\u7684\u7ed3\u679c\u3002" ], - "The report is currently being generated\u2026": "\u76ee\u524d\u6b63\u5728\u751f\u6210\u62a5\u544a\u2026" + "The report is currently being generated\u2026": "\u76ee\u524d\u6b63\u5728\u751f\u6210\u62a5\u544a\u2026", + "You have used {num_used} of 1 submission.": [ + "\u60a8\u5df2\u4f7f\u7528 {num_used} \u6b21\u63d0\u4ea4\uff08\u5171 1 \u6b21\uff09\u3002", + "\u60a8\u5df2\u4f7f\u7528 {num_used} \u6b21\u63d0\u4ea4\uff08\u5171 {max_attempts} \u6b21\uff09" + ] }; for (var key in newcatalog) { django.catalog[key] = newcatalog[key]; diff --git a/problem_builder/translations/ar/LC_MESSAGES/text.mo b/problem_builder/translations/ar/LC_MESSAGES/text.mo index d90fb32056da950f3361fc2515f1e0c91d2fdbfe..5e5c85ad25b39db8a50a2069f844427826d96f46 100644 GIT binary patch literal 5159 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, YEAR. -# +# # Translators: # 6e68c7971a89e50e680ae9444d303c8f, 2019 # Ahmad AbdArrahman , 2019 @@ -16,7 +16,7 @@ # shefaa abu jabel , 2019 # Roy Zakka, 2019 # Sahbi BG , 2019 -# +# #, fuzzy msgid "" msgstr "" @@ -372,15 +372,15 @@ msgstr "" #: instructor_tool.py:58 templates/html/instructor_tool.html:2 msgid "Instructor Tool" -msgstr "" +msgstr "أداة المعلم" #: instructor_tool.py:137 mcq.py:53 msgid "Multiple Choice Question" -msgstr "" +msgstr "سؤال متعدد الاختيارات" #: instructor_tool.py:138 mrq.py:51 msgid "Multiple Response Question" -msgstr "" +msgstr "سؤال متعدد الإجابات" #: instructor_tool.py:139 mcq.py:198 msgid "Rating Question" @@ -1221,19 +1221,19 @@ msgstr "" #: templates/html/instructor_tool.html:12 msgid "Username[s]:" -msgstr "" +msgstr "اسم المستخدم (أسماء المستخدمين):" #: templates/html/instructor_tool.html:13 msgid "Enter one or more usernames, comma separated." -msgstr "" +msgstr "أدخل اسم مستخدم واحد أو أكثر، مفصولاً بفاصلة." #: templates/html/instructor_tool.html:20 msgid "Text:" -msgstr "" +msgstr "النص:" #: templates/html/instructor_tool.html:30 msgid "Section/Question:" -msgstr "" +msgstr "القسم/السؤال:" #: templates/html/instructor_tool.html:32 #: templates/html/instructor_tool.html:42 @@ -1242,7 +1242,7 @@ msgstr "الكل" #: templates/html/instructor_tool.html:40 msgid "Problem types:" -msgstr "" +msgstr "أنواع المشكلة:" #: templates/html/instructor_tool.html:51 msgid "Search" @@ -1270,7 +1270,7 @@ msgstr "اسم المستخدم" #: templates/html/instructor_tool.html:74 msgid "First" -msgstr "" +msgstr "الأول" #: templates/html/instructor_tool.html:75 msgid "Prev" @@ -1282,19 +1282,19 @@ msgstr "التالي" #: templates/html/instructor_tool.html:78 msgid "Last" -msgstr "" +msgstr "الأخير" #: templates/html/instructor_tool.html:85 msgid "Download as CSV" -msgstr "" +msgstr "تنزيل بتنسيق CSV" #: templates/html/instructor_tool.html:86 msgid "Cancel search" -msgstr "" +msgstr "إلغاء البحث" #: templates/html/instructor_tool.html:87 msgid "Delete results" -msgstr "" +msgstr "حذف النتائج" #: templates/html/mentoring-column-add-button.html:6 msgid "Add HTML" @@ -1361,7 +1361,7 @@ msgstr "تقديم" #: templates/html/mentoring.html:47 #: templates/html/mentoring_with_steps.html:31 msgid "Review final grade" -msgstr "" +msgstr "راجع الدرجة الأخيرة" #: templates/html/mentoring.html:51 #: templates/html/mentoring_with_steps.html:35 @@ -1475,16 +1475,16 @@ msgstr "" msgid "" "You might consider reviewing the following items before your next assessment" " attempt:" -msgstr "" +msgstr "ربما عليك التفكير في مراجعة العناصر التالية قبل محاولة التقييم التالية:" #: templates/html/sb-review-score.html:5 #, python-format msgid "You scored %(score)s%% on this assessment. " -msgstr "" +msgstr "أحرزت نتيجة %(score)s%% في هذا التقييم." #: templates/html/sb-review-score.html:8 msgid "Click a question to review feedback on your response." -msgstr "" +msgstr "انقر على سؤال لمراجعة التعليقات على إجابتك." #: templates/html/sb-review-score.html:12 msgid "Note: This is an example score, to show how the review step will look." @@ -1492,20 +1492,10 @@ msgstr "" #: templates/html/sb-review-score.html:20 #, python-format -msgid "" -"\n" -" You answered 1 question correctly.\n" -" " -msgid_plural "" -"\n" -" You answered %(correct_answers)s questions correctly.\n" -" " -msgstr[0] "" -msgstr[1] "" -msgstr[2] "" -msgstr[3] "" -msgstr[4] "" -msgstr[5] "" +msgid "You answered 1 question correctly." +msgid_plural "You answered %(correct_answers)s questions correctly." +msgstr[0] "جاوبت عن سؤال واحد بشكل صحيح." +msgstr[1] "جاوبت عن %(correct_answers)s من الأسئلة بشكل صحيح." #: templates/html/sb-review-score.html:30 #: templates/html/sb-review-score.html:53 @@ -1518,41 +1508,21 @@ msgstr "و" #: templates/html/sb-review-score.html:77 #, python-format msgid "Question %(number)s" -msgstr "" +msgstr "السؤال %(number)s" #: templates/html/sb-review-score.html:43 #, python-format -msgid "" -"\n" -" You answered 1 question partially correctly.\n" -" " -msgid_plural "" -"\n" -" You answered %(partially_correct_answers)s questions partially correctly.\n" -" " -msgstr[0] "" -msgstr[1] "" -msgstr[2] "" -msgstr[3] "" -msgstr[4] "" -msgstr[5] "" +msgid "You answered 1 question partially correctly." +msgid_plural "You answered %(partially_correct_answers)s questions partially correctly." +msgstr[0] "جاوبت عن سؤال واحد بشكل صحيح جزئيًا." +msgstr[1] "جاوبت عن %(partially_correct_answers)s من الأسئلة بشكل صحيح جزئيًا." #: templates/html/sb-review-score.html:66 #, python-format -msgid "" -"\n" -" You answered 1 question incorrectly.\n" -" " -msgid_plural "" -"\n" -" You answered %(incorrect_answers)s questions incorrectly.\n" -" " -msgstr[0] "" -msgstr[1] "" -msgstr[2] "" -msgstr[3] "" -msgstr[4] "" -msgstr[5] "" +msgid "You answered 1 question incorrectly." +msgid_plural "You answered %(incorrect_answers)s questions incorrectly." +msgstr[0] "جاوبت عن سؤال واحد بشكل غير صحيح." +msgstr[1] "جاوبت عن %(incorrect_answers)s من الأسئلة بشكل غير صحيح." #: templates/html/slider_edit_footer.html:3 msgid "ID for referencing this slider:" diff --git a/problem_builder/translations/de_DE/LC_MESSAGES/textjs.mo b/problem_builder/translations/de_DE/LC_MESSAGES/textjs.mo index 1ffa9ffefb3416bca367154f147d40b1cd199082..ce11a4bd4f359f64a5a73f61b7ef7aeb7a30d6ca 100644 GIT binary patch delta 401 zcmaFB@sO+jo)F7a1|VPqVi_Rz0b*_-t^r~YSOLV$K)e!&HGp_65VryGH6Ydk;#fuo zhD0FU0i>Ck7#LmwX%-;=9Z-`6kp2v$yMVL~P!ObkJCLpe(vN^NP^l8wVjv$3Ko)^C zg8, 2019. -# +# # #-#-#-#-# djangojs-partial.po (PACKAGE VERSION) #-#-#-#-# # 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. -# +# # Translators: # Omar Al-Ithawi , 2019 -# +# #, fuzzy msgid "" msgstr "" @@ -33,8 +33,8 @@ msgstr "" #: templates/html/mentoring_attempts.underscore:5 msgid "You have used {num_used} of 1 submission." msgid_plural "You have used {num_used} of {max_attempts} submissions." -msgstr[0] "" -msgstr[1] "" +msgstr[0] "Sie haben {num_used} von einer Einreichung verwendet." +msgstr[1] "Sie haben {num_used} von {max_attempts} Einreichungen verwendet. " #: public/js/instructor_tool.js:349 msgid "All" diff --git a/problem_builder/translations/es_419/LC_MESSAGES/textjs.mo b/problem_builder/translations/es_419/LC_MESSAGES/textjs.mo index 8ca0a3208f2c3daca05496718dde68d744fb03b6..40ca11a907cfb49b8e21bd82b6541d1a38cd15c9 100644 GIT binary patch delta 376 zcmaFDafYk@o)F7a1|VPqVi_Rz0b*_-t^r~YSOLV$K)e!&HGp_65VryGH6Ydk;#fuo zhD0FU0i=1D7#LmwX%-;=J5ZA~kp2Utdw{eBP*4F#9|h8>K>8Vw1}aqoTMXob0mved zW)J|H#lQ+;Ol*9f7@1$HkdauHs!&>-nxashSDG6SV$~|-rzsdJ6qhFDW)>G`=I7}# z;8R(hn^+N_SW=RjTToJ5i=?esZ*w~1U#2vVM1|6l%$&@s#FTtwTT)ViwiFbl7N_Qw YBqnDb-VC$|k6JW)5E}FIQj7H%0OHMHtpET3 delta 143 zcmX@Z^@OATo)F7a1|VPsVi_QI0b+I_&H-W&=m277AnpWW4Iu6X;x-`O2E1*Cg`^fn-^0HmFPl0YS30J00H1!OK01IxsP&o{qf{KEtQ DXPFQ! diff --git a/problem_builder/translations/es_419/LC_MESSAGES/textjs.po b/problem_builder/translations/es_419/LC_MESSAGES/textjs.po index 96397423..379e6131 100644 --- a/problem_builder/translations/es_419/LC_MESSAGES/textjs.po +++ b/problem_builder/translations/es_419/LC_MESSAGES/textjs.po @@ -3,16 +3,16 @@ # Copyright (C) 2019 ORGANIZATION # This file is distributed under the same license as the PROJECT project. # FIRST AUTHOR , 2019. -# +# # #-#-#-#-# djangojs-partial.po (PACKAGE VERSION) #-#-#-#-# # 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. -# +# # Translators: # Omar Al-Ithawi , 2019 -# +# #, fuzzy msgid "" msgstr "" @@ -33,8 +33,8 @@ msgstr "" #: templates/html/mentoring_attempts.underscore:5 msgid "You have used {num_used} of 1 submission." msgid_plural "You have used {num_used} of {max_attempts} submissions." -msgstr[0] "" -msgstr[1] "" +msgstr[0] "Ha utilizado {num_used} de 1 presentación." +msgstr[1] "Ha utilizado {num_used} de {max_attempts} presentaciones." #: public/js/instructor_tool.js:349 msgid "All" diff --git a/problem_builder/translations/pl_PL/LC_MESSAGES/textjs.mo b/problem_builder/translations/pl_PL/LC_MESSAGES/textjs.mo index d1e4c120dc1b3da209c2378a16ca72b1e3986f4c..dd93b25eb5dc0cc83d2e162c8e2c0151b2511661 100644 GIT binary patch delta 375 zcmcb?wV$W{o)F7a1|VPqVi_Rz0b*_-t^r~YSOLV$K)e!&HGp_65VryGH6Ydk;#fuo zhD0FU0i>reF)+LW(wsnkJqrVa6_D-((hNYcBS2aN$UMr*z>or@ZvknbuoBo}ARi1s z7J<}*0MIN3pc)2-iH*+_BlAlYG7`&D6-tX!QxvN6N^|2utXhTqGzCM2;?ktt%;MtA z{5(Add@8GR6D#5qOG;963rdP>k+c=-ZBA$W$ebEpnVnx$Rasn;c(f_?=xk(*s(|)X cr5|m|FRn_>%S_Z`z^fL`CYZ*fEqV$J0MkEXg8%>k delta 143 zcmdnbbAzk?o)F7a1|VPsVi_QI0b+I_&H-W&=m277AnpWW4Iu6X;x-`O2E, 2019. -# +# # #-#-#-#-# djangojs-partial.po (PACKAGE VERSION) #-#-#-#-# # 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. -# +# # Translators: # Omar Al-Ithawi , 2019 -# +# #, fuzzy msgid "" msgstr "" @@ -33,10 +33,8 @@ msgstr "" #: templates/html/mentoring_attempts.underscore:5 msgid "You have used {num_used} of 1 submission." msgid_plural "You have used {num_used} of {max_attempts} submissions." -msgstr[0] "" -msgstr[1] "" -msgstr[2] "" -msgstr[3] "" +msgstr[0] "Wykorzystałeś {num_used} z 1 zgłoszenia." +msgstr[1] "Wykorzystałeś {num_used} z {max_attempts} zgłoszeń. " #: public/js/instructor_tool.js:349 msgid "All" diff --git a/problem_builder/translations/pt_BR/LC_MESSAGES/textjs.mo b/problem_builder/translations/pt_BR/LC_MESSAGES/textjs.mo index 04a9a146d845b60067f7a56eb21c3c26c6d11c87..82d452c43375aa5db30ddeb613ccb58e26665b17 100644 GIT binary patch delta 356 zcmcb|v5Bkxo)F7a1|VPqVi_Rz0b*_-t^r~YSOLV$K)e!&HGp_65VryGH6Ydk;#fuo zhD0FU0i;=(7#LmwX%-;=15lF*kp2p!Cjn_Kpr8_v-V3Ayf%F3)4OFTGwiw6<1CT`^ z%^(0Yi-8rynArF{F*3hYAtSLYRiU&vHASI1uQWFv#Hv-uPg5{dC@xLP%`7g?%+J$f zz^Af0H?bl~0<8p!yx-ILxS@%GSUqT#LkwU50NL$&@c;k- delta 143 zcmaFE`GdXwo)F7a1|VPsVi_QI0b+I_&H-W&=m277AnpWW4Iu6X;x-`O2E3w^;=<>fUolQ#0sy-& B5Z(X) diff --git a/problem_builder/translations/zh_CN/LC_MESSAGES/textjs.po b/problem_builder/translations/zh_CN/LC_MESSAGES/textjs.po index 9d25d81e..41156880 100644 --- a/problem_builder/translations/zh_CN/LC_MESSAGES/textjs.po +++ b/problem_builder/translations/zh_CN/LC_MESSAGES/textjs.po @@ -3,17 +3,17 @@ # Copyright (C) 2019 ORGANIZATION # This file is distributed under the same license as the PROJECT project. # FIRST AUTHOR , 2019. -# +# # #-#-#-#-# djangojs-partial.po (PACKAGE VERSION) #-#-#-#-# # 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. -# +# # Translators: # HYY , 2019 # Omar Al-Ithawi , 2019 -# +# #, fuzzy msgid "" msgstr "" @@ -34,7 +34,8 @@ msgstr "" #: templates/html/mentoring_attempts.underscore:5 msgid "You have used {num_used} of 1 submission." msgid_plural "You have used {num_used} of {max_attempts} submissions." -msgstr[0] "" +msgstr[0] "您已使用 {num_used} 次提交(共 1 次)。" +msgstr[1] "您已使用 {num_used} 次提交(共 {max_attempts} 次)" #: public/js/instructor_tool.js:349 msgid "All" diff --git a/setup.py b/setup.py index 4f342222..60ad28a1 100644 --- a/setup.py +++ b/setup.py @@ -28,7 +28,7 @@ # Constants ######################################################### -VERSION = '3.5.2' +VERSION = '3.5.3' # Functions ######################################################### From 6e555b9b99319f0e19c6fe6ba2e0ff66fa8e35bf Mon Sep 17 00:00:00 2001 From: musmanmalik Date: Wed, 23 Sep 2020 16:52:10 +0500 Subject: [PATCH 2/4] missing translations --- .../translations/ar/LC_MESSAGES/text.mo | Bin 5159 -> 5399 bytes .../translations/ar/LC_MESSAGES/text.po | 60 ++++++++++++++---- 2 files changed, 48 insertions(+), 12 deletions(-) diff --git a/problem_builder/translations/ar/LC_MESSAGES/text.mo b/problem_builder/translations/ar/LC_MESSAGES/text.mo index 5e5c85ad25b39db8a50a2069f844427826d96f46..1c60eea6bf5799543f9441f7654e966cd0dfaaaa 100644 GIT binary patch delta 1889 zcmZ|POGs2v9LMpa`MQpk?=&^XG8>=REFt+;h*JanEScaK7)fF(xm@ zn6r2rZ(?DrF$?eoQf1yCKQql`A%4PY{EBgy%f&$t>b?qV4XS?=MqwK+!foinJ#ofo z6385+LY}~E9KywT3rq1n@-v^gMB^9KfZtIQ{Ibs3cC99!`WV#0lDKHREL6W@Yq{eK zJZUu*TDjLYG-3wjR$PjEZT%qfGd?bQk_)!}sx6NpYcO{)1s~e-OH8Kx4)vh3=wG-7 z(!_I^gb^%TPnd#wf=n)I&$pJKI#wY+Q_Dq9)QalYZrzRyX?EN8UTYs}frn8G@ePns z$1~P*s0l9G@)g`g`5G4EPt@7S<^}$UFvgAJloL4^k8l!S;}Nz;6VJAx==gRgWAD;xC#d_3vXaIPNMF2 zag$8PDCReLWHdnma*wG*t-KjmV5cqjqb43i-9K#W$4~>_K`rosZGVCu%5O0r|JeF0 z4uTfu!93h%AG>W1kWq)@s6%rK^(5y}TRDpA@ECR9E7ZcKu?D}Pe+N?o_f?|G^{9ol z;}CY^27Hf^n3~4^bB4?oLhoMhQKy;lOd+Aklv;=eVmYBFDJM1)MMNc`N!AgY2rX2p zk|nu0RF3otIop8kh(JRylVfupRca9nNq9Hht7bK4sR2o zSG0y$OR)1Mk5JMfRN4PuZsOg+G}7T@jJTZmv|!yot?5p6n3fJFKTJ!%;|rZBB3%6YiJ~krM^+ME$URJrfpWXnJuXT9gn_57B+%fZM9Gt2gv z@v~`UUMxf(&c_m5iHTT?Nq7qN+y!S8`B@X$NW6o7Y{3-lz){%c?8YpvKY1)-sT78& zn1xC7s(}__0)~qzZ*5NgQ)&$Q0>k-&!ZN43HjL-SKsK3m`$Lf znTia2>TdL+I{b)Q$ro4u(_Q~UO*DZl4gIL=9I~-kfLif#j7=PAVj&!ZJ5UR(icruB zs@(%8o%N`O7v249qZ-x?->`G24z3|%SQ}~!J5XELi8JsWX5t?VVSrxs`~hb*YUfU(`ag}Mu>lhq z-)>RJrJ^-f!B(LLevfMK-PI4FI*#XrQ8XXweir88OblYk)gMDm>?~&EEmz-#I&0m! zW_L>%X(lS(iCF-5+L><~NYUfU%CR~qff;FKg){1J^fpl#zQP20F z&P*Rhw34qBw3UOX2APbi2dASZR*Z{rEylJG^<0CyZbVJ21+}0@*nmZR3U{#+&){A@ zm1WqE@fZy7IA_S#5&A>Wd&(o2hfODRVwF}BO9>qu4LpljOROSh6C;TE#0o-ZL}@vp zT`VE=8fFq&#J{8kXT+vUVS%gFzt#UqCw8@~$VGkY+5si4;9nX~p_m8|WrSXXwpjlK z3yDHPJEWu?m_w8jiQ2A-gi^&Yv3wf2wm#>-I(>e6k9uWmT>Te>r)Ne^0bB@cJ*p CWRAZ8 diff --git a/problem_builder/translations/ar/LC_MESSAGES/text.po b/problem_builder/translations/ar/LC_MESSAGES/text.po index c3fb1220..5959127c 100644 --- a/problem_builder/translations/ar/LC_MESSAGES/text.po +++ b/problem_builder/translations/ar/LC_MESSAGES/text.po @@ -1492,10 +1492,22 @@ msgstr "" #: templates/html/sb-review-score.html:20 #, python-format -msgid "You answered 1 question correctly." -msgid_plural "You answered %(correct_answers)s questions correctly." -msgstr[0] "جاوبت عن سؤال واحد بشكل صحيح." -msgstr[1] "جاوبت عن %(correct_answers)s من الأسئلة بشكل صحيح." +msgid "" +"\n" +" You answered 1 question correctly.\n" +" " +msgid_plural "" +"\n" +" You answered %(correct_answers)s questions correctly.\n" +" " +msgstr[0] "" +"\n" +" جاوبت عن سؤال واحد بشكل صحيح.\n" +" " +msgstr[1] "" +"\n" +" جاوبت عن %(correct_answers)s من الأسئلة بشكل صحيح.\n" +" " #: templates/html/sb-review-score.html:30 #: templates/html/sb-review-score.html:53 @@ -1512,17 +1524,41 @@ msgstr "السؤال %(number)s" #: templates/html/sb-review-score.html:43 #, python-format -msgid "You answered 1 question partially correctly." -msgid_plural "You answered %(partially_correct_answers)s questions partially correctly." -msgstr[0] "جاوبت عن سؤال واحد بشكل صحيح جزئيًا." -msgstr[1] "جاوبت عن %(partially_correct_answers)s من الأسئلة بشكل صحيح جزئيًا." +msgid "" +"\n" +" You answered 1 question partially correctly.\n" +" " +msgid_plural "" +"\n" +" You answered %(partially_correct_answers)s questions partially correctly.\n" +" " +msgstr[0] "" +"\n" +" جاوبت عن سؤال واحد بشكل صحيح جزئيًا.\n" +" " +msgstr[1] "" +"\n" +" جاوبت عن %(partially_correct_answers)s من الأسئلة بشكل صحيح جزئيًا.\n" +" " #: templates/html/sb-review-score.html:66 #, python-format -msgid "You answered 1 question incorrectly." -msgid_plural "You answered %(incorrect_answers)s questions incorrectly." -msgstr[0] "جاوبت عن سؤال واحد بشكل غير صحيح." -msgstr[1] "جاوبت عن %(incorrect_answers)s من الأسئلة بشكل غير صحيح." +msgid "" +"\n" +" You answered 1 question incorrectly.\n" +" " +msgid_plural "" +"\n" +" You answered %(incorrect_answers)s questions incorrectly.\n" +" " +msgstr[0] "" +"\n" +" جاوبت عن سؤال واحد بشكل غير صحيح.\n" +" " +msgstr[1] "" +"\n" +" جاوبت عن %(incorrect_answers)s من الأسئلة بشكل غير صحيح.\n" +" " #: templates/html/slider_edit_footer.html:3 msgid "ID for referencing this slider:" From 58b38a47ed9a642a30a0576542086e85271bcd93 Mon Sep 17 00:00:00 2001 From: musmanmalik Date: Wed, 23 Sep 2020 17:27:32 +0500 Subject: [PATCH 3/4] string added --- .../public/js/translations/zh_CN/textjs.js | 3 ++- .../translations/zh_CN/LC_MESSAGES/textjs.mo | Bin 1260 -> 1324 bytes .../translations/zh_CN/LC_MESSAGES/textjs.po | 3 ++- 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/problem_builder/public/js/translations/zh_CN/textjs.js b/problem_builder/public/js/translations/zh_CN/textjs.js index ab4d3f64..d349f6b0 100644 --- a/problem_builder/public/js/translations/zh_CN/textjs.js +++ b/problem_builder/public/js/translations/zh_CN/textjs.js @@ -27,7 +27,8 @@ "All": "\u5168\u90e8", "Data export failed. Reason: <%= error %>": "\u6570\u636e\u5bfc\u51fa\u5931\u8d25\u3002\u539f\u56e0\uff1a<%= error %>", "Results retrieved on <%= creation_time %> (<%= seconds %> second).": [ - "<%= creation_time %> (<%= seconds %> second) \u65f6\u68c0\u7d22\u5230\u7684\u7ed3\u679c\u3002" + "<%= creation_time %> (<%= seconds %> \u79d2) \u65f6\u68c0\u7d22\u5230\u7684\u7ed3\u679c\u3002", + "<%= creation_time %> (<%= seconds %> \u79d2) \u65f6\u68c0\u7d22\u5230\u7684\u7ed3\u679c\u3002" ], "The report is currently being generated\u2026": "\u76ee\u524d\u6b63\u5728\u751f\u6210\u62a5\u544a\u2026", "You have used {num_used} of 1 submission.": [ diff --git a/problem_builder/translations/zh_CN/LC_MESSAGES/textjs.mo b/problem_builder/translations/zh_CN/LC_MESSAGES/textjs.mo index 5fc1b420da1d965be643e8973dd8caa1df3130c4..ec3cf9b1d3deb6bb581405779dbe01e895f16601 100644 GIT binary patch delta 75 zcmaFExrS>(ifAhX1A_z$1A{b>o(H50f%LA8l}DK6o-d!Isqk$2wr7hQo^M(7v}42b dSuM|ZPkuIU&f|tAhRJ%2s?0zolbu;s0s!GU9~b}t delta 44 wcmZ3(^@ejoil{3C1A_z$1A{b>jswz#K)PyU" msgid "Results retrieved on <%= creation_time %> (<%= seconds %> second)." msgid_plural "" "Results retrieved on <%= creation_time %> (<%= seconds %> seconds)." -msgstr[0] "<%= creation_time %> (<%= seconds %> second) 时检索到的结果。" +msgstr[0] "<%= creation_time %> (<%= seconds %> 秒) 时检索到的结果。" +msgstr[1] "<%= creation_time %> (<%= seconds %> 秒) 时检索到的结果。" #: public/js/instructor_tool.js:429 msgid "The report is currently being generated…" From d1ebf4a11a0af07154d8938389ab5212acb06942 Mon Sep 17 00:00:00 2001 From: musmanmalik Date: Mon, 28 Sep 2020 10:12:52 +0500 Subject: [PATCH 4/4] white space removed --- .../public/js/translations/de_DE/textjs.js | 64 ++++++++-------- .../public/js/translations/pl_PL/textjs.js | 72 +++++++++--------- .../translations/de_DE/LC_MESSAGES/textjs.mo | Bin 1377 -> 1369 bytes .../translations/de_DE/LC_MESSAGES/textjs.po | 2 +- .../translations/pl_PL/LC_MESSAGES/textjs.mo | Bin 1599 -> 1598 bytes .../translations/pl_PL/LC_MESSAGES/textjs.po | 2 +- 6 files changed, 71 insertions(+), 69 deletions(-) diff --git a/problem_builder/public/js/translations/de_DE/textjs.js b/problem_builder/public/js/translations/de_DE/textjs.js index 125d7d2b..562790ca 100644 --- a/problem_builder/public/js/translations/de_DE/textjs.js +++ b/problem_builder/public/js/translations/de_DE/textjs.js @@ -24,16 +24,16 @@ django.catalog = django.catalog || {}; var newcatalog = { - "All": "Alle", - "Data export failed. Reason: <%= error %>": "Export der Daten ist fehlgeschlagen. Grund: <%= error %>", + "All": "Alle", + "Data export failed. Reason: <%= error %>": "Export der Daten ist fehlgeschlagen. Grund: <%= error %>", "Results retrieved on <%= creation_time %> (<%= seconds %> second).": [ - "Ergebnisse am <%= creation_time %> (<%= seconds %> second) abgerufen", + "Ergebnisse am <%= creation_time %> (<%= seconds %> second) abgerufen", "Ergebnisse am <%= creation_time %> (<%= seconds %> second) abgerufen." - ], - "The report is currently being generated\u2026": "Der Report wird gerade zusammengestellt\u2026", + ], + "The report is currently being generated\u2026": "Der Report wird gerade zusammengestellt\u2026", "You have used {num_used} of 1 submission.": [ - "Sie haben {num_used} von einer Einreichung verwendet.", - "Sie haben {num_used} von {max_attempts} Einreichungen verwendet. " + "Sie haben {num_used} von einer Einreichung verwendet.", + "Sie haben {num_used} von {max_attempts} Einreichungen verwendet." ] }; for (var key in newcatalog) { @@ -56,7 +56,7 @@ if (typeof(value) == 'undefined') { return (count == 1) ? singular : plural; } else { - return value[django.pluralidx(count)]; + return value.constructor === Array ? value[django.pluralidx(count)] : value; } }; @@ -90,36 +90,36 @@ /* formatting library */ django.formats = { - "DATETIME_FORMAT": "j. F Y H:i", + "DATETIME_FORMAT": "j. F Y H:i", "DATETIME_INPUT_FORMATS": [ - "%d.%m.%Y %H:%M:%S", - "%d.%m.%Y %H:%M:%S.%f", - "%d.%m.%Y %H:%M", - "%d.%m.%Y", - "%Y-%m-%d %H:%M:%S", - "%Y-%m-%d %H:%M:%S.%f", - "%Y-%m-%d %H:%M", + "%d.%m.%Y %H:%M:%S", + "%d.%m.%Y %H:%M:%S.%f", + "%d.%m.%Y %H:%M", + "%d.%m.%Y", + "%Y-%m-%d %H:%M:%S", + "%Y-%m-%d %H:%M:%S.%f", + "%Y-%m-%d %H:%M", "%Y-%m-%d" - ], - "DATE_FORMAT": "j. F Y", + ], + "DATE_FORMAT": "j. F Y", "DATE_INPUT_FORMATS": [ - "%d.%m.%Y", - "%d.%m.%y", + "%d.%m.%Y", + "%d.%m.%y", "%Y-%m-%d" - ], - "DECIMAL_SEPARATOR": ",", - "FIRST_DAY_OF_WEEK": "1", - "MONTH_DAY_FORMAT": "j. F", - "NUMBER_GROUPING": "3", - "SHORT_DATETIME_FORMAT": "d.m.Y H:i", - "SHORT_DATE_FORMAT": "d.m.Y", - "THOUSAND_SEPARATOR": ".", - "TIME_FORMAT": "H:i", + ], + "DECIMAL_SEPARATOR": ",", + "FIRST_DAY_OF_WEEK": 1, + "MONTH_DAY_FORMAT": "j. F", + "NUMBER_GROUPING": 3, + "SHORT_DATETIME_FORMAT": "d.m.Y H:i", + "SHORT_DATE_FORMAT": "d.m.Y", + "THOUSAND_SEPARATOR": ".", + "TIME_FORMAT": "H:i", "TIME_INPUT_FORMATS": [ - "%H:%M:%S", - "%H:%M:%S.%f", + "%H:%M:%S", + "%H:%M:%S.%f", "%H:%M" - ], + ], "YEAR_MONTH_FORMAT": "F Y" }; diff --git a/problem_builder/public/js/translations/pl_PL/textjs.js b/problem_builder/public/js/translations/pl_PL/textjs.js index 2321160e..a0f3e773 100644 --- a/problem_builder/public/js/translations/pl_PL/textjs.js +++ b/problem_builder/public/js/translations/pl_PL/textjs.js @@ -24,18 +24,20 @@ django.catalog = django.catalog || {}; var newcatalog = { - "All": "Wszystkie", - "Data export failed. Reason: <%= error %>": "Eksport danych nie powi\u00f3d\u0142 si\u0119. Przyczyna: <%= error %>", + "All": "Wszystkie", + "Data export failed. Reason: <%= error %>": "Eksport danych nie powi\u00f3d\u0142 si\u0119. Przyczyna: <%= error %>", "Results retrieved on <%= creation_time %> (<%= seconds %> second).": [ - "Rezultaty pobrano <%= creation_time %> (<%= seconds %> sekunda).", - "Rezultaty pobrano <%= creation_time %> (<%= seconds %> sekund).", - "Rezultaty pobrano <%= creation_time %> (<%= seconds %> sekund).", + "Rezultaty pobrano <%= creation_time %> (<%= seconds %> sekunda).", + "Rezultaty pobrano <%= creation_time %> (<%= seconds %> sekund).", + "Rezultaty pobrano <%= creation_time %> (<%= seconds %> sekund).", "Rezultaty pobrano <%= creation_time %> (<%= seconds %> sekund)." - ], - "The report is currently being generated\u2026": "Generujemy raport...", + ], + "The report is currently being generated\u2026": "Generujemy raport...", "You have used {num_used} of 1 submission.": [ - "Wykorzysta\u0142e\u015b {num_used} z 1 zg\u0142oszenia.", - "Wykorzysta\u0142e\u015b {num_used} z {max_attempts} zg\u0142osze\u0144. " + "Wykorzysta\u0142e\u015b {num_used} z 1 zg\u0142oszenia.", + "Wykorzysta\u0142e\u015b {num_used} z {max_attempts} zg\u0142osze\u0144.", + "", + "" ] }; for (var key in newcatalog) { @@ -58,7 +60,7 @@ if (typeof(value) == 'undefined') { return (count == 1) ? singular : plural; } else { - return value[django.pluralidx(count)]; + return value.constructor === Array ? value[django.pluralidx(count)] : value; } }; @@ -92,37 +94,37 @@ /* formatting library */ django.formats = { - "DATETIME_FORMAT": "j E Y H:i", + "DATETIME_FORMAT": "j E Y H:i", "DATETIME_INPUT_FORMATS": [ - "%d.%m.%Y %H:%M:%S", - "%d.%m.%Y %H:%M:%S.%f", - "%d.%m.%Y %H:%M", - "%d.%m.%Y", - "%Y-%m-%d %H:%M:%S", - "%Y-%m-%d %H:%M:%S.%f", - "%Y-%m-%d %H:%M", + "%d.%m.%Y %H:%M:%S", + "%d.%m.%Y %H:%M:%S.%f", + "%d.%m.%Y %H:%M", + "%d.%m.%Y", + "%Y-%m-%d %H:%M:%S", + "%Y-%m-%d %H:%M:%S.%f", + "%Y-%m-%d %H:%M", "%Y-%m-%d" - ], - "DATE_FORMAT": "j E Y", + ], + "DATE_FORMAT": "j E Y", "DATE_INPUT_FORMATS": [ - "%d.%m.%Y", - "%d.%m.%y", - "%y-%m-%d", + "%d.%m.%Y", + "%d.%m.%y", + "%y-%m-%d", "%Y-%m-%d" - ], - "DECIMAL_SEPARATOR": ",", - "FIRST_DAY_OF_WEEK": "1", - "MONTH_DAY_FORMAT": "j F", - "NUMBER_GROUPING": "3", - "SHORT_DATETIME_FORMAT": "d-m-Y H:i", - "SHORT_DATE_FORMAT": "d-m-Y", - "THOUSAND_SEPARATOR": "\u00a0", - "TIME_FORMAT": "H:i", + ], + "DECIMAL_SEPARATOR": ",", + "FIRST_DAY_OF_WEEK": 1, + "MONTH_DAY_FORMAT": "j E", + "NUMBER_GROUPING": 3, + "SHORT_DATETIME_FORMAT": "d-m-Y H:i", + "SHORT_DATE_FORMAT": "d-m-Y", + "THOUSAND_SEPARATOR": "\u00a0", + "TIME_FORMAT": "H:i", "TIME_INPUT_FORMATS": [ - "%H:%M:%S", - "%H:%M:%S.%f", + "%H:%M:%S", + "%H:%M:%S.%f", "%H:%M" - ], + ], "YEAR_MONTH_FORMAT": "F Y" }; diff --git a/problem_builder/translations/de_DE/LC_MESSAGES/textjs.mo b/problem_builder/translations/de_DE/LC_MESSAGES/textjs.mo index ce11a4bd4f359f64a5a73f61b7ef7aeb7a30d6ca..cc3cfb0f7da0990dbe42aa228ecd085df71b2a21 100644 GIT binary patch delta 14 VcmaFJb(3pC31ivD(#I@}3;-^71y}$8 delta 22 Ycmcb~^^j{q31i*H(#I^E3Q)iR0AFtgXaE2J diff --git a/problem_builder/translations/de_DE/LC_MESSAGES/textjs.po b/problem_builder/translations/de_DE/LC_MESSAGES/textjs.po index ec632a55..330fd6ed 100644 --- a/problem_builder/translations/de_DE/LC_MESSAGES/textjs.po +++ b/problem_builder/translations/de_DE/LC_MESSAGES/textjs.po @@ -34,7 +34,7 @@ msgstr "" msgid "You have used {num_used} of 1 submission." msgid_plural "You have used {num_used} of {max_attempts} submissions." msgstr[0] "Sie haben {num_used} von einer Einreichung verwendet." -msgstr[1] "Sie haben {num_used} von {max_attempts} Einreichungen verwendet. " +msgstr[1] "Sie haben {num_used} von {max_attempts} Einreichungen verwendet." #: public/js/instructor_tool.js:349 msgid "All" diff --git a/problem_builder/translations/pl_PL/LC_MESSAGES/textjs.mo b/problem_builder/translations/pl_PL/LC_MESSAGES/textjs.mo index dd93b25eb5dc0cc83d2e162c8e2c0151b2511661..537f6874d9437d507d4dad13f7074a0f48861b13 100644 GIT binary patch delta 14 VcmdnbvyW#&31jlc(i5zV3;-&b1o8j? delta 15 WcmdnTv!7=|31iB}(i5yq3Jd@*)CCj( diff --git a/problem_builder/translations/pl_PL/LC_MESSAGES/textjs.po b/problem_builder/translations/pl_PL/LC_MESSAGES/textjs.po index 244e0661..57ea322b 100644 --- a/problem_builder/translations/pl_PL/LC_MESSAGES/textjs.po +++ b/problem_builder/translations/pl_PL/LC_MESSAGES/textjs.po @@ -34,7 +34,7 @@ msgstr "" msgid "You have used {num_used} of 1 submission." msgid_plural "You have used {num_used} of {max_attempts} submissions." msgstr[0] "Wykorzystałeś {num_used} z 1 zgłoszenia." -msgstr[1] "Wykorzystałeś {num_used} z {max_attempts} zgłoszeń. " +msgstr[1] "Wykorzystałeś {num_used} z {max_attempts} zgłoszeń." #: public/js/instructor_tool.js:349 msgid "All"