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

Icon tooltips don't update when a language is changed

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Trivial
    • Resolution: Fixed
    • Affects Version/s: 1.5
    • Fix Version/s: None
    • Component/s: HTML Editor (TinyMCE)
    • Labels:
      None
    • Environment:
      All
    • Affected Branches:
      MOODLE_15_STABLE

      Description

      Janne, I know that you know about this bug, as the /lib/editor/lang/en.php now has extra cache control headers, but they still didn't fix this issue completely.

      I had a bit better results with the following cache header changes:

      header(Cache-control: max_age = $lifetime);

      header(Pragma: );

      to

      header(Cache-control: no-store,max_age=-1);

      header(Pragma: no-cache);

      Another, an overkill but catch-all solution would be, that in weblib.php change

      echo '<script type=text/javascript src='. $CFG->wwwroot .'/lib/editor/lang/en.php></script>'.\n;

      to

      echo '<script type=text/javascript src='. $CFG->wwwroot .'/lib/editor/lang/en.php?uniqid=' . uniqid('') . '></script>'.\n;

        Gliffy Diagrams

          Attachments

            Activity

              People

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

                Dates

                • Created:
                  Updated:
                  Resolved: