Language: Fix language variables in course details

pull/5665/head
Yannick Warnier 4 months ago
parent aa709cd5a4
commit f05c6adff5
  1. 6
      public/main/admin/course_add.php
  2. 6
      public/main/admin/course_edit.php
  3. 2
      public/main/admin/course_list.php

@ -97,7 +97,7 @@ $form->applyFilter('department_name', 'trim');
// Department URL // Department URL
$form->addText( $form->addText(
'department_url', 'department_url',
get_lang('DepartmentURL'), get_lang('Department URL'),
false, false,
['size' => '60', 'id' => 'department_url'] ['size' => '60', 'id' => 'department_url']
); );
@ -135,7 +135,7 @@ $form->addGroup($group, '', get_lang('Subscription'));
$group = []; $group = [];
$group[] = $form->createElement('radio', 'unsubscribe', get_lang('Unsubscribe'), get_lang('Users are allowed to unsubscribe from this course'), 1); $group[] = $form->createElement('radio', 'unsubscribe', get_lang('Unsubscribe'), get_lang('Users are allowed to unsubscribe from this course'), 1);
$group[] = $form->createElement('radio', 'unsubscribe', null, get_lang('NotUsers are allowed to unsubscribe from this course'), 0); $group[] = $form->createElement('radio', 'unsubscribe', null, get_lang('Users are not allowed to unsubscribe from this course'), 0);
$form->addGroup($group, '', get_lang('Unsubscribe')); $form->addGroup($group, '', get_lang('Unsubscribe'));
$form->addElement('text', 'disk_quota', [get_lang('Disk Space'), null, get_lang('MB')], [ $form->addElement('text', 'disk_quota', [get_lang('Disk Space'), null, get_lang('MB')], [
@ -143,7 +143,7 @@ $form->addElement('text', 'disk_quota', [get_lang('Disk Space'), null, get_lang(
]); ]);
$form->addRule('disk_quota', get_lang('This field should be numeric'), 'numeric'); $form->addRule('disk_quota', get_lang('This field should be numeric'), 'numeric');
$form->addText('video_url', get_lang('Video URL'), false); $form->addText('video_url', get_lang('Video URL'), false);
$form->addCheckBox('sticky', null, get_lang('Sticky')); $form->addCheckBox('sticky', null, get_lang('Special course'));
$obj = new GradeModel(); $obj = new GradeModel();
$obj->fill_grade_model_select_in_form($form); $obj->fill_grade_model_select_in_form($form);

@ -227,7 +227,7 @@ $form->addText('department_name', get_lang('Department'), false, ['size' => '60'
$form->applyFilter('department_name', 'html_filter'); $form->applyFilter('department_name', 'html_filter');
$form->applyFilter('department_name', 'trim'); $form->applyFilter('department_name', 'trim');
$form->addText('department_url', get_lang('DepartmentURL'), false, ['size' => '60']); $form->addText('department_url', get_lang('Department URL'), false, ['size' => '60']);
$form->applyFilter('department_url', 'html_filter'); $form->applyFilter('department_url', 'html_filter');
$form->applyFilter('department_url', 'trim'); $form->applyFilter('department_url', 'trim');
@ -242,7 +242,7 @@ $form->addGroup($group, '', get_lang('Subscription'));
$group = []; $group = [];
$group[] = $form->createElement('radio', 'unsubscribe', get_lang('Unsubscribe'), get_lang('Users are allowed to unsubscribe from this course'), 1); $group[] = $form->createElement('radio', 'unsubscribe', get_lang('Unsubscribe'), get_lang('Users are allowed to unsubscribe from this course'), 1);
$group[] = $form->createElement('radio', 'unsubscribe', null, get_lang('NotUsers are allowed to unsubscribe from this course'), 0); $group[] = $form->createElement('radio', 'unsubscribe', null, get_lang('Users are not allowed to unsubscribe from this course'), 0);
$form->addGroup($group, '', get_lang('Unsubscribe')); $form->addGroup($group, '', get_lang('Unsubscribe'));
$form->addElement('text', 'disk_quota', [get_lang('Disk Space'), null, get_lang('MB')]); $form->addElement('text', 'disk_quota', [get_lang('Disk Space'), null, get_lang('MB')]);
@ -250,7 +250,7 @@ $form->addRule('disk_quota', get_lang('Required field'), 'required');
$form->addRule('disk_quota', get_lang('This field should be numeric'), 'numeric'); $form->addRule('disk_quota', get_lang('This field should be numeric'), 'numeric');
$form->addText('video_url', get_lang('Video URL'), false); $form->addText('video_url', get_lang('Video URL'), false);
$form->addCheckBox('sticky', null, get_lang('Sticky')); $form->addCheckBox('sticky', null, get_lang('Special course'));
if ('true' === api_get_setting('course.show_course_duration')) { if ('true' === api_get_setting('course.show_course_duration')) {
$form->addElement('text', 'duration', get_lang('Duration (in minutes)'), [ $form->addElement('text', 'duration', get_lang('Duration (in minutes)'), [

@ -469,7 +469,7 @@ if (isset($_GET['search']) && 'advanced' === $_GET['search']) {
$form->addElement('radio', 'keyword_subscribe', null, get_lang('This function is only available to trainers'), 0); $form->addElement('radio', 'keyword_subscribe', null, get_lang('This function is only available to trainers'), 0);
$form->addElement('radio', 'keyword_subscribe', null, get_lang('All'), '%'); $form->addElement('radio', 'keyword_subscribe', null, get_lang('All'), '%');
$form->addElement('radio', 'keyword_unsubscribe', get_lang('Unsubscribe'), get_lang('Users are allowed to unsubscribe from this course'), 1); $form->addElement('radio', 'keyword_unsubscribe', get_lang('Unsubscribe'), get_lang('Users are allowed to unsubscribe from this course'), 1);
$form->addElement('radio', 'keyword_unsubscribe', null, get_lang('NotUsers are allowed to unsubscribe from this course'), 0); $form->addElement('radio', 'keyword_unsubscribe', null, get_lang('Users are not allowed to unsubscribe from this course'), 0);
$form->addElement('radio', 'keyword_unsubscribe', null, get_lang('All'), '%'); $form->addElement('radio', 'keyword_unsubscribe', null, get_lang('All'), '%');
$form->addButtonSearch(get_lang('Search courses')); $form->addButtonSearch(get_lang('Search courses'));
$defaults['keyword_language'] = '%'; $defaults['keyword_language'] = '%';

Loading…
Cancel
Save