[
https://issues.apache.org/jira/browse/WICKET-2927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883513#action_12883513
]
Martin Grigorov commented on WICKET-2927:
-----------------------------------------
StringResourceModel uses java.text.MessageFormat behind the scenes.
According to http://java.sun.com/javase/6/docs/api/java/text/MessageFormat.html
, section "Patterns and Their Interpretation" : Within a String, "''"
represents a single quote.
So in HomePage.properties I changed to:
failingTest= Don''t remove {0} from {1}
and the test passed.
I am not an expert with text formatting but it seems that the processing of the
quote highly depends on the current (component) locale.
> When having apostrophe in localization, stringresourcemodel doesn't properly
> work
> ---------------------------------------------------------------------------------
>
> Key: WICKET-2927
> URL: https://issues.apache.org/jira/browse/WICKET-2927
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.4.2
> Environment: Windows and Mac,
> Reporter: Frank Klein Koerkamp
> Fix For: 1.4.2
>
> Attachments: stringresourcemodel.zip
>
> Original Estimate: 0.02h
> Remaining Estimate: 0.02h
>
> Having translation key like: "You don't have permission for adding {0}".
> This results in any change so getObject on StringResourceModel will also be
> "You don't have permission for adding {0}".
> If i change "don't" to "do not" it does work correctly
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.