NiFi汉化

①在源文件中的

source-nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/src中修改jsp、js文件

②打包mvn clean package -Dmaven.test.skip=true(可以在nifi-web-ui中单独打包一个模块)

③取出(源码)

source-nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/target下的nifi-web-ui-1.1.0.war文件

④放入到(二进制码)

nifi-1.1.0/work/nar/framework/nifi-framework-nar-1.1.0.nar-unpacked/META-INF/bundled-dependencies路径下替换原本的文件

⑤重启服务完成汉化

 

⑥具体的汉化过程:

source-nifi/nifi-nar-bundles/nifi-framework-bundle/nifi-framework/nifi-web/nifi-web-ui/

src/main/webapp/WEB-INF/partials/canvas/

1、navigation.jsp

Navigate;导航

Operate:操作

2、canvas-header.jsp

Summary:概要

Counters:计数器

Bulletin Board:公告板

Data Provenance:数据来源

Controller Settings:设置

Flow Configuration History:历史流配置

Templates:模板

3、src/main/webapp/js/nf/canvas/controllers/nf-ng-canvas-toolbox-controller.js

Processor:处理器

Input Port:输入端口

Output Port:输出端口

Process Group:批处理

Remote Process Group:远程批处理

Funnel:汇聚

Template:模板

Label:标签

4、src/main/webapp/js/nf/canvas/header/components/nf-ng-processor-component.js---处理器

nf-ng-funnel-component.js  

nf-ng-input-port-component.js  

nf-ng-output-port-component.js  

nf-ng-remote-process-group-component.js

nf-ng-group-component.js   

nf-ng-label-component.js       

nf-ng-processor-component.js    

nf-ng-template-component.js

Add Processor:添加处理器

Add:添加

Cancel:取消

5、src/main/webapp/js/nf/canvas/nf-connection-configuration.js

Create Connection:创建连接

6、src\main\webapp\WEB-INF\partials\summary\summary-content.jsp【概述标题】

NiFi Summary:NiFi概要

7、src\main\webapp\js\nf\summary\nf-summary-table.js【tabs】

summary-tables中的标签名称汉化并将下面的加载样式代码中判断标签名称的条件汉化。

将列名汉化,汉化js中的name属性名称

8、src\main\webapp\WEB-INF\partials\counters\counters-content.jsp【计数器标题】

NiFi Counters:NIFI计数器

src\main\webapp\js\nf\counters\nf-counters.js【覆盖了上面的汉化,两处都要修改】

9、src\main\webapp\js\nf\counters\nf-counters-table.js

三个列名:环境,名称,内容

10、src\main\webapp\WEB-INF\pages\bulletin-board.jsp【公告板标题】

NiFi Bulletin Board:NIFI公告板

src\main\webapp\js\nf\bulletin-board\nf-bulletin-board.js【覆盖上面的汉化】

11、src\main\webapp\js\nf\provenance\nf-provenance-table.js

汉化列名

12、src\main\webapp\WEB-INF\partials\canvas\settings-content.jsp【设置标题】

NiFi Settings:NIFI设置

Apply:应用

13、src\main\webapp\js\nf\canvas\nf-settings.js【tab标签】【任务报告的列名】

14、src\main\webapp\js\nf\canvas\nf-controller-services.js【控制器服务列名】

15、src\main\webapp\WEB-INF\partials\history\history-content.jsp【历史标题】

src\main\webapp\js\nf\history\nf-history.js【覆盖jsp】

16、src\main\webapp\js\nf\history\nf-history-table.js【历史列名】

17、src\main\webapp\WEB-INF\partials\templates\templates-content.jsp【模板标题】

src\main\webapp\js\nf\templates\nf-templates.js【模板覆盖】

18、src\main\webapp\js\nf\templates\nf-templates-table.js【列名汉化】

19、src\main\webapp\js\nf\canvas\nf-processor.js"(343,32) .text('Tasks/Time')【组件状态】

20、src\main\webapp\WEB-INF\partials\canvas\navigation.jsp(170,92)【操作中的删除】

<div class="graph-control-action-icon fa fa-trash">

</div><span>Delete</span></button>

转载于:https://www.cnblogs.com/rethink-east/p/6632223.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值