Closed GoogleCodeExporter closed 9 years ago
Hi,
Maybe the solution is to prevent the import of the ui.datepicker-en.js file
into the
contribute method :
public void contribute(WiQueryResourceManager wiQueryResourceManager) {
wiQueryResourceManager.addJavaScriptResource(DatePickerJavaScriptResourceReferen
ce.get());
if(!getLocale().equals(Locale.ENGLISH){
wiQueryResourceManager.addJavaScriptResource(new
DatePickerLanguageResourceReference(
getLocale()));
}
}
I will try it tonight.
Original comment by roche....@gmail.com
on 22 Oct 2009 at 11:56
Original comment by roche....@gmail.com
on 22 Oct 2009 at 8:27
Still not working. Please change:
if(!Locale.ENGLISH.equals(getLocale())){ // #issue 24
To this or something similar:
if(!Locale.ENGLISH.getLanguage().equals(getLocale().getLanguage())){ // #issue
24
On my system, getLocale() returns "en_US", while Locale.ENGLISH returns "en".
So the
test fails.
Original comment by yowza...@gmail.com
on 29 Oct 2009 at 8:32
Indeed, I will fix it tonight.
Original comment by roche....@gmail.com
on 30 Oct 2009 at 12:59
Hi, I fixed the bug.
Moreover, I changed the DatePickerLanguageResourceReference to load the right
file
when the locale is Traditionnal Chinese, Simplified Chinese, Portuguese Brazil.
Original comment by roche....@gmail.com
on 30 Oct 2009 at 8:42
Still not quite right yet. Please change:
if(locale != null && !Locale.ENGLISH.getLanguage().equals(locale)){
To this:
if(locale != null &&
!Locale.ENGLISH.getLanguage().equals(locale.getLanguage())){
This is because ENGLISH.getLanguage() returns a STRING, so comparing it to a
Locale
fails.
Original comment by yowza...@gmail.com
on 31 Oct 2009 at 6:34
Hi,
I totally forgot to change this part of the condition. Sorry for that.
The bug is fixed into the revision 212.
Thanks for your feedback.
Regards
Julien
Original comment by roche....@gmail.com
on 2 Nov 2009 at 8:24
Will be part of 1.0 release
Original comment by lionel.armanet@gmail.com
on 4 Nov 2009 at 9:53
Original issue reported on code.google.com by
yowza...@gmail.com
on 22 Oct 2009 at 8:51