I search a way to be able to add translation into a dynamic dropdown. I have create UDT for some units and I want to be able to translate the “Engineering unit”. I have tried to use translation function in binding but not works. Have you tricks for me?
{view.custom.unit_udt_path} + "/Area"
def transform(self, value, quality, timestamp):
nodes = system.tag.getConfiguration(value, True)
arr=[]
for item in nodes:
for key, value in item.iteritems():
if key == 'tags':
for tagConfig in value:
arr.append({"value":tagConfig["name"], "label":tagConfig["engUnit"]}) #I want my label to be translate
return arr