Is it possible to change the language settings in just ONE course?

Is it possible to change the language settings in just ONE course?

by Richard van Iwaarden -
Number of replies: 4
Picture of Particularly helpful Moodlers

We would like to have ONE course in which we can use special language. For example, we want te rename the 'GRADE' button and 'VIEW ALL SUBMISSIONS' from the assignment module.

But... we only want this done in ONE course.

Is this possible?

Average of ratings: Useful (1)
In reply to Richard van Iwaarden

Re: Is it possible to change the language settings in just ONE course?

by Visvanath Ratnaweera -
Picture of Particularly helpful Moodlers Picture of Translators
Hi

What is the special language? Does Moodle have a language pack for it? Then it is a matter of setting the language in the course settings!
In reply to Visvanath Ratnaweera

Re: Is it possible to change the language settings in just ONE course?

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers

Actually, our Moodle is plain English but you are setting me on the right track here.

What if.... I install a second 'English' language? I would be able to alter that one wouldn't I?


Average of ratings: Useful (1)
In reply to Richard van Iwaarden

Re: Is it possible to change the language settings in just ONE course?

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

It is not doable via standard language customization feature. All local language pack customization apply site-wide.

But you should be able to do with a new language pack, say en_special.

  1. Create a directory like moodledata/lang/en_special/
  2. Turn it into a new language pack:
<?php // This is the file <moodledata>/lang/en_special/langconfig.php

$string['thislanguage'] = 'English (our special)';
$string['thislanguageint'] = 'English (our special)';
$string['parentlanguage'] = 'en';
  1. Add more string files in it with the required modifications, e.g.
<?php // This is the file <moodledata>/lang/en_special/assign.php

$string['viewgrading'] = 'View all projects';
  1. Purge caches after any modifications to the files are done.
  2. Edit that one course settings and make this new language a forced one it the course.

Not tested but it could work.

Average of ratings: Useful (8)
In reply to David Mudrák

Re: Is it possible to change the language settings in just ONE course?

by Richard van Iwaarden -
Picture of Particularly helpful Moodlers
Thanks David!


Actually, I just tested that and it does work. Also, I have another option: just use en_us or en_kids and alter these language strings trough the normal interface.


Then apply that language to one course... tested this and it works fine!


The rest of the site can stay 'normal' english...

Average of ratings: Useful (5)