Language: Fix language variables in course details

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

@ -135,7 +135,7 @@ $form->addGroup($group, '', get_lang('Subscription'));
$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', 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->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->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->fill_grade_model_select_in_form($form);

@ -242,7 +242,7 @@ $form->addGroup($group, '', get_lang('Subscription'));
$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', 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->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->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')) {
$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('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', 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->addButtonSearch(get_lang('Search courses'));
$defaults['keyword_language'] = '%';

Loading…
Cancel
Save