History | Log In     View a printable version of the current page.  
Issue Details (XML | Word | Printable)

Key: WW-1265
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Rene Gielen
Reporter: Claus Ibsen
Votes: 0
Watchers: 0
Operations

If you were logged in you would be able to see more operations.
WebWork

DatePicker - locale/language problems

Created: 22/Mar/06 05:07 PM   Updated: 23/Mar/06 01:06 PM
Component/s: None
Affects Version/s: 2.2.1
Fix Version/s: 2.2.2

File Attachments: 1. File calendar-da.js (4 kb)
2. File calendar-sv.js (4 kb)

Image Attachments:

1. da_works.jpg
(39 kb)
Environment: WinXP, Tomcat 5, JDK1.5


 Description  « Hide
Trying the WW showcase demo on Tomcat.

The UI tags example has a datepicker.

This does not show correctly text in danish language.

<ww:datepicker
                language="da"
     tooltip="Select Your Birthday"
     label="Birthday"
     name="birthday" />


Looks like some of the calendar-XX.js files hasn't been encoded as UTF-8 suggested by the developers of the date picker.
We must check all the languages.

The _de works fine since they have \u escaped the text.

Maybe ant's native2ascii can help us do some of the changes.

 All   Comments   Change History      Sort Order:
Claus Ibsen - [22/Mar/06 05:20 PM ]
#broken calendar-xx.js files
-da
-el
-ko
-lt
-lv
-no
-pl
-ro
-si
-sk
-sv
-tr

# looks incomplete
-af



# not possible to determine
-bg
-big5
-jp
-ru


And -zh is really a good one since it has \u escaped everything

Claus Ibsen - [23/Mar/06 01:51 AM ]
Hmmm

This morning I did a CVS updated and deployed to Tomcat again.
Now the date picker works with the danish chars.

<ww:datepicker
     tooltip="Select Your Birthday"
     label="Birthday"
     name="birthday" />

webwork.i18n.reload=true
webwork.devMode = true
webwork.configuration.xml.reload=true
webwork.continuations.package = com.opensymphony.webwork.showcase
webwork.objectFactory = spring
webwork.custom.i18n.resources=globalMessages
#webwork.action.extension=jspa
webwork.url.http.port = 8080
webwork.xslt.nocache=false

Claus Ibsen - [23/Mar/06 01:54 AM ]
There is no logic.

The -da works, the -sv (swedish) does not.

I guess it would be best if all the files were \u escaped, to have it work on any OS and any web browser.

Claus Ibsen - [23/Mar/06 02:29 AM ]
I used JDK's native2ascii to convert the swedish to use \u encoding.

Now it works nicely.

Claus Ibsen - [23/Mar/06 02:30 AM ]
the danish using \u escaped

Claus Ibsen - [23/Mar/06 02:33 AM ]
The norwegain does not work at all

<ww:datepicker
        language="no"
     tooltip="Select Your Birthday"
     label="Birthday"
     name="birthday" />

Nothing happends when I click the date picker icon

Claus Ibsen - [23/Mar/06 02:35 AM ]
language="af" does not work at all. Nothing happends when I click the icon

Claus Ibsen - [23/Mar/06 02:53 AM ]
Okay I had another go at the showcase example. Here is an updated list:

does not work at all:
-no
-af
-al
-bg
-du
-el
-fi
-he
-hr
-ko
-lt
-no
-si
-sk
-tr

works but encoding seems wrong:
-ca
-da
-es
-fr
-hu
-lv
-sv

works fine, all okay:
-de
-en
-it
-nl
-pl
-pt
-ro
-ru
-sp

now possible to determine:
-bg
-big5
-cs
-jp
-zh

tm_jee - [23/Mar/06 10:12 AM ]
made some changes such that language like al and af does pop up but missing i18n message are in english cause I don't know these language

Rene Gielen - [23/Mar/06 11:22 AM ]
Thanks Toby.
BTW, I wonder why we are doing the job of the jscalendar guys ;)

Rene Gielen - [23/Mar/06 11:32 AM ]
As for the missing locales:
we should not put too much effort in there now, because we might need to remove jscalendar shipped with WW again due to LGPL issues....

Rene Gielen - [23/Mar/06 01:06 PM ]
Added supplied patches, and did some testing. Must say that Quickstart on WinXP works perfect here.
Closing for no, we might want to to reopen it after releasing.