Details
-
Bug
-
Status: Closed
-
Minor
-
Resolution: Fixed
-
None
-
None
Description
The ResourceBasedI18nManager resolves I18N resource bundle keys by requesting wether it is an action or property and constructs the following addressing:
[Prototype example] Would like to define a german name of the employee's approver name:
class: org.apache.isis.support.prototype.dom.employee.Employee
kind of element: property
property: approver
type: name
to address this within the i18n_de.properties - here is the key:
org.apache.isis.support.prototype.dom.employee.Employee.property.approver.name=XXX
Implementation org.apache.isis.core.runtime.i18n.resourcebundle.ResourceBasedI18nManager#text
final String form = identifier.isPropertyOrCollection() ? PROPERTY : ACTION;
final String key = identifier.getClassName() + "." + form + "." + identifier.getMemberName() + "." + type;
Requesting an action results in a double dot (in some cases of class level actions?) because the identifier.getMemberName() returns "":
eq the name of the employee class:
org.apache.isis.support.prototype.dom.employee.Employee.action..name=XXX
I will attach a patch for this - checking the above return value and constructing keys always with "one dot" seperator. This might be checked from the runtime team. thx