Adding Languages
graphic
We start off with a basic process map. The title is ‘Leave Request’
graphic
The process itself is pretty simple, as this is just for demonstration purposes.
graphic
We’ve left all the stage and action names as the defaults, as we are pretty sure this is what will occur in the real world.
graphic
And we have edited all titles with the in-place editing for the same reason.
graphic
There is only one form, again because this is a simple demonstration.
graphic
We’ve set the name according to our standards, and the title as ‘Leave Request’.
graphic
Everything else is edited in- place for the same reasons as the process map.
graphic
Now, we add some languages.
graphic
This brings up the Project properties, were we add French and Spanish.
graphic
We have to save for this to ‘take’ and begin editing the captions.
graphic
Then we select the map, select French, and begin editing.
graphic
Notice that the un-editable properties are marked as read- only. We will see later that this is not quite the case, as it can be overridden in some cases.
Only those properties relating to visible captions of some kind are editable.
graphic
So we change the process caption…
graphic
… and the action and stage names. I apologise if these translations are not accurate – they are merely what seemed sensible at the time.
graphic
We now do the same with Spanish.
graphic
Notice that changing to an unedited languages reverts to the default.
graphic
graphic
So we make our changes. Again, the translation may not be accurate.
graphic
And we then do the same for the form. Notice the layout needs changing as the caption drops off the left of the form
graphic
So we adjust the field placement. Note that this is only affecting the layout for this language.
graphic
And we do the same in French.
graphic
Again the placement needs changing from the default…
graphic
… so we move the fields.
graphic
Note the properties we can change here. The position, width (height too if applicable) and caption alignment, as well as the hint.
graphic
Although oddly the hint is not editable for dates.
graphic
Notice though, that the action message is NOT editable.
This is set by default to the action caption, however, so will reflect the user’s language.
graphic
We are going to set the Subject on a form submit.
graphic
We add an assignment activity…
graphic
… and set the subject to ‘<process caption> for <user name>’ like so.
graphic
We would like a history form too, so we decide to add our Common Library and use the History form from that.
graphic
In the Library, we set the languages we wish to use. We add French and Spanish here.
Notice that although the ‘columns’ property for the grid is read-only, we can in fact edit it.
The only editable property within is the Caption, obviously.
graphic
For this demonstration we only edit the caption for the ‘from stage’ column to French.
graphic
It is NOT reflected in the Designer, however. The Designer seems not to know Grid column captions are editable.
graphic
We have a Business Object that selects values from the view supplied with the product that uses the user’s locale id.
graphic
We have added the parameters of folder id and locale id to the query. We have also set the defaults that we would expect to use.
graphic
We include this Library in our Project.
We then add the forms to all stages and actions as required, and deploy.
Go to:
In the Client (Next topic)