Posted: 27 Jul 2017 10:18 EDT Last activity: 1 Aug 2017 8:09 EDT
Language Support for Pega Robotic Studio (via Resx files)
I know that in c#, winforms have a Localization property that allows easy localization (see screen shots below). for pega projects, how do we handle multi language support. I have one team using an XML file and loading each control for a form one by one. This is clumsy, and prone to errors. what's the recommend approach or should we stick with the xml? Or Is there an alternative to use a Winform directly from a c# project?
Why are they copying the XML of the form? What is the goal for this procedure? You can copy the *.os file and import it into the project to get you a copy and then .. change the language to what you need.
Hmm.. you can also create your own C# project and import that library to your Pega Robotics Project if that is desired too.. but you are right... I checked through the various options and localization is not readily available.
Thanks for the input.. We're trying to avoid multiple .OS files as any logic inside the .OS may not propogate.. (though it should be none for a winform). The .xml also allows for changes without a recompile, similar to .resx files.. We are looking at C# for the UI's but are not yet ready to pull the trigger on that type of change.... Anyone else have a comment?
In the past I have used an external file to load the text of controls. Localization is really not for translation, it is for handling of the ASCII characters correctly. As far as I know, to change the properties of controls to another language would require an external file like you've suggested.
I have done this by binding the controls at Runtime to a DataView. Once bound I filter the DataView to switch between languages. Binding has to be done at startup - binding in the UI Editor does not stick. I will stick some examples in here later.