If a property of type ResKey is defined in a declarative form, an input field is displayed by default where the ResKey format can be entered.
Usage
Annotate the property of the declarative form to allow translations to be entered directly:
#!java @ItemDisplay(ItemDisplayType.MONOMORPHIC) @PropertyEditor(InternationalizationEditor.class) ResKey getMyProperty();
After editing, the property contains a literal ResKey as its value (which stores the translations within itself).
Using the utility ` InternationalizedUtil.storeI18N(ConfigurationItem)`, all literal `ResKey`s contained in the given item can be replaced with "real" `ResKey`s, and the translations can be transferred from the literal to the application’s translations. If the literal does not contain a key, a new key is generated.
Code Migration
Implementations of `Editor ` (`com.top_logic.layout.form.values.edit.editor.Editor.createUI(EditorFactory, FormContainer, ValueModel)`) must call `EditorFactory.processControlProviderAnnotation(valueModel.getProperty(), field);` for the field on which an annotated ControlProvider is to act.
Test
- New properties ` reskey-primitive`, ` reskey-multiline-primitive `, and ` reskey-html-primitive ` in the tl-demo "Declarative Forms".