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

Conside it JS lang string caching should be by lang or no

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: Minor
    • Resolution: Unresolved
    • Affects Version/s: 3.7
    • Fix Version/s: None
    • Component/s: JavaScript
    • Labels:
      None
    • Affected Branches:
      MOODLE_37_STABLE

      Description

      While working on MDL-63244, a couple of details about the new 3.7 dependencies loader were found:

      1) as far as the new dep loader (MDL-64348) is called with nologin... there is no session, hence language always was defaulting to the site lang. The issue fixed that by explicitly adding the page lang to the dep loader. All ok, so far.

      2) it was also noticed that the string-cache being used is not lang-aware. And that rasied some thoughts about which is its behavior when the user changes of language ...

      As far as 2) was well out from the scope of MDL-63244, it was decided to create this, so we can verify which is current behavior on lang-switching situations, how the js lang string-cache behaves and if we need any change on it (or not). Just to avoid missing it.

      That's all, ciao

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                stronk7 Eloy Lafuente (stronk7)
                Participants:
                Component watchers:
                Jake Dallimore, Jun Pataleta, Ryan Wyllie
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated: