Uploaded image for project: 'ZABBIX BUGS AND ISSUES'
  1. ZABBIX BUGS AND ISSUES
  2. ZBX-10881

english UK locale is missing generating US date strings in graphs

XMLWordPrintable

    • Icon: Incident report Incident report
    • Resolution: Unresolved
    • Icon: Trivial Trivial
    • None
    • 3.0.3
    • Frontend (F)
    • 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.

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

              Created:
              Updated: