Course Extended Name Display Language Modification

Course Extended Name Display Language Modification

by Amy Pont -
Number of replies: 2

Hi,

We are in the process of upgrading from 1.9 to 2.3 and in this, have noticed the change with the way course names are displayed. Currently in 1.9 we have them set look as follows: FullName (ShortName).

However, in 2.3, the option comes up as shortname fullname and I in looking for ways to change this, I came across the "Display extended course names [courselistshortnames]" with the additional text of: "the display uses the 'courseextendednamedisplay' language string, so you can changewhat is displayed using Language customisation."

Problem is, despite looking many times, I cannot find this in the Language customisation nor under any of the "course" options withing there. Infact, "course.php" is empty of any strings. Am I looking for the wrong thing here? Or is this something that may need a change on the php files rather than through Site Administration > Language > Language customisation.

Hope someone can help.

Thank you in advance.

Amy

Average of ratings: -
In reply to Amy Pont

Re: Course Extended Name Display Language Modification

by David Mudrák -
Picture of Core developers Picture of Documentation writers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers Picture of Plugins guardians Picture of Testers Picture of Translators

Hi Amy

  1. Go to the Language customization tool page and open your language for editing
  2. Once loaded, fill the Filter form as follows. Choose component moodle.php (not course.php) and type 'courseextendednamedisplay'. Click Show strings.
  3. Into the empty text field for that field (yes, they all are empty initially as there is no string customized by default) you will want to insert something like

    {$a->fullname} ({$a->shortname})

  4. Click Save changes to the language pack.

For more details, please check the documentation.

Attachment screenshot.png
Average of ratings: Useful (3)
In reply to David Mudrák

Re: Course Extended Name Display Language Modification

by Amy Pont -

Hi David,

Thank you very much for your reply. I had been in Language Customisation and changed quite a few other things but for the life of me I just could not find that string and it was driving me nuts.

So again, thank you so much for your prompt reply.

Amy