Uploaded image for project: 'Sakai'
  1. Sakai
  2. SAK-44009

i18n webcomponent doesn't work when Tomcat's locale is not en_US

    XMLWordPrintable

    Details

    • Test Plan:
      Hide

      This can't be tested in a QA server because Tomcat's configuration is not available.

      In local deployments with Tomcat locale available, just change it i.e. to spanish (-Duser.language=es -Duser.region=ES) and try to load Roster, Rubrics or Clog with english selected in user's preferences.

      Show
      This can't be tested in a QA server because Tomcat's configuration is not available. In local deployments with Tomcat locale available, just change it i.e. to spanish (-Duser.language=es -Duser.region=ES) and try to load Roster, Rubrics or Clog with english selected in user's preferences.

      Description

      When Tomcat is configured with a default language that is not english (i.e: -Duser.language=es -Duser.region=ES ), tools using the i18n webcomponent (Roster, Clog, Commons and Rubrics) don't work when user's preferred language is english.

      In Roster and Clog a javascript error happens in the console:

      Uncaught TypeError: Cannot read property 'split' of undefined
      at Object.roster.init (roster.js?version=MiAulario-Csie-Pruebas:800)

      But the issue is that the i18n object is undefined.

      AFAIK all QA Tomcats are configured with english locale, so this can't be tested there.

        Gliffy Diagrams

          Zeplin

            Attachments

              Issue Links

                Activity

                  People

                  Assignee:
                  a.fish@lancaster.ac.uk Adrian Fish
                  Reporter:
                  daniel.merino Daniel Merino Echeverría
                  Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                    Dates

                    Created:
                    Updated:
                    Resolved:

                      Git Integration