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:
If you hard-code (no variable) the default language to use in runtime, this language will also be used in the document during design, even if you have specified a design-time language.
The default language to use during document design, for all new texts and stories added to the document. The default language to use for substitutions and switches during document design. (Processing simulation) The language to use for a specific substitution or a range of text, both during design and in runtime. The default language to use for the document when processing it in runtime.
Example 57 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.
Figure 46 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
• From the drop-down list, select <Default>.
Figure 47
•
• In the Processing language field, you delete the language and enter the variable determining the language, e.g. $language.
| OpenText StreamServe 5.6.2 | Updated: 2018-01-26 |