[
https://issues.apache.org/jira/browse/OFBIZ-12319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17415394#comment-17415394
]
Jacques Le Roux commented on OFBIZ-12319:
-----------------------------------------
+1
> Groovy DSL add label method
> ---------------------------
>
> Key: OFBIZ-12319
> URL: https://issues.apache.org/jira/browse/OFBIZ-12319
> Project: OFBiz
> Issue Type: Improvement
> Components: framework
> Affects Versions: Trunk
> Reporter: Nicolas Malin
> Priority: Minor
> Labels: DSL, Groovy
> Attachments: OFBIZ-12319.patch
>
>
> I suggest to improve the groovy dsl with a simple method 'label' to resolve a
> uiLabel instead of use 'UtilProperty.getMessage()'
>
> Currently :
> {code:java}
> UtilProperties.getMessage("AccountingUiLabels",
> "AccountingUpdatePaymentPermissionError", 'locale')){code}
> Proposal
> {code:java}
> label("AccountingUiLabels", "AccountingUpdatePaymentPermissionError"){code}
--
This message was sent by Atlassian Jira
(v8.3.4#803005)