Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-4352

Pass the current app language as a parameter to the existing ajax endpoints requests

XMLWordPrintable

    • Hide

      This issue can be tested in Android or iOS. It doesn't require to be tested in both OS.
      This should be tested using languages with parent, for example: ex_mx or pt_br

      1. Open the app and go to master site. Click on "Create new account" button and check that the form fields are displayed in the current language.
      2. Go back, change the language and click on "Create new account" again. Now the fields should have the selected language.
      Show
      This issue can be tested in Android or iOS. It doesn't require to be tested in both OS. This should be tested using languages with parent, for example: ex_mx or pt_br Open the app and go to master site. Click on "Create new account" button and check that the form fields are displayed in the current language. Go back, change the language and click on "Create new account" again. Now the fields should have the selected language.
    • MOODLE_402_STABLE
    • MOODLE_403_STABLE
    • Moodle Apps - 2023 Sprint i3.2, Moodle Apps - 2023 Sprint i3.3

      We use two different endpoints:

      lib/ajax/service.php and lib/ajax/service.php and lib/ajax/service_nologin.php, we need to ensure that we always pass as a parameter the current app language

      For example:

      curl 'https://localhost/lib/ajax/service.php?info=auth_email_get_signup_settings&lang=en'  --data-raw '\\{"index":0,"methodname": "tool_mobile_get_public_config","args":{}}' --compressed | python -m "json.tool"

      This will ensure we receive language strings in the proper language when using multi-lang filters, (for example, the sitename for the previous request)

      To test this you can use the master site, using English/Spanish to see a different site name (the word EN or ES will be append)

            alfonso.salces@moodle.com Alfonso Salces
            jleyva Juan Leyva
            Dani Palou Dani Palou
            Isabel Renedo Rouco Isabel Renedo Rouco
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved:

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