Localization in Zenoss

Source: Internet
Author: User

I don't know why. Zenoss official documents do not seem to involve international content. This article gives a brief summary of how Zenoss can be written in Chinese.

Basic Chinese

Http://code.google.com/p/zenforge/wiki/ZenossI18n here contains the basic Chinese package, the Chinese package completed about 60% of the Chinese work, here also describes the basic principles of the Chinese, the following is a reference to the steps and principles

Chinese steps

The Chinese version has been basically completed, and the domain is mainly written into zenoss files. Download the zenoss Chinese file and decompress it to $ ZENHOME/Products/ZenUI3/locales/. Then restart zope.

Note:Currently, zenoss does not fully support internationalization.

Chinese principles
In the file $ ZENHOME/Products/Zuul/utils. in py, the first row contains ZuulMessageFactory = MessageFactory ('zenoss'). Here zope is referenced. the MessageFactory class in the i18nmessageid module defines a domain as zenoss, which is related to the combination of I18n. In the 22nd line of $ ZENHOME/Products/Zuul/search/routers. py, It is abbreviated as _ t. It will be mainly related to _ t in the future. From Products. Zuul. utils import ZuulMessageFactory as _ t
Supplement Chinese

As the Chinese package mentioned above is not completely Chinese, you need to add Chinese to some content. The specific steps are as follows:

1. Open/opt/zenoss/Products/ZenUI3/locales/zh/LC_MESSAGES/zenoss. po.

2. For more information, see the existing Chinese format.

3. Switch to the zenoss user and run msgfmt-o zenoss.mo zenoss. po.

4. Restart zenoss.

Zookeeper

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.