english UK locale is missing generating US date strings in graphs

XMLWordPrintable

    • Type: Incident report
    • Resolution: Unresolved
    • Priority: Trivial
    • None
    • Affects Version/s: 3.0.3
    • Component/s: Frontend (F)
    • Environment:
      RHEL

      Graph dates format are coming out in US format even though the local is en_GB.

      Delving into the matter the following folder /usr/share/zabbix/locale/en_GB/ and its contents are missing.

      Looking at the release tarball its not in there either, so its not something specific to my build

      $ pwd
      /home/cscott/t/zabbix-3.0.3/frontends/php/locale
      $ ls en_GB
      ls: cannot access en_GB: No such file or directory
      $

      running "./add_new_language.sh en_GB" adds the language pack, however this doesnt fix the date problem.

      Running the following in the en_GB/LC_MESSAGES dir fixes the problem.

      sed -e 's/msgstr "m-d/msgstr "d-m/' -e 's/msgstr "Y-m-d/msgstr "Y-d-m/' -i frontend.po
      msgfmt frontend.po -o frontend.mo

      This should really be fixed at the source level though.

            Assignee:
            Unassigned
            Reporter:
            chris scott
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: