Moodle

No default language when a course is requested

Details

  • Type: Improvement Improvement
  • Status: Open Open
  • Priority: Minor Minor
  • Resolution: Unresolved
  • Affects Version/s: 1.6.1, 1.8
  • Fix Version/s: None
  • Component/s: Course
  • Labels:
    None
  • Database:
    MySQL
  • Affected Branches:
    MOODLE_16_STABLE, MOODLE_18_STABLE

Description

When you ask your admin to create a new course, using course/request.php, if the admin is agree, the course is created in english, not in the default language.
If admin forgot to change this, it's not really funny for people who don't speak english.

Can't the course created using course/request.php be in default site language ?

Issue Links

Activity

Hide
Koen Roggemans added a comment -

Noticed this too. Course is set to forced language english

Show
Koen Roggemans added a comment - Noticed this too. Course is set to forced language english
Hide
Martin Dougiamas added a comment -

I'm not quite sure what you mean "in english" ... I would assume the course language is not set, which means the course appears in the user's language or site language. Are you saying the course language is forced to the admin's language?

Show
Martin Dougiamas added a comment - I'm not quite sure what you mean "in english" ... I would assume the course language is not set, which means the course appears in the user's language or site language. Are you saying the course language is forced to the admin's language?
Hide
Martin Dougiamas added a comment -

oops just saw koen's comment

Show
Martin Dougiamas added a comment - oops just saw koen's comment
Hide
Eric Bugnet added a comment -

Hi, and sorry for the long time : my first son just brith sunday !

I mean that the course is created in English, not in user / site / admin or default language.
Admin in french, user in french, default site language in french -> and course is created in english.

Show
Eric Bugnet added a comment - Hi, and sorry for the long time : my first son just brith sunday ! I mean that the course is created in English, not in user / site / admin or default language. Admin in french, user in french, default site language in french -> and course is created in english.
Hide
Patrick Pollet added a comment -

When course/pending.php creates the new record in mdl_course, lang is not set, so it defaults to MySQL default value, i.e. en_utF8.
So editing of the course (called by redirect ('course/edit.php?id=xxx) by course/pending.php displays the form in english.

I fixed it in Moodle 1.72 by adding the following at line 46 of course/pending.php :

46,48d41
//PP set default language to site default, otherwise will be set to en_utf8 (MySQL default value)
// and first editing will be in english
$course->lang=$CFG->lang;

Cheers.

Show
Patrick Pollet added a comment - When course/pending.php creates the new record in mdl_course, lang is not set, so it defaults to MySQL default value, i.e. en_utF8. So editing of the course (called by redirect ('course/edit.php?id=xxx) by course/pending.php displays the form in english. I fixed it in Moodle 1.72 by adding the following at line 46 of course/pending.php : 46,48d41 //PP set default language to site default, otherwise will be set to en_utf8 (MySQL default value) // and first editing will be in english $course->lang=$CFG->lang; Cheers.

People

Vote (2)
Watch (1)

Dates

  • Created:
    Updated: