You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@nifi.apache.org by oppo <op...@qq.com> on 2017/12/04 06:42:02 UTC

i18n in NiFi web

Hi, 


Anyone request before how to localize the NiFi web? The default label/message (English) are scattered everywhere in JS/JSP/HTML/Java code, it is so difficult to add another language version (i18n) for NiFi.


Is there a plan in future release? 


Thanks and Regards.


Kui

回复: i18n in NiFi web

Posted by oppo <op...@qq.com>.
Thank Joe for the quick response. 


I am just a novice in NiFi, recently try to investigate whether NiFi can be integrated with our enterprise software. If the localization is possible, NiFi can be also embedded in. 


I start from NiFi web, simply search UI label which I saw in http://localhost:8080/nifi/ from folder nifi\nifi-nar-bundles\nifi-framework-bundle\nifi-framework\nifi-web, and then identify whether it is right location. Change the raw label in js/jsp/java, and then rebuild to verify. 


For js part, the yui compression will cause messy code. The workaround is to add "encoding" as "UTF-8" in pom.xml.


Most of js code requiring localization are started from "nf-", I assume they are NiFi specific OOP code. I don't know how easy to add localization on it. Not sure it can reuse jquery plugin to load properties file. 


Many jsp files contains labels directly in html tag. There is a way to load i18n properties in java. The effort here is to find all places and replace with localization API manually. 


I roughly know each source/target/processor bundle will have label/description/properties which may need i18n too. As NiFi has its own bundle loading logic, not sure how to cover it simply. It is beyond nifi-framework\nifi-web source code.


If NiFi try to earn more customers from enterprise area, the localization is the basic function it need to add. 
Not sure how much I can help on it. 
 
Kui


------------------ 原始邮件 ------------------
发件人: "Joe Witt";<jo...@gmail.com>;
发送时间: 2017年12月4日(星期一) 下午2:46
收件人: "users"<us...@nifi.apache.org>;

主题: Re: i18n in NiFi web



Kui

This does come up from time to time.  While it definitely would be
nice to have/do it is also something for which a ton of effort would
be required to get to that point and to maintain the language bundles.
It will certainly require some motivated folks to really dive and
identify areas for improvements in the right direction.

If you might be inclined to help move us in the right direction on
this that could be really helpful.

Thanks

On Mon, Dec 4, 2017 at 1:42 AM, oppo <op...@qq.com> wrote:
> Hi,
>
> Anyone request before how to localize the NiFi web? The default
> label/message (English) are scattered everywhere in JS/JSP/HTML/Java code,
> it is so difficult to add another language version (i18n) for NiFi.
>
> Is there a plan in future release?
>
> Thanks and Regards.
>
> Kui

Re: i18n in NiFi web

Posted by Joe Witt <jo...@gmail.com>.
Kui

This does come up from time to time.  While it definitely would be
nice to have/do it is also something for which a ton of effort would
be required to get to that point and to maintain the language bundles.
It will certainly require some motivated folks to really dive and
identify areas for improvements in the right direction.

If you might be inclined to help move us in the right direction on
this that could be really helpful.

Thanks

On Mon, Dec 4, 2017 at 1:42 AM, oppo <op...@qq.com> wrote:
> Hi,
>
> Anyone request before how to localize the NiFi web? The default
> label/message (English) are scattered everywhere in JS/JSP/HTML/Java code,
> it is so difficult to add another language version (i18n) for NiFi.
>
> Is there a plan in future release?
>
> Thanks and Regards.
>
> Kui