1.常规汉化修改
仪表盘主界面相关汉化 :
ambari-web/app/messages.js
编译后==> ambari-web/public/javascripts/app.js
安装后==> /usr/lib/ambari-server/web/javascripts/app.js
管理员界面相关汉化:ambari-admin/src/main/resources/ui/admin-web/app/scripts/i18n.config.js
编译后==>不变
安装后==>/var/lib/ambari-server/resources/views/work/ADMIN_VIEW{2.4.0.0}/scripts/main.js
ambari-admin\src\main\resources\ui\admin-web\app\scripts\controllers\mainCtrl.js
/ambari-admin/src/main/resources/ui/admin-web/app/views/modals/AboutModal.html
ambari\ambari-admin\src\main\resources\ui\admin-web\app\index.html
2. 主页底部版权信息的修改
修改ambari-web/app/assets/index.html
编译后==> ambari-web/public/index.html
安装后 ==> /usr/lib/ambari-server/web/index.html
3.登录框修改
ambari-web/app/templates/login.hbs
编译后==> public/javascripts/app.js
安装后==> /usr/lib/ambari-server/web/javascripts/app.js
4.DashBoard 页头
/ambari-web/app/templates/application.hbs
编译后==> public/javascripts/app.js
安装后==> /usr/lib/ambari-server/web/javascripts/app.js
5.关于信息页面
1)仪表盘的关于信息:ambari-web/app/templates/common/about.hbs
编译后==> public/javascripts/app.js
安装后==> /usr/lib/ambari-server/web/javascripts/app.js
2)管理界面的关于信息:/ambari-admin/src/main/resources/ui/admin-web/app/views/modals/AboutModal.html
编译后==> 不变
安装后==> /var/lib/ambari-server/resources/views/work/ADMIN_VIEW{2.4.0.0}/views/modals/AboutModal.html
6.样式修改
ambari-web/app/styles/common.less
ambari-web/app/styles/application.less
编译后==> ambari-web/public/stylesheets/app.css
安装后==> /usr/lib/ambari-server/web/stylesheets/app.css
7.基于BootsStrap的修改
修改 ambari-web/vendor/styles/bootstrap.css
编译后==> ambari-web/public/stylesheets/vendor.css
安装后==> /usr/lib/ambari-server/web/stylesheets/vendor.css
例如:
将body的font-family改为更适合中文字体显示
"Arial","Microsoft YaHei","黑体","宋体",sans-serif;
8 汉化权限名
修改
/ambari/ambari-server/src/main/resources/Ambari-DDL-MySQL-CREATE.sql
9 关于告警的汉化
ambari\ambari-server\src\main\resources\common-services\ACCUMULO\1.6.1.2.2.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\AMBARI_INFRA\0.1.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\AMBARI_METRICS\0.1.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\ATLAS\0.1.0.2.3\alerts.json
ambari\ambari-server\src\main\resources\common-services\FALCON\0.5.0.2.1\alerts.json
ambari\ambari-server\src\main\resources\common-services\FLUME\1.4.0.2.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\GANGLIA\3.5.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\HAWQ\2.0.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\HBASE\0.96.0.2.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\HDFS\2.1.0.2.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\HIVE\0.12.0.2.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\KAFKA\0.9.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\KNOX\0.5.0.2.2\alerts.json
ambari\ambari-server\src\main\resources\common-services\LOGSEARCH\0.5.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\OOZIE\4.2.0.2.3\alerts.json
ambari\ambari-server\src\main\resources\common-services\PXF\3.0.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\RANGER\0.6.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\RANGER_KMS\0.5.0.2.3\alerts.json
ambari\ambari-server\src\main\resources\common-services\SPARK\1.2.1\alerts.json
ambari\ambari-server\src\main\resources\common-services\SPARK2\2.0.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\YARN\2.1.0.2.0\alerts.json
ambari\ambari-server\src\main\resources\common-services\ZEPPELIN\0.6.0.2.5\alerts.json
ambari\ambari-server\src\main\resources\alerts.json
ambari\ambari-server\src\main\resources\alert-templates.xml
---------------------
作者:WangPing1223
来源:CSDN
原文:https://blog.csdn.net/WangPing1223/article/details/77499028
版权声明:本文为博主原创文章,转载请附上博文链接!
汉化Ambari的方法
最新推荐文章于 2024-09-29 12:52:46 发布