major
nice-to-have
defect
major
enhancement
The translation for a ResKey is currently either stored in the application's static resource properties, or the translation is a non-internationalized dynamic text (ResKey.text(...)).
Improvement
It might also be useful to allow a user to create a translatable object. Such a “literal” resource key contains the translations in the system’s languages. When it is translated, it selects the translation that matches the request from its internal translations.
Usage
ResKey literal =
ResKey.builder()
.add(Locale.ENGLISH, "Hello")
.add(Locale.GERMAN, "Hallo")
.build();
Test
- test.com.top_logic.basic.util.TestResKey.testLiteralKey()