Uploaded image for project: 'Moodle Community Sites'
  1. Moodle Community Sites
  2. MDLSITE-4429

'thisdirection' string can be translated in AMOS

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Open
    • Priority: High
    • Resolution: Unresolved
    • Component/s: lang.moodle.org
    • Labels:
      None

      Description

      With reference to: https://moodle.org/mod/forum/discuss.php?d=328567 it looks like it is possible for the non-language string 'thisdirection' to be translated. This is used in '/lib/pagelib.php':

      $this->add_body_class('dir-' . get_string('thisdirection', 'langconfig'));
      

      which when translated can cause this in the More theme:

      thus completely breaking it.

      Therefore a 'guard' needs to be put in place to prevent this string from changing in the language pack.

      Also noticed that 'btt' for 'thisdirectionvertical':

      $this->requires->string_for_js('thisdirectionvertical', 'langconfig');
      

      was also translated. This affects the dock.

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            gb2048 Gareth J Barnard
            Participants:
            Component watchers:
            David Mudrák (@mudrd8mz)
            Votes:
            5 Vote for this issue
            Watchers:
            8 Start watching this issue

              Dates

              Created:
              Updated: