Uploaded image for project: 'Moodle app'
  1. Moodle app
  2. MOBILE-778 META: Migrate to Ionic
  3. MOBILE-1046

Language variations are not loaded automatically

    XMLWordPrintable

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0
    • Fix Version/s: 2.0
    • Component/s: Internationalization
    • Labels:
    • Testing Instructions:
      Hide

      To test this, the setting current_language cannot be set. If you ever changed the language via app settings, you need to either uninstall the app or use $mmConfig.delete('current_language').

      1. Install the app in a real device that has a language variation set supported by the app (like es-mx)
      2. Check that the right language is loaded. There are several ways to check it:
        • Open the console and check that an error like this appears with your language variation:

          GET http://localhost:8100/build/lang/es-mx.json 404 (Not Found)
          

        • Create a fake translation file for that language variation. E.g. I duplicated build/lang/en.json, renamed it to es-mx.json and added "MX" to all the strings. Install the app and check that all the messages shown have that "MX".
      Show
      To test this, the setting current_language cannot be set. If you ever changed the language via app settings, you need to either uninstall the app or use $mmConfig.delete('current_language'). Install the app in a real device that has a language variation set supported by the app (like es-mx) Check that the right language is loaded. There are several ways to check it: Open the console and check that an error like this appears with your language variation: GET http://localhost:8100/build/lang/es-mx.json 404 (Not Found) Create a fake translation file for that language variation. E.g. I duplicated build/lang/en.json, renamed it to es-mx.json and added "MX" to all the strings. Install the app and check that all the messages shown have that "MX".
    • Affected Branches:
      MOODLE_20_STABLE
    • Fixed Branches:
      MOODLE_20_STABLE
    • Pull Master Branch:

      Description

      If you mobile device is configured to use a language variation (Mexican spanish) the language is not automatically loaded, instead, the main language (spanish) is displayed.

      You need to change the language in the main menu for displaying the correct language

        Attachments

          Activity

            People

            Assignee:
            dpalou Dani Palou
            Reporter:
            jleyva Juan Leyva
            Peer reviewer:
            Frédéric Massart Frédéric Massart
            Integrator:
            Juan Leyva Juan Leyva
            Tester:
            Juan Leyva Juan Leyva
            Participants:
            Component watchers:
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Fix Release Date:
              31/Jul/15