[ 
http://jira.codehaus.org/browse/DISPL-564?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=170400#action_170400
 ] 

Hilde Meuris commented on DISPL-564:
------------------------------------

This problem has only been solved partially: it is also needed to make similar 
changes in PaginatedListSmartListHelper.java (line 206) and in 
SmartListHelper.java (line 289).

> 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

        

------------------------------------------------------------------------------
Apps built with the Adobe(R) Flex(R) framework and Flex Builder(TM) are
powering Web 2.0 with engaging, cross-platform capabilities. Quickly and
easily build your RIAs with Flex Builder, the Eclipse(TM)based development
software that enables intelligent coding and step-through debugging.
Download the free 60 day trial. http://p.sf.net/sfu/www-adobe-com
_______________________________________________
displaytag-devel mailing list
displaytag-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-devel

Reply via email to