You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2014/08/05 16:54:13 UTC
[jira] [Commented] (WICKET-5663) Wicket Validator Message Template
values not translated/customized
[ https://issues.apache.org/jira/browse/WICKET-5663?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14086337#comment-14086337 ]
Martin Grigorov commented on WICKET-5663:
-----------------------------------------
Please provide a quickstart demonstrating the issue.
Thanks!
> Wicket Validator Message Template values not translated/customized
> ------------------------------------------------------------------
>
> Key: WICKET-5663
> URL: https://issues.apache.org/jira/browse/WICKET-5663
> Project: Wicket
> Issue Type: Bug
> Reporter: Thibault Kruse
>
> Wicket provides standard Validation Messages in diverse languages in form of Application_xzy.properties in wicket core, e.g.
> {code}
> IConverter=The value of '${label}' is not a valid ${type}.
> {code}
> The problem we have is that {code}${label}{code} is apparently replaced with the wicket:id of the field, and not the value of field.getLabel().
> For {code}${type}{code} we would need to be able to translate Typenames (such as joda's YearMonth) to a localized String. Though that one we can probably work around using specialized error messages as below.
> For now, our workaround is to overwrite the standard Error messages with non-templated messages, having less informational value though, as they do not include the label of the invalid field, e.g.
> {code:xml}
> <properties>
> <entry key="IConverter.Partial">Bitte geben Sie ein gültiges Datum an</entry>
> </properties>
> {code}
--
This message was sent by Atlassian JIRA
(v6.2#6252)