-
Notifications
You must be signed in to change notification settings - Fork 780
added unit to configuration description parameters according to issue… #889
Conversation
@@ -95,6 +97,7 @@ The following HTML tags are allowed -: ```<b>, <br>, <em>, <h1>, <h2>, <h3>, <h4 | |||
<tr><td>option</td><td>The element definition of a static selection list (optional).</td></tr> | |||
<tr><td>option.value</td><td>The value of the selection list element.</td></tr> | |||
<tr><td>multipleLimit</td><td>If multiple is true, sets the maximum number of options that can be selected (optional).</td></tr> | |||
<tr><td>unitLabel</td><td>The unit label represents a human readable natural language unit as iterations, runs, etc. If the unit attribute is set then the unit label attribute will be ignored. The unit label must only be set if the type of the parameter is either integer or decimal (optional).</td></tr> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
then the unit label attribute will be ignored
-> "is ignored"
So this means we do not have an exception when parsing the XML, right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We dont have an exception if both unit and unit label is specified. There is only an exception during parsing when the unit or unit label is specified for a textual or a boolean parameter.
Thanks @tomhoefer, looks good to me. |
Hmm, not sure if I understand you right. I have modified the ConfigDescriptionDTOMapper and also tested the REST interface with Accept-Language in order to retrieve an internationalized unit label. |
Now I got your point ;) I will think about a solution and update this PR as soon as possible |
@@ -0,0 +1,42 @@ | |||
unit.A=Ampere |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The unit label is what UIs are expected to display besides the value, right?
So wouldn't you in most cases want to display the symbol as a label and not the "prosa" name?
Otherwise you would also have to write "Meter per square second", etc., which does not make much sense.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
ok... I have also thought about this issue... I will change it...
Signed-off-by: Thomas Höfer <t.hoefer@telekom.de>
added unit to configuration description parameters according to issue…
… #741
Signed-off-by: Thomas Höfer t.hoefer@telekom.de