Skip to content

Commit e40b270

Browse files
committed
Language: #fix language terms problem with " in it
1 parent bf9907c commit e40b270

File tree

3 files changed

+34
-4
lines changed

3 files changed

+34
-4
lines changed

tests/scripts/disable_user_conditions.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393

9494
$language = $disabledUser['locale'];
9595
$subject = get_lang('Account disabled', $language).': '.$disabledUser['complete_name'];
96-
$content = get_lang('DisableUserCase1', $language);
96+
$content = get_lang("Hello,<br>You haven't logged into to your account for three months. It has now been deactivated. If you would like to reactivate it, please contact us.<br><br>Best regards.", $language);
9797

9898
$userReportList[$studentId]['message'] .= $newLine.
9999
'Mail will be send to: '.$disabledUser['username'].' ('.$disabledUser['email'].')'.$newLine.
@@ -153,7 +153,7 @@
153153

154154
$language = $disabledUser['locale'];
155155
$subject = get_lang('Account disabled', $language).': '.$disabledUser['complete_name'];
156-
$content = get_lang('DisableUserCase3Student', $language);
156+
$content = get_lang("Hello,<br>You haven't logged into your account for six months. It has now been deactivated. If you would like to reactivate it, please contact us.<br><br>Best regards.", $language);
157157

158158
if (!isset($userReportList[$studentId]['message'])) {
159159
$userReportList[$studentId]['message'] = '';
@@ -220,7 +220,7 @@
220220
$userReportList[$studentId]['message'] .= $newLine."User# $studentId (".$disabledUser['username'].") to be disabled. Case 2 . Last connection: $lastDate - 6 months: $date6Months ";
221221

222222
$subject = get_lang('Account disabled', $disabledUser['locale']).': '.$disabledUser['complete_name'];
223-
$content = get_lang('DisableUserCase2', $disabledUser['locale']);
223+
$content = get_lang("Hello,<br>You haven't logged into your account for six months. It has now been deactivated. If you would like to reactivate it, please contact us.<br><br>Best regards.", $disabledUser['locale']);
224224

225225
$userReportList[$studentId]['message'] .= $newLine.'Mail will be send to: '.$disabledUser['username'].$newLine.'Subject: '.$subject.$newLine.'Content: '.$content.$newLine;
226226

@@ -232,7 +232,7 @@
232232
$bossInfo = api_get_user_info($studentBoss);
233233
if ($bossInfo) {
234234
$subjectBoss = get_lang('Account disabled', $bossInfo['locale']).': '.$disabledUser['complete_name'];
235-
$contentBoss = sprintf(get_lang('DisableUserCase2StudentX', $bossInfo['locale']), $disabledUser['complete_name']);
235+
$contentBoss = sprintf(get_lang("Hello,<br>%s hasn't logged into PARKUR in the last six months. His account has just been deactivated.<br><br>Sincerely.", $bossInfo['locale']), $disabledUser['complete_name']);
236236
$userReportList[$studentId]['message'] .= $newLine.'Mail will be send to: '.$bossInfo['username'].$newLine.'Subject: '.$subjectBoss.$newLine.'Content: '.$contentBoss.$newLine;
237237
}
238238
}

translations/messages.en.po

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30526,3 +30526,18 @@ msgstr "The learning courses are designed around the following main areas. Choos
3052630526

3052730527
msgid "Once the areas have been selected, choose 5 themes and objectives in order of preference.<br><br>"
3052830528
msgstr "Once the areas have been selected, choose 5 themes and objectives in order of preference.<br><br>"
30529+
30530+
msgid "PDF download unavailable"
30531+
msgstr "PDF download unavailable"
30532+
30533+
msgid "Registering"
30534+
msgstr "Registering"
30535+
30536+
msgid "Hello,<br>You haven't logged into to your account for three months. It has now been deactivated. If you would like to reactivate it, please contact us.<br><br>Best regards."
30537+
msgstr "Hello,<br>You haven't logged into to your account for three months. It has now been deactivated. If you would like to reactivate it, please contact us.<br><br>Best regards."
30538+
30539+
msgid "Hello,<br>You haven't logged into your account for six months. It has now been deactivated. If you would like to reactivate it, please contact us.<br><br>Best regards."
30540+
msgstr "Hello,<br>You haven't logged into your account for six months. It has now been deactivated. If you would like to reactivate it, please contact us.<br><br>Best regards."
30541+
30542+
msgid "Hello,<br>%s hasn't logged into PARKUR in the last six months. His account has just been deactivated.<br><br>Sincerely."
30543+
msgstr "Hello,<br>%s hasn't logged into PARKUR in the last six months. His account has just been deactivated.<br><br>Sincerely."

translations/messages.pot

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30491,3 +30491,18 @@ msgstr ""
3049130491

3049230492
msgid "Once the areas have been selected, choose 5 themes and objectives in order of preference.<br><br>"
3049330493
msgstr ""
30494+
30495+
msgid "PDF download unavailable"
30496+
msgstr ""
30497+
30498+
msgid "Registering"
30499+
msgstr ""
30500+
30501+
msgid "Hello,<br>You haven't logged into to your account for three months. It has now been deactivated. If you would like to reactivate it, please contact us.<br><br>Best regards."
30502+
msgstr ""
30503+
30504+
msgid "Hello,<br>You haven't logged into your account for six months. It has now been deactivated. If you would like to reactivate it, please contact us.<br><br>Best regards."
30505+
msgstr ""
30506+
30507+
msgid "Hello,<br>%s hasn't logged into PARKUR in the last six months. His account has just been deactivated.<br><br>Sincerely."
30508+
msgstr ""

0 commit comments

Comments
 (0)