I have a reqruiement where I would have to change the labels in my datacapture file (Form) depending on the locale of the user.
The approach I came with, for the same was this:
In the formAPI onLoad method get the locale of the user's browser.
Use a callServer call to pass this locale to a perl file.
There would be an XML file which would have the labels for all the langages stored in the file system let's say iw-home/local/config/application/labels.xml
The perl file will parse the XML based on the locale of the browser and return the labels to a FormAPI method.
The formAPI will use the setLabel method (introduced in TS after the 6.7.0 version) to set the labels
All this would happen when the form loads. I have also implemented the same. I hope I am right in doing this. I sure one cannot change the labels of the datacapture file without coding. I think this is opnly possible for Labels that are in the standard screens like workflow screen, TS screens etc. These would just requrie change in TS properties files. Could somebody please provide comments on the following:
Requesting the experts to comment on these.