Skip to content

Commit 433affe

Browse files
committed
Language: #add missing and #fix legacy language terms
1 parent 67ecc2e commit 433affe

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

71 files changed

+143
-245
lines changed

public/main/admin/access_url_edit_usergroup_to_url.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@
6868

6969
echo '<div class="flex gap-2 items-center mb-4 mt-4">';
7070
echo Display::url(
71-
Display::getMdiIcon(ActionIcon::BACK, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Back to URL list')),
71+
Display::getMdiIcon(ActionIcon::BACK, 'ch-tool-icon', null, ICON_SIZE_MEDIUM, get_lang('Back')),
7272
api_get_path(WEB_CODE_PATH).'admin/access_urls.php'
7373
);
7474
echo Display::url(
@@ -131,7 +131,7 @@ class="w-1/2 rounded-md border border-gray-300 bg-white p-2 shadow-sm focus:bord
131131
type="text"
132132
id="originFilter"
133133
onkeyup="filterSelect('originFilter', 'origin_users')"
134-
placeholder="<?php echo get_lang('Search group'); ?>"
134+
placeholder="<?php echo get_lang('Search groups'); ?>"
135135
class="mb-2 w-full rounded-md border border-gray-300 p-2 text-sm focus:outline-none"
136136
/>
137137
<select

public/main/admin/settings.lib.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1533,9 +1533,9 @@ function showSearchToolsStatusTable()
15331533
}
15341534
$data2[] = [$program, $output[0], $icon];
15351535
}
1536-
echo Display::tag('h3', get_lang('Course Program</a>. If your course has no code, whatever the reason, invent one. For instance <i>INNOVATION</i> if the course is about Innovation Managements needed to convert files'));
1536+
echo Display::tag('h3', get_lang('Programs needed to convert files'));
15371537
$table = new SortableTableFromArray($data2);
1538-
$table->set_header(0, get_lang('Course Program</a>. If your course has no code, whatever the reason, invent one. For instance <i>INNOVATION</i> if the course is about Innovation Management'), false);
1538+
$table->set_header(0, get_lang('Software program'), false);
15391539
$table->set_header(1, get_lang('Path'), false);
15401540
$table->set_header(2, get_lang('Status'), false);
15411541
echo $table->display();

public/main/admin/user_import.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -618,11 +618,11 @@ function processUsers(&$users, $sendMail)
618618
if ($isResume) {
619619
$resumeStop = $importData['counter'] >= count($importData['complete_list']);
620620
if (false == $resumeStop) {
621-
$formContinue->addButtonImport(get_lang('ContinueImport'), 'import_continue');
621+
$formContinue->addButtonImport(get_lang('Proceed with the import'), 'import_continue');
622622
}
623623
}
624624

625-
$formContinue->addHtml(get_lang('Results and feedback and feedback').'<br />'.$importData['log_messages']);
625+
$formContinue->addHtml(get_lang('Results and feedback').'<br />'.$importData['log_messages']);
626626

627627
if ($formContinue->validate()) {
628628
$users = parse_csv_data(

public/main/admin/user_update_import.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ function validate_data($users)
6464
}
6565
$info = $usergroup->get($id);
6666
if (empty($info)) {
67-
$errors[$user['UserName']][] = sprintf(get_lang('ClassIdDoesntExists'), $id);
67+
$errors[$user['UserName']][] = sprintf(get_lang('Class ID does not exist'), $id);
6868
} else {
6969
$classExistList[] = $info['id'];
7070
}
@@ -273,7 +273,7 @@ function parse_xml_data($file)
273273
$defined_auth_sources = array_merge($defined_auth_sources, array_keys($extAuthSource));
274274
}
275275

276-
$tool_name = get_lang('Update user list fromm XML/CSV');
276+
$tool_name = get_lang('Update user list from XML/CSV');
277277
$interbreadcrumb[] = ["url" => 'index.php', "name" => get_lang('Administration')];
278278

279279
set_time_limit(0);
@@ -305,7 +305,7 @@ function parse_xml_data($file)
305305

