[root@centos75 include]# pwd
/var/www/html/zabbix/include
[root@centos75 include]# vi locales.inc.php
function getLocales() {
return [
'en_GB' => ['name' => _('English (en_GB)'), 'display' => true],
'en_US' => ['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' => true],
=========================================================
Zabbix MAP 支援中文字顯示修改的方式
[root@centos75 fonts]# pwd
/var/www/html/zabbix/fonts
[root@centos75 fonts]# ls -la DejaVuSans.ttf
-rw-r--r-- 1 root root 756072 Sep 15 16:26 DejaVuSans.ttf
[root@centos75 fonts]# file DejaVuSans.ttf
DejaVuSans.ttf: TrueType font data
可以用任一種繁中 TrueType font 去取代 DejaVuSans.ttf 檔案即可
=============================================================
Zabbix MAP 字型大小修改處
[root@centos75 include]# pwd
/var/www/html/zabbix/include
[root@centos75 include]# vi maps.inc.php
imagetext($im, 8, 0,
$dims = imageTextSize(8, 0, $str);
==============================================================
沒有留言:
張貼留言