Document Developer - instructions > Language handling and output formatting

Language handling and output formatting
Languages in StoryTeller documents are represented by the w3c language codes defined in RFC1766.
The language codes (optionally including country codes, e.g. en-US) can be specified as default settings both for design-time and runtime, as well as on a specific range of text or a substitution. The language codes of a document can determine the following:
*
You can specify language codes for the following purposes
 
Example 43
In this example, you want to add a date string at the top of your Document. During the design, you want the weekday and month to be displayed in Swedish, but in runtime the language will vary depending on input data.
The data should be in format EEEE DD MMMM YYYY. This means that it will be in the form of ’Tuesday 20 October 2010’. (See Output formatting of substitutions for more information).
The default language – to use when adding new texts and substitutions – is Swedish, which is specified in Tools > Options > Text > Default language.
You add a Field type substitution and enter EEEE DD MMMM YYYY in the format field.
The date will look as follows:
Click to enlarge
Figure 41
During runtime, the language will vary but you want to simulate the look of the substitution if there would be input data causing the date to be rendered in Finnish, because you realize Finnish words could be long.
To achieve this, you select Tools > Options > Processing simulation and select Finnish (Finland) from the Language drop-down list.
You must also set the language for the specific substitution to be the default language. To achieve this, you:
Select the Language property in the Properties panel Character style category
Click to enlarge
Figure 42
In runtime, to use different languages for different recipients of the Document, you
Open the Processing Properties dialog from File > Processing Properties.
 
 
OpenText StreamServe 5.6 Updated: 2013-03-01