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

Change language fails if you pick a lang not supported by a remote addon

    XMLWordPrintable

Details

    • Hide
      1. Install a remote addon with only a language file: English. (Use prototype site where the certificate module is installed: 3.2)
      2. In the app, login in that site. Check that remote addon is loaded (you can just add some console.log in the remote addon and check that they appear in the console).
      3. Go to App Settings > General and change the language to Serbian or German du. Check that the app language is changed.
      Show
      Install a remote addon with only a language file: English. (Use prototype site where the certificate module is installed: 3.2) In the app, login in that site. Check that remote addon is loaded (you can just add some console.log in the remote addon and check that they appear in the console). Go to App Settings > General and change the language to Serbian or German du. Check that the app language is changed.
    • MOODLE_33_STABLE
    • MOODLE_34_STABLE
    • Moodle Mobile 3.4.0

    Description

      In app settings, if you select a language that is not supported by a remote addon then the language is NOT changed. If you restart the app, then the language is correctly loaded.

      The console displays an error saying that the lang file wasn't found in the remote addon folder.

      We had a similar problem in the past, but it happened when the remote addon was registered. We had this code to fix it, but it was fixed in an update of the angular-translate library so it was removed. Now the problem is in the changeCurrentLanguage function.

      Attachments

        Activity

          People

            dpalou Dani Palou
            dpalou Dani Palou
            Pau Ferrer Pau Ferrer
            Juan Leyva Juan Leyva
            Berta Maroto Berta Maroto
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:
              30/Nov/17