Zabbix server-side installation, found that all are English, for most people need to Chinese, it is easy to be accepted, a bit is the steps of the Chinese, specifically as follows:
1, modify the Chinese support in the locales.inc.php file to turn flase to True (Zabbix default is off, actually supports Chinese)
[[email protected] ~]# vi /data/php/include/locales.inc.php <?php/*** zabbix* * copyright (C) 2001-2016 zabbix sia**** this program is free software; you can redistribute it and/or modify** it under the terms of the gnu general public license as published by* * the free software foundation; either version 2 of the license, or** (at your option) any later version.**** This program is distributed in the hope that it will be useful,** but without any warranty; without even the implied warranty of** merchantability or fitness for a particular purpose. see the** gnu generaL public license for more details.**** you should have received a copy of the GNU General Public License** along with This program; if not, write to the free software** foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, usa.**/function init_mbstrings () { $ res = true; $res &= extension_loaded (' Mbstring '); if (version_compare (PHP_VERSION, ' 5.6 '), ' < ') { ini_set (' mbstring.internal_encoding ', ' UTF-8 '); $res &= (ini_get (' mbstring.internal_encoding ') === ' UTF-8 '); } else { ini_set (' Default_ CharSet ', ' UTF-8 '); $res &= (ini_get (' default_charset ') === ' UTF-8 '); } ini_set (' Mbstring.detect_order ', ' Utf-8, iso-8859-1, jis, sjis '); $res &= (Ini_get (' Mbstring.detect_order ') === ' Utf-8, iso-8859-1, jis, sjis '); return $res;} /** * returns a list of all used locales. * * each locale has the following properties: * - name - the full name of the locale * - display - whether to display the locale in the frontend * * @return array an Array of locales with locale codes as keys and arrays as values */function getlocales () { return [ ' EN_GB ' => [' name ' => _ (' english (EN_GB) '), ' display ' => true], ' en_US ' =>&nbsP [' Name ' => _ (' english (en_US) '), ' Display ' => true ], ' Bg_BG ' => [' name ' => _ (' bulgarian (BG_BG) '), ' Display ' => false], ' Zh_cn ' => [' name ' => _ (' chinese (ZH_CN) '), ' Display ' => true], ' zh_tw ' => [' name ' => _ (' chinese (ZH_TW) '), ' Display ' => false], ' Cs_cz ' => [' name ' => _ (' czech (Cs_cz) '), ' Display ' => true], ' nl_nl ' => [' name ' => _ (' dutch (NL_NL) '), ' Display ' => false], ' Fi_fi ' => [' name ' => _ ( ' finnish (FI_FI) '), ' Display ' => false], ' fr_fr ' => [' name ' => _ (' french (fr_fr) '), ' Display ' => true], ' Ka_ge ' = > [' name ' => _ (' georgian (ka_ge) '), ' Display ' => false], ' De_DE ' => [' Name ' => _ (' german (de_de) '), ' Display ' => false], ' El_GR ' => [' name ' => _ (' greek (el_gr) '), ' Display ' => false], ' Hu_hu ' => [' name ' => _ (' hungarian (hu_hu) '), ' Display ' => false], ' id_id ' => [' name ' => _ (' indonesian (id_id) '), ' Display ' => false],
2, set on the page: Admin--user--language--chinese (ZH_CN)
3, after the modification if the Chinese language interface also appears garbled, the solution is:
1. Modify the fonts in the Zabbix configuration file to modify the profile for Microsoft Jas Font include/defines.inc.php
[Email protected] ~]# vim/data/php/include/defines.inc.php define (' Zbx_font_name ', ' Dejavusans ');d efine (' Zbx_graph _font_name ', ' Dejavusans ');
Modified to:
Define (' Zbx_font_name ', ' msyh ');d efine (' zbx_graph_font_name ', ' msyh ');
2, select under Windows System: Control Panel \ All Control Panel items \ Fonts \ Microsoft Black-and-Right click Copy--paste to the appropriate location
3. Copy these two files to the Zabbix Web-side font directory:/data/php/fonts
[[email protected] ~]# ll/data/php/fonts/total usage 36264-rw-r--r--1 Zabbix zabbix 756072 August 3 10:29 dejavusans.ttf-rw-r--r --1 root root 14602860 June msyhbd.ttf-rw-r--r--1 root root 21767952 June msyh.ttf[[email protecte D] ~]#
The web-side view is normal
This article is from the "Breght Moon" blog, make sure to keep this source http://liqingbiao.blog.51cto.com/3044896/1833895
Zabbix of Chinese