Uploaded image for project: 'Felix'
  1. Felix
  2. FELIX-3408

Web Console date chooser shows garbage text

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • webconsole-3.1.8
    • webconsole-4.0.0
    • Web Console
    • None

    Description

      Steps to reproduce:

      • clear cache
      • restart browser
      • set default browser locale to something different than english
      • open web console in the browser
      • use a plugin that uses the date chooser
      • popup the date chooser and you will see some strange characters for the days

      We tried to solve the same problem a long time ago, by adding the following code to support.js:
      var locale = getCookie("locale");
      if (locale)

      { if ( !$.datepicker.regional[locale] ) locale = ''; $.datepicker.setDefaults($.datepicker.regional[locale]); }

      The problem is when you open the web console for first time, the cookie is not set. It is set when you choose it using the flags on the top-right side of the window.
      Unfortunately from javascript we cannot read the browser locale (at least, that is not portable). So the only solution would be that the web console sets the language cookie with every request.

      Attachments

        1. chinese.JPG
          14 kB
          Valentin Valchev

        Activity

          People

            v_valchev Valentin Valchev
            v_valchev Valentin Valchev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: