[ 
http://jira.codehaus.org/browse/DISPL-564?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

fabrizio giustina resolved DISPL-564.
-------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2

solved in 1.2

> Page numbers localized using wrong locale
> -----------------------------------------
>
>                 Key: DISPL-564
>                 URL: http://jira.codehaus.org/browse/DISPL-564
>             Project: DisplayTag
>          Issue Type: Bug
>          Components: I18N
>    Affects Versions: 1.1.1
>            Reporter: Samppa Saarela
>             Fix For: 1.2
>
>
> Localization fails on page numbers because MessageFormating uses default 
> locale of the system instead of user's locale. This leads to quite confucing 
> resuilts, as 1,456 (over thousand rows) means actually 1.456 in Finnish.
> Fixing this comes down to 
> org.displaytag.pagination.Pagination#243:
> if (page.getSelected())
> {
>         buffer.append(MessageFormat.format(numberedPageSelectedFormat, 
> pageObjects));
> }
> else
> {
>         buffer.append(MessageFormat.format(numberedPageFormat, pageObjects));
> }
> which should be something like:
> if (page.getSelected())
> {
>         buffer.append(new MessageFormat(numberedPageSelectedFormat, 
> getUserLocale()).format(pageObjects));
> }
> else
> {
>         buffer.append(new MessageFormat(numberedPageFormat, 
> getUserLocale()).format(pageObjects));
> }
> In which getUserLocale() returns the same locale that 
> TableProperties.getLocale().

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

------------------------------------------------------------------------------
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to