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 |
![]() |
---|---|
Result of resolving translation in folder {translation.getscope()}. |
Smartsite SXML |
![]() |
---|---|
<se:translationcontext pagescope="31232" fallbackscope="19223"> {translation.scope.examplecode()} </se:translationcontext> |
Example Result |
![]() |
---|---|
Result of resolving translation in folder 31232. |