306306
if ('csv' !== $uploadInfo['extension']) {
307307
Display::addFlash(
308-
Display::return_message(get_lang('You must import a file according to selected option'), 'error')
308+
Display::return_message(get_lang('You must import a file corresponding to the selected format'), 'error')
309309
);
310310

311311
header('Location: '.api_get_self());
@@ -392,7 +392,7 @@ function parse_xml_data($file)
392392
<div class="max-w-full mb-8">
393393
<div class="p-6 bg-white border border-gray-200 rounded-lg shadow-sm">
394394
<h2 class="text-xl font-bold mb-4">'
395-
. get_lang('CSV must look like') .
395+
. get_lang('CSV must look as follows: ') .
396396
' <span class="font-medium">(' . get_lang('Mandatory fields') . ')</span>
397397
</h2>
398398
<div class="overflow-x-auto bg-gray-20 p-4 rounded-md">

public/main/admin/usergroup_user_import.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ function parse_csv_data($file)
147147
$form->addElement('header', $tool_name);
148148
$form->addElement('file', 'import_file', get_lang('CSV file import location'));
149149
//$form->addElement('checkbox', 'subscribe', get_lang('Action'), get_lang('Add user in the course only if not yet in'));
150-
$form->addElement('checkbox', 'unsubscribe', '', get_lang('Remove user from course if his name is not in the list'));
150+
$form->addElement('checkbox', 'unsubscribe', '', get_lang('Remove user from all group-related entities if his/her name is not in the list'));
151151
$form->addButtonImport(get_lang('Import'));
152152

153153
$errors = [];

public/main/course_info/infocours.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -180,7 +180,7 @@
180180
$form->addGroup($group, '', [get_lang('Style sheets')]);
181181
}
182182

183-
$form->addElement('label', get_lang('Space Available'), format_file_size(DocumentManager::get_course_quota()));
183+
$form->addElement('label', get_lang('Space available'), format_file_size(DocumentManager::get_course_quota()));
184184

185185
$aiOptions = [
186186
'learning_path_generator' => 'Enable Learning Path Generator',

public/main/search/load_search.php

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -275,8 +275,8 @@
275275
);
276276
$userForm->addEndPanel();
277277

278-
$userForm->addStartPanel('method', get_lang('Méthode de Travail'));
279-
$userForm->addHtml('<p class="text-info">'.get_lang('Method de Travail Explanation').'</p>');
278+
$userForm->addStartPanel('method', get_lang('Work methodology'));
279+
$userForm->addHtml('<p class="text-info">'.get_lang('Work methodolofy explanation').'</p>');
280280

281281
$fieldsToShow = [
282282
'methode_de_travaille',
@@ -317,8 +317,8 @@
317317
$searchChecked3 = null === $searchChecked3 ? 'checked' : $searchChecked3;
318318
}
319319

320-
$form->addStartPanel('dispo_avant', '<input type="checkbox" name="search_using_1" '.$searchChecked1.' />&nbsp;'.get_lang('Disponibilite Avant'));
321-
$form->addHtml('<p class="text-info">'.get_lang('Disponibilite Avant Explanation').'</p>');
320+
$form->addStartPanel('dispo_avant', '<input type="checkbox" name="search_using_1" '.$searchChecked1.' />&nbsp;'.get_lang('Availability before'));
321+
$form->addHtml('<p class="text-info">'.get_lang('Availability before explanation').'</p>');
322322

