support for multiple languages?
Do workflows have the ability to support multiple languages (locationization/internationalization) like the rest of the HTML5/Silverlight viewer does? There are locale files for supporting various languages for the viewers themselves, but can these be used to store workflow specific strings? When you design a workflow, you give your dialog boxes, forms, etc. labels and/or descriptions but can these labels be picked up from a locale file?
If so, how do you define your labels when creating the workflow?
-
+1
0 -
As far as I can see, localization of workflows is not supported out of the box.
However, it is possible to set indivual labels on activities such as the displayform using runtime modifications, but you must program that yourself. This means that for most form items, you need two assign activities, one to set the text, and one to set the tooltip. The groupbox has an additional Header property that you must also set.
Where and in which format you store the language files is entirely up to you. I just tested if this can be done using a standard .NET class library with satellite resource files, and this seems to work OK, sort of. Let me know if you need help on this, there are some caveats.
If you're not familiar with Visual Studio, an alternative approach might be to create a mapservice with a layer containing all the localized values, and then use a querytask to get the values for just the desired culture. Or maybe just a CSV File.
0 -
Just a brief follow up to this question.
I did get confirmation from Latitude that there is no localization support for workflows. However, with help from the previous post in this thread and a couple others I found through my searching, I was able to put together a useable solution (until workflows get real localization added).
In brief, the process I used is as follows:
- Use GetBrowserUrl activity to get the query string parameters (NameValueCollection).
- Use Assign to set boolean variable = true if "locale" parameter in NameValueCollection = "fr-CA" (I only need to determine between en-US and fr-CA).
- Use ReadFile activity to read all my localization strings from a CSV file in my site folder
- Use If activity to set new localization dictionary values to either column 2 or 3 from CSV file (english=col 2, french=col 3)
- Use Form's RuntimeModifications to Assign form labels from localization dictionary.
I can provide full explanation or sample workflow if anyone needs more info.
Peter.
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare