Announcement Announcement Module
Collapse
No announcement yet.
localizing message arguments Page Title Module
Move Remove Collapse
X
Conversation Detail Module
Collapse
  • Filter
  • Time
  • Show
Clear All
new posts

  • localizing message arguments

    I'm using spring:message tag and I want the arguments to be localized arguments.
    For example, consider a message notifying a field is required, both the message and the field names should be localized.
    So, if I have the following in my resource:

    Code:
    field.required={0} is required
    field.start.date=Start date
    I would like to show a message:
    Code:
    <spring:message code="field.required" arguments="here I would like to plant <spring:message code="field.start.date"/>"/>

    I know there are many other patterns to get the result I want, and maybe the specific scenario I described is not the best example, but I would just like to know if this could be done and how?

    Thanks,
    Lior
Working...
X