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

Locale not detected properly on IIS 8.5

    XMLWordPrintable

    Details

    • Team:
      Team C
    • Sprint:
      Sprint 19
    • Story Points:
      0.125

      Description

      After transfering zabbix-web-mysql to IIS, I got this error:

      Locale for language "ru_RU" is not found on the web server.

      But russian translate working.
      After some debuging I found this, in file ./include/locales.inc.php(95):

      if ((stristr($_SERVER['SERVER_SOFTWARE'], 'win32') !== false) || (stristr($_SERVER['SERVER_SOFTWARE'], 'win64') !== false)) {

      $_SERVER['SERVER_SOFTWARE'] defined as "Microsoft-IIS/8.5".
      So, I changed this line to:

      if ((stristr($_SERVER['SERVER_SOFTWARE'], 'win32') !== false) || (stristr($_SERVER['SERVER_SOFTWARE'], 'win64') !== false) || (stristr($_SERVER['SERVER_SOFTWARE'], 'Microsoft-IIS/8.5') !== false)) {

      And error disappears.
      But this time, If I select russian translate in profile, I still got english frontend.

        Attachments

          Activity

            People

            Assignee:
            vjaceslavs Vjaceslavs Bogdanovs
            Reporter:
            NexonSU Nexon Rievsky
            Votes:
            0 Vote for this issue
            Watchers:
            6 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: