Skip to content

Commit 03eae68

Browse files
committed
fix dialogue texts
1 parent a6bcabd commit 03eae68

File tree

5 files changed

+14
-9
lines changed

5 files changed

+14
-9
lines changed

amd/build/initialize.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

amd/src/initialize.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
define(['jquery', 'core/notification', 'core/str'], function ($, notification, str) {
2-
var init = function(starttime, endtime) {
2+
var init = function(starttime, endtime, mode) {
33
var start = new Date(starttime * 1000);
44
var end = new Date(endtime * 1000);
55
var endenabled;
@@ -25,7 +25,7 @@ define(['jquery', 'core/notification', 'core/str'], function ($, notification, s
2525
// Ask for confirmation, then enable all fields related to re-invitation.
2626
str.get_strings([
2727
{'key': 'confirm'},
28-
{'key': 'content_confirm_reactivate', component: 'block_evasys_sync'},
28+
{'key': 'content_confirm_reactivate_'+mode, component: 'block_evasys_sync'},
2929
{'key': 'yes'},
3030
{'key': 'no'},
3131
{'key': 'requestagain', component: 'block_evasys_sync'}

block_evasys_sync.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,8 @@ public function get_content() {
156156
}
157157
}
158158
// This javascript module sets the start and end fields to the correct values.
159-
$this->page->requires->js_call_amd('block_evasys_sync/initialize', 'init', array($start, $end));
159+
$jsmodestring = $ismodeautomated ? 'automated' : 'manual';
160+
$this->page->requires->js_call_amd('block_evasys_sync/initialize', 'init', array($start, $end, $jsmodestring));
160161

161162
// Initialize variables to pass to mustache.
162163
$courses = array();

lang/de/block_evasys_sync.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -128,9 +128,10 @@
128128
"Bitte wenden Sie sich an den Support.";
129129

130130
$string['confirm_box'] = "Verstanden";
131-
$string['content_confirm_reactivate'] = "Diese Option wird die Startzeit erneut freigeben. Eine erneutes Setzen der Startzeit wird " .
132-
" alle Evaluationen neu anstoßen, für die mindestens ein*e neue*r Teilnehmer*in vorhanden ist. <br />" .
133-
"Sind Sie sicher, dass sie die Startzeit freigeben möchten?";
131+
$string['content_confirm_reactivate_automated'] = 'Sind Sie sicher, dass Sie die Startzeit ändern möchten?';
132+
$string['content_confirm_reactivate_manual'] = 'Sind Sie sicher, dass Sie die Startzeit ändern möchten?' .
133+
'Evaluationskoordinator*innen werden über die Änderung informiert und können die Evaluation anpassen, ' .
134+
'aber es ist nicht sicher, dass dies rechtzeitig geschieht.';
134135

135136
// Survey status.
136137
$string['surveystatusopen'] = 'offen';

lang/en/block_evasys_sync.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -107,8 +107,11 @@
107107
$string['direct_title_info'] = "Invitation already complete";
108108
$string['title_send_rejected'] = "Invalid Date";
109109
$string['content_send_rejected'] = "One or more dates have been set to a date in the past. <br />" .
110-
"This is not allowed. Some evaluationperiods may have been altered.<br />";
111-
$string['content_confirm_reactivate'] = "Are you sure you want to reactivate the invite options? This will restart all surveys with at least one new participant";
110+
"This is not allowed. Some evaluation periods may have been altered.<br />";
111+
$string['content_confirm_reactivate_automated'] = 'Are you sure you want to change the start date?';
112+
$string['content_confirm_reactivate_manual'] = 'Are you sure you want to change the start date? ' .
113+
'Submitting the form will cause the coordinator to be notified of the change, but there is no guarantee ' .
114+
'that the dates will be modified in time.';
112115

113116
// Alert Coordinator mail.
114117
$string['alert_email_subject'] = 'Evaluationszeitraum gesetzt für {$a}';

0 commit comments

Comments
 (0)