In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces Zabbix 5.2 how to Chinese, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
Text
You can learn from the official website that the Chinese translation of Zabbix is available at
/ usr/share/zabbix/locale/zh_CN/LC_MESSAGES directory.
If you use a normal vi or vim tool translation will show garbled, so you need to use other tools, the approach adopted in this article is to first translate from the .mo suffix to the .po suffix, and then edit it with text editing tools such as vim, and then decompile to the .mo suffix file.
Display garbled code
Translation premise
The premise of translation, we need to have gettext software. Check it by rpm-qa | grep gettext command. CentOS has this file by default. If not, please install it yourself.
Reverse translation process
From po to mo called translation, from mo to po called reverse translation
1. Back up the relevant files first
Cd / usr/share/zabbix/locale/zh_CN/LC_MESSAGES cp frontend.mo frontend.mo.bak
two。 Translation of documents
Cd / usr/share/zabbix/locale/zh_CN/LC_MESSAGES msgunfmt frontend.mo-o frontend.po
3. Edit inversely translated documents
Vim frontend.po
A puzzling translation
We can translate twice through this file. The first line (msgid) represents English and the second line (msgstr) represents Chinese.
There are two situations here, one is not translated, and the other is a bit bizarre translation (All dashboard above).
Untranslated
Modify the translation
New translation field
Compilation process
After the modification is completed, you need to compile the po file into a mo file recognized by zabbix, and restart the related services
Rm-rf frontend.mo msgfmt-o frontend.mo frontend.po systemctl restart httpd zabbix-server php-fpm
Effect picture
All improved dashboards
User role
The Sinicization of the action part
Thank you for reading this article carefully. I hope the article "how to Sinicize Zabbix 5.2" shared by the editor will be helpful to everyone. At the same time, I also hope that you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.