Uploaded image for project: 'Moodle'
  1. Moodle
  2. MDL-22422

Parent language doesn't fully work with customscripts

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: Minor Minor
    • None
    • 1.9.8
    • General, Language, Libraries
    • None
    • MOODLE_19_STABLE

      If we set Moodle to use a package "pt_br_foo", that has parentlanguage set to "pt_br" , and in a custom script i call get_string passing the path to my customscripts lang folder "customscript/lang/" as extra location, the get_string function will not search inside "pt_br" , unless i create a langconfig.php file inside it and set the parentlanguage to "pt_br".

      I am attaching a patch (parentlanguage.customscript.diff) that search for the langconfig.php file in the main directory of language (both at dirroot and dataroot) and not at the extralocation directory.

            mudrd8mz David Mudrák (@mudrd8mz)
            danielneis Daniel Neis Araujo
            Nobody Nobody (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:

                Error rendering 'clockify-timesheets-time-tracking-reports:timer-sidebar'. Please contact your Jira administrators.