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";<[email protected]>;
????????: 2017??12??4??(??????) ????2:46
??????: "users"<[email protected]>;

????: 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 <[email protected]> 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

Reply via email to