Enhancement
Major
Detail
Detail
Enhancement
Major
#27963
TL-Script: Access to the label of a specialized object in a given language
There should be a TL script method that returns the label of an object in a given language:
germanProjectName = $project.label("de"); // Equivalent to: germanProjectName = label($project, "de");
If the parameter for the language is omitted, the label of the object is returned in the current language.
If the label does not exist in the desired language, no automatic translation is performed. The same rules apply to labels for non-existent languages as everywhere in TopLogic. The translate method is available for automatic translations.
Test
- TestSearchExpression.testLabel()
- com.top_logic.demo/src/test/java/test/com/top_logic/demo/scripted/tlscript/TestLabel.script.xml