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

Add new settings for allowing renaming strings in the Mobile app

    XMLWordPrintable

    Details

    • Testing Instructions:
      Hide
      1. Enable "Mobile services": Plugins ► Web Services ► Mobile
      2. Go to Site administration ►Mobile app ►Mobile features
      3. Add some custom strings, like:

        mm.user.student|Learner|en
        mm.user.student|Aprendiz|es
        mm.user.student|Aprendiz|es_mx

      4. Create a WS Token for one standard user:
        • Click on Site administration ► Plugins ► Web services ► Manage tokens
      5. Next, you can do a CURL REST call simulating a WS client with the user.
        • You need to replace the wstoken, and the URL of your moodle instance

          curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=12a2a65aeea2a177055e233f9e303218&section=mobileapp' | python -m "json.tool"

      6. Check that you receive correctly the new customlangstrings
      7. Go to the mobile settings again, and remove all the customlangstrings
      8. Execute again the curl request and check that now you get an empty value for the customlangstrings
      Show
      Enable "Mobile services": Plugins ► Web Services ► Mobile Go to Site administration ►Mobile app ►Mobile features Add some custom strings, like: mm.user.student|Learner|en mm.user.student|Aprendiz|es mm.user.student|Aprendiz|es_mx Create a WS Token for one standard user: Click on Site administration ► Plugins ► Web services ► Manage tokens Next, you can do a CURL REST call simulating a WS client with the user. You need to replace the wstoken, and the URL of your moodle instance curl 'http://localhost/m/stable_master/webservice/rest/server.php?moodlewsrestformat=json' --data 'wsfunction=tool_mobile_get_config&wstoken=12a2a65aeea2a177055e233f9e303218&section=mobileapp' | python -m "json.tool" Check that you receive correctly the new customlangstrings Go to the mobile settings again, and remove all the customlangstrings Execute again the curl request and check that now you get an empty value for the customlangstrings
    • Affected Branches:
      MOODLE_32_STABLE
    • Fixed Branches:
      MOODLE_33_STABLE
    • Pull from Repository:
    • Pull Master Branch:
      MDL-57408-master

      Description

      We can add this new settings under Mobile app > Mobile features

      This will allow admins to customize the strings for the Mobile app as they can do with the Moodle strings (web version).

      This will be helpful for sites where they use a different terminology or for the Learn Moodle app that renames some options in the app (so we can avoid doing it modifying the app code)

        Attachments

          Issue Links

            Activity

              People

              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Fix Release Date:
                  15/May/17