Ambari 2.4.2 汉化

时间:2024-11-17 19:05:01

1、ambari-web

(1)apache-ambari-2.4.2-src/ambari-web/app/messages.js

该文件是KeyValue文件,3000多行。将Value部分翻译成中文即可,Key不要翻译。

(2)apache-ambari-2.4.2-src/ambari-web/app/assets/index.html

将页脚License汉化

(3)apache-ambari-2.4.2-src/ambari-web/app/templates/common/about.hbs

“关于”页面,翻译logo的title,<div class="content">标签内的相关内容需要翻译

(4)apache-ambari-2.4.2-src/ambari-web/app/controllers/wizard.js

翻译277行:

body: “If you proceed to Go back to Step ” + step + “, you will lose any changes you have made beyond this step”

(5)apache-ambari-2.4.2-src/ambari-web/public/javascripts/app.js

33593行: body: “If you proceed to go back to Step ” + step + “, you will lose any changes you have made beyond this step”

44993行:”displayName”: “SecondaryNameNode检查点目录”

46474行: “displayName”: “Flume配置文件目录”,”description”: “保存配置文件的位置”,

到47800行

从48799行

2、ambari-server

(1)apache-ambari-2.4.2-src/ambari-server/src/main/Python/os_check_type.py

添加编码:# -*- coding:utf-8 -*-

翻译了2条:raise Exception

3、ambari-admin

(1)apache-ambari-2.4.2-src/ambari-admin/src/main/resources/ui/admin-web/app/views/modals/AboutModal.html

修改超链接

(2)apache-ambari-2.4.2-src/ambari-admin/src/main/resources/ui/admin-web/app/index.html

翻译了[if lt IE 9]提示部分

(3)apache-ambari-2.4.2-src/ambari-admin/src/main/resources/ui/admin-web/app/scripts/i18n.config.js

翻译

4、ambari-agent

(1)apache-ambari-2.4.2-src/ambari-agent/src/main/python/setup.py

添加编码:# -*- coding:utf-8 -*-

修改了Email、作者、版权等

(2)apache-ambari-2.4.2-src/ambari-agent/src/main/python/ambari_agent/__init__.py

添加编码:# -*- coding:utf-8 -*-

修改了版本、版权等

5、ambari-shell

(1)apache-ambari-2.4.2-src/ambari-shell/ambari-python-shell/src/main/python/setup.py

添加编码:# -*- coding:utf-8 -*-

修改了Email、版权、介绍等

6、图片

替换logo及logo-white

7、添加elasticsearch汉化

(1)/var/lib/ambari-server/resources/common-services/ELASTICSEARCH/5.1.1/metainfo.xml

汉化<comment>

(2)/var/lib/ambari-server/resources/common-services/ELASTICSEARCH/5.1.1/configuration/elastic-config.xml

汉化每一个<description>

(3)/var/lib/ambari-server/resources/common-services/ELASTICSEARCH/5.1.1/configuration/elastic-env.xml

汉化每一个<description>