[
https://issues.apache.org/jira/browse/OFBIZ-12319?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17415425#comment-17415425
]
ASF subversion and git services commented on OFBIZ-12319:
---------------------------------------------------------
Commit f82f7631b145014b652df5f8b7c675e98e277052 in ofbiz-framework's branch
refs/heads/trunk from Nicolas Malin
[ https://gitbox.apache.org/repos/asf?p=ofbiz-framework.git;h=f82f763 ]
Implemented: Groovy DSL add label method (OFBIZ-12319)
Improve the groovy dsl with a simple method 'label' to resolve an uiLabel
instead of use 'UtilProperty.getMessage()' on groovy script.
Previously we used:
UtilProperties.getMessage("AccountingUiLabels",
"AccountingUpdatePaymentPermissionError", 'locale'))
Now we can write:
label("AccountingUiLabels", "AccountingUpdatePaymentPermissionError")
> 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)