323323
// Session fields
324324
$showOnlyThisFields = [
@@ -362,8 +362,8 @@
362362

363363
$form->addEndPanel();
364364

365-
$form->addStartPanel('theme_obj', '<input type="checkbox" name="search_using_2" '.$searchChecked2.' />&nbsp;'.get_lang('Themes Objectifs'));
366-
$form->addHtml('<p class="text-info">'.get_lang('Themes Objectifs Explanation').'</p>');
365+
$form->addStartPanel('theme_obj', '<input type="checkbox" name="search_using_2" '.$searchChecked2.' />&nbsp;'.get_lang('Topics objectives'));
366+
$form->addHtml('<p class="text-info">'.get_lang('Topics objectives explanation').'</p>');
367367

368368
$showOnlyThisFields = [
369369
'domaine',
@@ -385,16 +385,16 @@
385385
['domaine' => 3, $theme => 5], // $separateExtraMultipleSelect
386386
[
387387
'domaine' => [
388-
get_lang('Domaine').' 1',
389-
get_lang('Domaine').' 2',
390-
get_lang('Domaine').' 3',
388+
sprintf(get_lang('Domain %s'),'1'),
389+
sprintf(get_lang('Domain %s'),'2'),
390+
sprintf(get_lang('Domain %s'),'3'),
391391
],
392392
$theme => [
393-
get_lang('Theme Field').' 1',
394-
get_lang('Theme Field').' 2',
395-
get_lang('Theme Field').' 3',
396-
get_lang('Theme Field').' 4',
397-
get_lang('Theme Field').' 5',
393+
sprintf(get_lang('Topic %s'),'1'),
394+
sprintf(get_lang('Topic %s'),'2'),
395+
sprintf(get_lang('Topic %s'),'3'),
396+
sprintf(get_lang('Topic %s'),'4'),
397+
sprintf(get_lang('Topic %s'),'5'),
398398
],
399399
],
400400
true
@@ -420,8 +420,8 @@
420420

421421
$form->addEndPanel();
422422

423-
$form->addStartPanel('niveau_langue', '<input type="checkbox" name="search_using_3" '.$searchChecked3.' />&nbsp;'.get_lang('Niveau Langue'));
424-
$form->addHtml('<p class="text-info">'.get_lang('Niveau Langue Explanation').'</p>');
423+
$form->addStartPanel('niveau_langue', '<input type="checkbox" name="search_using_3" '.$searchChecked3.' />&nbsp;'.get_lang('Language level'));
424+
$form->addHtml('<p class="text-info">'.get_lang('Language level explanation').'</p>');
425425

426426
$showOnlyThisFields = [
427427
'ecouter',
@@ -445,16 +445,16 @@
445445
['domaine' => 3, $theme => 5], // $separateExtraMultipleSelect
446446
[
447447
'domaine' => [
448-
get_lang('Domaine').' 1',
449-
get_lang('Domaine').' 2',
450-
get_lang('Domaine').' 3',
448+
sprintf(get_lang('Domain %s'),'1'),
449+
sprintf(get_lang('Domain %s'),'2'),
450+
sprintf(get_lang('Domain %s'),'3'),
451451
],
452452
$theme => [
453-
get_lang('Theme').' 1',
454-
get_lang('Theme').' 2',
455-
get_lang('Theme').' 3',
456-
get_lang('Theme').' 4',
457-
get_lang('Theme').' 5',
453+
sprintf(get_lang('Topic %s'),'1'),
454+
sprintf(get_lang('Topic %s'),'2'),
455+
sprintf(get_lang('Topic %s'),'3'),
456+
sprintf(get_lang('Topic %s'),'4'),
457+
sprintf(get_lang('Topic %s'),'5'),
458458
],
459459
]
460460
);

public/main/search/search.php

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -307,7 +307,7 @@
307307
if ($userForm->hasElement('extra_access_start_date')) {
308308
$userForm->addRule(
309309
['extra_access_start_date', 'extra_access_end_date'],
310-
get_lang('StartDateMustBeBeforeTheEndDate'),
310+
get_lang('Start date must be before the end date'),
311311
'compare_datetime_text',
312312
'< allow_empty'
313313
);
@@ -371,7 +371,7 @@
371371
if ($userForm->hasElement('extra_datedebutstage')) {
372372
$userForm->addRule(
373373
['extra_datedebutstage', 'extra_datefinstage'],
374-
get_lang('StartDateMustBeBeforeTheEndDate'),
374+
get_lang('Start date must be before the end date'),
375375
'compare_datetime_text',
376376
'< allow_empty'
377377
);
@@ -382,12 +382,12 @@
382382
$userForm->addButtonSave(get_lang('Save'), 'submit_partial[dispo_pendant_stage]');
383383
$userForm->addEndPanel();
384384

385-
$userForm->addStartPanel('theme_obj', get_lang('Themes Objectifs'));
386-
$userForm->addHtml('<p class="text-info">'.get_lang('Themes Objectifs Explanation').'</p>');
385+
$userForm->addStartPanel('theme_obj', get_lang('Topics objectives'));
386+
$userForm->addHtml('<p class="text-info">'.get_lang('Topics objectives explanation').'</p>');
387387

388388
$introductionTextList = [
389-
'domaine' => get_lang('Domaine Introduction'),
390-
$theme => get_lang('Theme Field Introduction'),
389+
'domaine' => get_lang('Domain introduction'),
390+
$theme => get_lang('Topic field introduction'),
391391
];
392392

393393
$fieldsToShow = [
@@ -409,16 +409,16 @@
409409
['domaine' => 3, $theme => 5], // $separateExtraMultipleSelect
410410
[
411411
'domaine' => [
412-
get_lang('Domaine').' 1',
413-
get_lang('Domaine').' 2',
414-
get_lang('Domaine').' 3',
412+
sprintf(get_lang('Domain %s'),'1'),
413+
sprintf(get_lang('Domain %s'),'2'),
414+
sprintf(get_lang('Domain %s'),'3'),
415415
],
416416
$theme => [
417-
get_lang('ThemeField').' 1',
418-
get_lang('ThemeField').' 2',
419-
get_lang('ThemeField').' 3',
420-
get_lang('ThemeField').' 4',
421-
get_lang('ThemeField').' 5',
417+
sprintf(get_lang('Topic %s'),'1'),
418+
sprintf(get_lang('Topic %s'),'2'),
419+
sprintf(get_lang('Topic %s'),'3'),
420+
sprintf(get_lang('Topic %s'),'4'),
421+
sprintf(get_lang('Topic %s'),'5'),
422422
],
423423
],
424424
true, //$addEmptyOptionSelects
@@ -430,8 +430,8 @@
430430
$userForm->addButtonSave(get_lang('Save'), 'submit_partial[theme_obj]');
431431
$userForm->addEndPanel();
432432

433-
$userForm->addStartPanel('niveau_langue', get_lang('Niveau Langue'));
434-
$userForm->addHtml('<p class="text-info">'.get_lang('Niveau Langue Explanation').'</p>');
433+
$userForm->addStartPanel('niveau_langue', get_lang('Language level'));
434+
$userForm->addHtml('<p class="text-info">'.get_lang('Language level explanation').'</p>');
435435

436436
$fieldsToShow = [
437437
//'competenceniveau'
@@ -510,8 +510,8 @@
510510
$userForm->addButtonSave(get_lang('Save'), 'submit_partial[methode_travail]');
511511
$userForm->addEndPanel();
512512

513-
$userForm->addStartPanel('environnement', get_lang('Mon Environnement De Travail'));
514-
$userForm->addHtml('<p class="text-info">'.get_lang('Mon Environnement De Travail').'</p>');
513+
$userForm->addStartPanel('environnement', get_lang('My work environment'));
514+
$userForm->addHtml('<p class="text-info">'.get_lang('My work environment').'</p>');
515515

516516
$fieldsToShow = [
517517
'outil_de_travail_ordinateur',

src/CoreBundle/EventListener/CidReqListener.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@ public function onKernelRequest(RequestEvent $event): void
168168
$group->setParent($course);
169169

170170
if (false === $checker->isGranted(GroupVoter::VIEW, $group)) {
171-
throw new AccessDeniedException($this->translator->trans('You\'re not allowed in this group'));
171+
throw new AccessDeniedException($this->translator->trans("You're not allowed in this group"));
172172
}
173173

174174
$sessionHandler->set('gid', $groupId);

translations/messages.ar.po

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2528,9 +2528,6 @@ msgstr " هذا التصنيف الذي سيوضع الدرس ضمنه"
25282528
msgid "If you are unsure of your course code, consult the training details."
25292529
msgstr " إذا كنت في شك من رمز مقررك, استشر"
25302530

2531-
msgid "Course Program</a>. If your course has no code, whatever the reason, invent one. For instance <i>INNOVATION</i> if the course is about Innovation Management"
2532-
msgstr " برنامج المقرر</a> إذا لم يكن لدى مقررك رمز خاص . لأي سبب كان . اخترع واحدا , مثلا : <i>حاسب</i> إذا كان مقررك خاص بالحاسب الآلي"
2533-
25342531
msgid "SCORM Path builder"
25352532
msgstr " مولد سكورم مسار التّعلم"
25362533

0 commit comments

Comments
 (0)