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

Only languages in the langmenu are being returned for site plugins

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: Minor Minor
    • 3.5.6, 3.6.4
    • 3.6.3
    • Other
    • MOODLE_36_STABLE
    • MOODLE_35_STABLE, MOODLE_36_STABLE
    • MDL-65141-master
    • Hide
      1. As admin, install the Italian and Portuguese language packs via Site administration > Language > Language packs
      2. Download and install the Mod Custom Certificate plugin from here: https://github.com/markn86/moodle-mod_customcert/archive/MOODLE_36_STABLE.zip (the contents of the zip has to be placed in the mod/customcert folder)
      3. Now, in the language settings, enable the option "Display language menu" and in the "Languages on language menu" option set the following value "en, it"
      4. As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings
      5. Create a Token in the mobile app service for any user in the site (not an admin account)
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      6. Open the console an execute this new curl request, replacing wstoken with the token you just created and the site url with yours.

        curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_plugins_supporting_mobile&wstoken=3af67232a7596ceb658df4db329e5ad6' | python -m "json.tool"

      7. And check that among the returned data you see a field "lang" with a json string that contains strings in English, Italian and Portuguese
      Show
      As admin, install the Italian and Portuguese language packs via Site administration > Language > Language packs Download and install the Mod Custom Certificate plugin from here: https://github.com/markn86/moodle-mod_customcert/archive/MOODLE_36_STABLE.zip (the contents of the zip has to be placed in the mod/customcert folder) Now, in the language settings, enable the option "Display language menu" and in the "Languages on language menu" option set the following value "en, it" As admin, enable "Mobile services": Site administration ► Mobile app ► Mobile settings Create a Token in the mobile app service for any user in the site (not an admin account) Click on Site administration ► Plugins ► Web services ► Manage tokens Open the console an execute this new curl request, replacing wstoken with the token you just created and the site url with yours. curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_plugins_supporting_mobile&wstoken=3af67232a7596ceb658df4db329e5ad6' | python -m "json.tool" And check that among the returned data you see a field "lang" with a json string that contains strings in English, Italian and Portuguese

      Right now, for site plugins, we are just returning the languages enabled but the current function that checks that returns only languages in the langmenu if they are present.

      We must fix that because we may have enabled languages but not in the langmenu

            jleyva Juan Leyva
            jleyva Juan Leyva
            Dani Palou Dani Palou
            Jun Pataleta Jun Pataleta
            Janelle Barcega Janelle Barcega
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 0 minutes
                0m
                Logged:
                Time Spent - 2 hours, 25 minutes
                2h 25m

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