You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Frank Klein Koerkamp (JIRA)" <ji...@apache.org> on 2010/06/29 10:05:52 UTC

[jira] Created: (WICKET-2927) When having apostrophe in localization, stringresourcemodel doesn't properly work

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


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.


[jira] Commented: (WICKET-2927) When having apostrophe in localization, stringresourcemodel doesn't properly work

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ 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.


[jira] Resolved: (WICKET-2927) When having apostrophe in localization, stringresourcemodel doesn't properly work

Posted by "Juergen Donnerstag (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Juergen Donnerstag resolved WICKET-2927.
----------------------------------------

      Assignee: Juergen Donnerstag
    Resolution: Invalid

> 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
>            Assignee: Juergen Donnerstag
>             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.


[jira] Closed: (WICKET-2927) When having apostrophe in localization, stringresourcemodel doesn't properly work

Posted by "Frank Klein Koerkamp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Klein Koerkamp closed WICKET-2927.
----------------------------------------


> 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
>            Assignee: Juergen Donnerstag
>             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.


[jira] Commented: (WICKET-2927) When having apostrophe in localization, stringresourcemodel doesn't properly work

Posted by "Martin Grigorov (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/WICKET-2927?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12883485#action_12883485 ] 

Martin Grigorov commented on WICKET-2927:
-----------------------------------------

There must be something else because there is a test (org.apache.wicket.model.StringResourceModelTest) which have entries with apostrophe and it works fine.

Can you provide a quickstart please ?

> 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
>
>   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.


[jira] Updated: (WICKET-2927) When having apostrophe in localization, stringresourcemodel doesn't properly work

Posted by "Frank Klein Koerkamp (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-2927?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Frank Klein Koerkamp updated WICKET-2927:
-----------------------------------------

    Attachment: stringresourcemodel.zip

Added quickstart, execute StringResourceModelTest for failure

> 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.