TranslationContext Example
The TranslationContext macro kan be used to scope the calls to embedded SXML code to the given Translation Scopes.
In this example, the page scope and the fallback scope are set. This means that translations will be looked for in the given page scope, but when they are not in scope there, the ones in the fallback scope will be used.
The contents of the translation named 'ExampleCode()' is:
Smartsite SXML | Copy Code |
---|---|
Result of resolving translation in folder {translation.getscope()}. |
Smartsite SXML | Copy Code |
---|---|
<se:translationcontext pagescope="31232" fallbackscope="19223"> {translation.scope.examplecode()} </se:translationcontext> |
Example Result | Copy Code |
---|---|
Result of resolving translation in folder 31232. |