Universal Robots Forum

Get System/UI Language inside ProgramNodeService


I am trying to use multiple Languages with different html files for each Language for ProgramNodeContribution UIs.

is there any way to get the System Language inside a ProgramNodeService (because getHTML() is triggered there)? i tried SystemSettings and the URCapAPI but both seem not been initialized while creating a ProgramNodeService, leading to a NullPointerException. Inside a ProgramNodeContribution it works fine.

Any Help?

i could solve this by using the setText Method of any LabelComponent in the html file but that would be kind of overelaborated and the Api’s getLanguage method would be pointless. Any Suggestions?