skip to Main Content

Here is the section moodle I'm talking about

I want to change the text field under the "choose.." to a drop down. I’m under the impression that I need to make this change in the Availability folder in moodle?

2

Answers


  1. Please go to your Moodle folder > open lang folder > open en(if you are using any other language open that folder) folder > open moodle.php in any editor > search for "choosedots" and change the text as per your choice.
    Here is the line

    $string['choosedots'] = 'Choose...';
    
    Login or Signup to reply.
  2. To find the string

    First go to Site admin > Development > Debugging

    And switch on "Show origin of languages strings" (debugstringids)

    And save changes

    Then go to the assignment and add ?strings=1 or &strings=1 to the url

    This will display the string id and component of every string

    eg:

    Screenshot of the restrict access popup in Moodle with the string ids displayed

    So the string id is choosedots and the component is moodle

    To change the text of the string, it is advisable to do this through language customisation rather than development.

    Go to Site admin > Language > Language customisation > [Choose language] > Open language for customisation

    Then search for Component = Moodle.php and String identifier = choosedots

    You can then change the text – this is a core Moodle string though, so beware that this will change the string everywhere not just in the assignment activity

    Screenshot of the language customisation screen in Moodle

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search