Eagle汉化

一、修改位置

 工程打包之后,在eagle-server-assembly/target生成eagle-0.5.0-SNAPSHOT-bin.tar.gz压缩包,解压后在eagle-0.5.0-SNAPSHOT-bin\lib目录下eagle-topology-0.5.0-SNAPSHOT-assembly.jar这个jar包中汉化界面,解压eagle-topology-0.5.0-SNAPSHOT-assembly.jar这个jar包,需要修改的js和html文件位置如下

eagle-topology-0.5.0-SNAPSHOT-assembly\assets\apps\example
eagle-topology-0.5.0-SNAPSHOT-assembly\assets\apps\hbase
eagle-topology-0.5.0-SNAPSHOT-assembly\assets\apps\hdfs
eagle-topology-0.5.0-SNAPSHOT-assembly\assets\apps\jpm
eagle-topology-0.5.0-SNAPSHOT-assembly\assets\apps\system
eagle-topology-0.5.0-SNAPSHOT-assembly\assets\partials
eagle-topology-0.5.0-SNAPSHOT-assembly\assets\public

二、修改的文件

html页面:

partials\alert\policyEdit\advancedMode.html
partials\alert\detail.html
partials\alert\list.html
partials\alert\policyDetail.html
partials\alert\policyEdit.html
partials\alert\policyList.html
partials\alert\policyPrototypes.html
partials\alert\streamList.html
partials\integration\applicationList.html
partials\integration\main.html
partials\integration\publisherList.html
partials\integration\site.html
partials\integration\siteList.html
partials\metric\preview.html
partials\site\home.html
partials\home.html
partials\login.html
partials\setup.html
index.html
example\index.html
hbase\partials\region\regionDetail.html
hbase\partials\region\regionList.html
hbase\partials\backupMasterList.html
hbase\partials\overview.html
hbase\index.html
hdfs\partials\datanodeDetail.html
hdfs\partials\datanodeList.html
hdfs\partials\namenodeList.html
hdfs\partials\overview.html
hdfs\index.html
system\partials\serverDetail.html
system\partials\overview.html
system\partials\serverList.html
system\index.html
jpm\partials\job\compare.html
jpm\partials\job\detail.html
jpm\partials\job\list.html
jpm\partials\job\overview.html
jpm\partials\job\statistic.html
jpm\partials\queue\overview.html
jpm\index.html

js页面:

build\index.js
public\js\components\chart.js
public\js\components\sortTable.js
public\js\components\sortTable.js
public\js\ctrls\alertEditCtrl.js
public\js\ctrls\authCtrl.js
public\js\ctrls\integrationCtrl.js
public\js\ctrls\mainCtrl.js
public\js\ctrls\metricCtrl.js
public\js\services\notificationSrv.js
public\js\services\pageSrv.js
public\js\services\wrapStateSrv.js
public\js\app.js
public\js\index.js
example\index.js
hbase\ctrls\overview.js
hbase\ctrls\regionDetailCtrl.js
hbase\widgets\availabilityChart.js
hdfs\ctrl\datanodeDetailCtrl.js
hdfs\ctrl\namenodeListCtrl.js
hdfs\ctrl\overview.js
system\ctrl\overview.js
system\ctrl\serverDetailCtrl.js
system\ctrl\serverListCtrl.js
jpm\ctrl\compareCtrl.js
jpm\ctrl\detailCtrl.js
jpm\ctrl\jobTaskCtrl.js
jpm\ctrl\listCtrl.js
jpm\ctrl\overviewCtrl.js
jpm\ctrl\queueCtrl.js
jpm\ctrl\statisticCtrl.js

注:在替换掉汉化后的js和html页面后,安装Application的页面子页面有些还是英文,通过查找发现有些xml文件需要汉化

 xml页面

eagle-topology-0.5.0-SNAPSHOT-assembly\META-INF\providers\org.apache.eagle.alert.app.AlertUnitTopologyAppProvider.xml
eagle-topology-0.5.0-SNAPSHOT-assembly\META-INF\providers\org.apache.eagle.app.example.ExampleApplicationProvider.xml
eagle-topology-0.5.0-SNAPSHOT-assembly\META-INF\providers\org.apache.eagle.gc.GCLogApplicationProvider.xml
eagle-topology-0.5.0-SNAPSHOT-assembly\META-INF\providers\org.apache.eagle.jpm.mr.running.MRRunningJobApplicationProvider.xml
eagle-topology-0.5.0-SNAPSHOT-assembly\META-INF\providers\org.apache.eagle.metric.HadoopMetricMonitorAppProdiver.xml
eagle-topology-0.5.0-SNAPSHOT-assembly\META-INF\providers\org.apache.eagle.security.auditlog.HdfsAuditLogAppProvider.xml
eagle-topology-0.5.0-SNAPSHOT-assembly\META-INF\providers\org.apache.eagle.security.hbase.HBaseAuditLogAppProvider.xml
eagle-topology-0.5.0-SNAPSHOT-assembly\META-INF\providers\org.apache.eagle.security.oozie.parse.OozieAuditLogAppProvider.xml

猜你喜欢

转载自blog.csdn.net/zwahut/article/details/90603017