You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@roller.apache.org by Guy Katz <gk...@allot.com> on 2006/08/04 10:00:27 UTC

calendar i18n

Hello;
i am using rller 2.3, tomcat 5.5.9, mysql. my rller web app is i18n'ed to hebrew.
the showCalendar macro displays data in Hebrew on my personal computer but English in the hosting company where I am trying to deploy roller.
I tried to understand why the differences and it is maybe a difference with the default locale which takes over (see LanguageUtils class logs below).
assuming i cant change the default local on the hosting company. how can i still achieve hebrew output?
i was that the web.xml has supported languages, should i add iw to it? would it matter?
thanks in advance.
 
 
log from hosting company:
DEBUG 2006-08-03 11:50:00,253 LanguageUtil:getViewLocale - sessionLocale = iw
DEBUG 2006-08-03 11:50:00,255 LanguageUtil:isSupported - isSupported( locale = iw )
DEBUG 2006-08-03 11:50:00,257 LanguageUtil:getViewLocale - return Locale = en_US
log from my personal comp:
DEBUG 2006-08-03 11:27:55,203 LanguageUtil:getViewLocale - sessionLocale = iw_IL
DEBUG 2006-08-03 11:27:55,218 LanguageUtil:isSupported - isSupported( locale = iw_IL )
DEBUG 2006-08-03 11:27:55,218 LanguageUtil:getViewLocale - return Locale = iw_IL
 
Guy Katz
NetXplorer Server Team Leader
Allot Communications * a mind for networks™
Tel:  972 9 7619288
Fax: 972 9 7443626
gkatz@allot.com <ma...@allot.com> 
www.allot.com <http://www.allot.com/> 
 
 

Re: calendar i18n

Posted by Anil Gangolli <an...@busybuddha.org>.
That should be fine. If you don't experience any other issues, you don't 
need the patch.  It affects some other locale-specific aspects of the 
calendar including start-of-week.  If you experience additional issues with 
the calendar not quite being localized, try it.

--a.

----- Original Message ----- 
From: "Guy Katz" <gk...@allot.com>
To: <ro...@incubator.apache.org>
Sent: Friday, August 04, 2006 3:22 PM
Subject: RE: calendar i18n


hi;
i added the language 'iw' to the web.xml supported langages init parameter 
and it seems to have done the trick. i hope i did not ruin other roller 
features by doing this...
looking at the logs, it looks like roller create a locale for my language 
and now is capable of returning my locale formthe LanguageUtil class.
should i stick with this solution or should i try to recomile the 
calendarTag class as suggested?
thanks in advance.

the logs:
DEBUG 2006-08-04 22:11:47,776 LanguageUtil:extractLanguages - 
extractLanguages( lang = en,nl,zh_cn,zh_tw,vi,iw )
DEBUG 2006-08-04 22:11:47,778 LanguageUtil:createLocale - createLocale( lang 
= en )
DEBUG 2006-08-04 22:11:47,789 LanguageUtil:createLocale - createLocale( lang 
= nl )
DEBUG 2006-08-04 22:11:47,791 LanguageUtil:createLocale - createLocale( lang 
= zh_cn )
DEBUG 2006-08-04 22:11:47,793 LanguageUtil:createLocale - createLocale( lang 
= zh_tw )
DEBUG 2006-08-04 22:11:47,795 LanguageUtil:createLocale - createLocale( lang 
= vi )
DEBUG 2006-08-04 22:11:47,796 LanguageUtil:createLocale - createLocale( lang 
= iw )
DEBUG 2006-08-04 22:11:47,798 LanguageUtil:extractLanguages - supported 
languages: [en, nl, zh_CN, zh_TW, vi, iw]

DEBUG 2006-08-04 22:15:01,370 WeblogPageRequest:<init> - parsing url 
http://www.xwave.co.il/xblogs/page/gkatz2
DEBUG 2006-08-04 22:15:01,371 LanguageUtil:getViewLocale - getViewLocale()
DEBUG 2006-08-04 22:15:01,373 LanguageUtil:getViewLocale - sessionLocale = 
iw
DEBUG 2006-08-04 22:15:01,375 LanguageUtil:isSupported - isSupported( locale 
= iw )
DEBUG 2006-08-04 22:15:01,407 LanguageUtil:getViewLocale - return Locale = 
iw


-----Original Message-----
From: Anil Gangolli [mailto:anil@busybuddha.org]
Sent: Fri 8/4/2006 5:24 PM
To: roller-user@incubator.apache.org
Subject: Re: calendar i18n


This may be due to a bug is in Roller's CalendarTag code (ROL-528) and a
related issue both fixed by the patch attached to the JIRA report on this
bug.  The calendar instance there was being created with the default locale
previously.   I believe it is fixed in Roller 3.0 (though not yet marked as
such because it needs rechecking).

This weekend, I aim to put some test servers up for a few people who've
reported i18n issues to determine if the issues are present.    If you built
from sources, you can try equivalent changes and rebuilding.


----- Original Message ----- 
From: "Guy Katz" <gk...@allot.com>
To: <ro...@incubator.apache.org>
Sent: Friday, August 04, 2006 1:00 AM
Subject: calendar i18n


Hello;
i am using rller 2.3, tomcat 5.5.9, mysql. my rller web app is i18n'ed to
hebrew.
the showCalendar macro displays data in Hebrew on my personal computer but
English in the hosting company where I am trying to deploy roller.
I tried to understand why the differences and it is maybe a difference with
the default locale which takes over (see LanguageUtils class logs below).
assuming i cant change the default local on the hosting company. how can i
still achieve hebrew output?
i was that the web.xml has supported languages, should i add iw to it? would
it matter?
thanks in advance.


log from hosting company:
DEBUG 2006-08-03 11:50:00,253 LanguageUtil:getViewLocale - sessionLocale =
iw
DEBUG 2006-08-03 11:50:00,255 LanguageUtil:isSupported - isSupported( locale
= iw )
DEBUG 2006-08-03 11:50:00,257 LanguageUtil:getViewLocale - return Locale =
en_US
log from my personal comp:
DEBUG 2006-08-03 11:27:55,203 LanguageUtil:getViewLocale - sessionLocale =
iw_IL
DEBUG 2006-08-03 11:27:55,218 LanguageUtil:isSupported - isSupported( locale
= iw_IL )
DEBUG 2006-08-03 11:27:55,218 LanguageUtil:getViewLocale - return Locale =
iw_IL

Guy Katz
NetXplorer Server Team Leader
Allot Communications * a mind for networksT
Tel:  972 9 7619288
Fax: 972 9 7443626
gkatz@allot.com <ma...@allot.com>
www.allot.com <http://www.allot.com/>






RE: calendar i18n

Posted by Guy Katz <gk...@allot.com>.
hi;
i added the language 'iw' to the web.xml supported langages init parameter and it seems to have done the trick. i hope i did not ruin other roller features by doing this...
looking at the logs, it looks like roller create a locale for my language and now is capable of returning my locale formthe LanguageUtil class.
should i stick with this solution or should i try to recomile the calendarTag class as suggested?
thanks in advance.

the logs:
DEBUG 2006-08-04 22:11:47,776 LanguageUtil:extractLanguages - extractLanguages( lang = en,nl,zh_cn,zh_tw,vi,iw )
DEBUG 2006-08-04 22:11:47,778 LanguageUtil:createLocale - createLocale( lang = en )
DEBUG 2006-08-04 22:11:47,789 LanguageUtil:createLocale - createLocale( lang = nl )
DEBUG 2006-08-04 22:11:47,791 LanguageUtil:createLocale - createLocale( lang = zh_cn )
DEBUG 2006-08-04 22:11:47,793 LanguageUtil:createLocale - createLocale( lang = zh_tw )
DEBUG 2006-08-04 22:11:47,795 LanguageUtil:createLocale - createLocale( lang = vi )
DEBUG 2006-08-04 22:11:47,796 LanguageUtil:createLocale - createLocale( lang = iw )
DEBUG 2006-08-04 22:11:47,798 LanguageUtil:extractLanguages - supported languages: [en, nl, zh_CN, zh_TW, vi, iw]

DEBUG 2006-08-04 22:15:01,370 WeblogPageRequest:<init> - parsing url http://www.xwave.co.il/xblogs/page/gkatz2
DEBUG 2006-08-04 22:15:01,371 LanguageUtil:getViewLocale - getViewLocale()
DEBUG 2006-08-04 22:15:01,373 LanguageUtil:getViewLocale - sessionLocale = iw
DEBUG 2006-08-04 22:15:01,375 LanguageUtil:isSupported - isSupported( locale = iw )
DEBUG 2006-08-04 22:15:01,407 LanguageUtil:getViewLocale - return Locale = iw


-----Original Message-----
From: Anil Gangolli [mailto:anil@busybuddha.org]
Sent: Fri 8/4/2006 5:24 PM
To: roller-user@incubator.apache.org
Subject: Re: calendar i18n
 

This may be due to a bug is in Roller's CalendarTag code (ROL-528) and a 
related issue both fixed by the patch attached to the JIRA report on this 
bug.  The calendar instance there was being created with the default locale 
previously.   I believe it is fixed in Roller 3.0 (though not yet marked as 
such because it needs rechecking).

This weekend, I aim to put some test servers up for a few people who've 
reported i18n issues to determine if the issues are present.    If you built 
from sources, you can try equivalent changes and rebuilding.


----- Original Message ----- 
From: "Guy Katz" <gk...@allot.com>
To: <ro...@incubator.apache.org>
Sent: Friday, August 04, 2006 1:00 AM
Subject: calendar i18n


Hello;
i am using rller 2.3, tomcat 5.5.9, mysql. my rller web app is i18n'ed to 
hebrew.
the showCalendar macro displays data in Hebrew on my personal computer but 
English in the hosting company where I am trying to deploy roller.
I tried to understand why the differences and it is maybe a difference with 
the default locale which takes over (see LanguageUtils class logs below).
assuming i cant change the default local on the hosting company. how can i 
still achieve hebrew output?
i was that the web.xml has supported languages, should i add iw to it? would 
it matter?
thanks in advance.


log from hosting company:
DEBUG 2006-08-03 11:50:00,253 LanguageUtil:getViewLocale - sessionLocale = 
iw
DEBUG 2006-08-03 11:50:00,255 LanguageUtil:isSupported - isSupported( locale 
= iw )
DEBUG 2006-08-03 11:50:00,257 LanguageUtil:getViewLocale - return Locale = 
en_US
log from my personal comp:
DEBUG 2006-08-03 11:27:55,203 LanguageUtil:getViewLocale - sessionLocale = 
iw_IL
DEBUG 2006-08-03 11:27:55,218 LanguageUtil:isSupported - isSupported( locale 
= iw_IL )
DEBUG 2006-08-03 11:27:55,218 LanguageUtil:getViewLocale - return Locale = 
iw_IL

Guy Katz
NetXplorer Server Team Leader
Allot Communications * a mind for networksT
Tel:  972 9 7619288
Fax: 972 9 7443626
gkatz@allot.com <ma...@allot.com>
www.allot.com <http://www.allot.com/>





RE: calendar i18n

Posted by Guy Katz <gk...@allot.com>.
thanks!;
i will apply the patch soon and tell you about the outcome.
Guy/


-----Original Message-----
From: Anil Gangolli [mailto:anil@busybuddha.org]
Sent: Fri 8/4/2006 5:24 PM
To: roller-user@incubator.apache.org
Subject: Re: calendar i18n
 

This may be due to a bug is in Roller's CalendarTag code (ROL-528) and a 
related issue both fixed by the patch attached to the JIRA report on this 
bug.  The calendar instance there was being created with the default locale 
previously.   I believe it is fixed in Roller 3.0 (though not yet marked as 
such because it needs rechecking).

This weekend, I aim to put some test servers up for a few people who've 
reported i18n issues to determine if the issues are present.    If you built 
from sources, you can try equivalent changes and rebuilding.


----- Original Message ----- 
From: "Guy Katz" <gk...@allot.com>
To: <ro...@incubator.apache.org>
Sent: Friday, August 04, 2006 1:00 AM
Subject: calendar i18n


Hello;
i am using rller 2.3, tomcat 5.5.9, mysql. my rller web app is i18n'ed to 
hebrew.
the showCalendar macro displays data in Hebrew on my personal computer but 
English in the hosting company where I am trying to deploy roller.
I tried to understand why the differences and it is maybe a difference with 
the default locale which takes over (see LanguageUtils class logs below).
assuming i cant change the default local on the hosting company. how can i 
still achieve hebrew output?
i was that the web.xml has supported languages, should i add iw to it? would 
it matter?
thanks in advance.


log from hosting company:
DEBUG 2006-08-03 11:50:00,253 LanguageUtil:getViewLocale - sessionLocale = 
iw
DEBUG 2006-08-03 11:50:00,255 LanguageUtil:isSupported - isSupported( locale 
= iw )
DEBUG 2006-08-03 11:50:00,257 LanguageUtil:getViewLocale - return Locale = 
en_US
log from my personal comp:
DEBUG 2006-08-03 11:27:55,203 LanguageUtil:getViewLocale - sessionLocale = 
iw_IL
DEBUG 2006-08-03 11:27:55,218 LanguageUtil:isSupported - isSupported( locale 
= iw_IL )
DEBUG 2006-08-03 11:27:55,218 LanguageUtil:getViewLocale - return Locale = 
iw_IL

Guy Katz
NetXplorer Server Team Leader
Allot Communications * a mind for networksT
Tel:  972 9 7619288
Fax: 972 9 7443626
gkatz@allot.com <ma...@allot.com>
www.allot.com <http://www.allot.com/>



Re: calendar i18n

Posted by Anil Gangolli <an...@busybuddha.org>.
This may be due to a bug is in Roller's CalendarTag code (ROL-528) and a 
related issue both fixed by the patch attached to the JIRA report on this 
bug.  The calendar instance there was being created with the default locale 
previously.   I believe it is fixed in Roller 3.0 (though not yet marked as 
such because it needs rechecking).

This weekend, I aim to put some test servers up for a few people who've 
reported i18n issues to determine if the issues are present.    If you built 
from sources, you can try equivalent changes and rebuilding.


----- Original Message ----- 
From: "Guy Katz" <gk...@allot.com>
To: <ro...@incubator.apache.org>
Sent: Friday, August 04, 2006 1:00 AM
Subject: calendar i18n


Hello;
i am using rller 2.3, tomcat 5.5.9, mysql. my rller web app is i18n'ed to 
hebrew.
the showCalendar macro displays data in Hebrew on my personal computer but 
English in the hosting company where I am trying to deploy roller.
I tried to understand why the differences and it is maybe a difference with 
the default locale which takes over (see LanguageUtils class logs below).
assuming i cant change the default local on the hosting company. how can i 
still achieve hebrew output?
i was that the web.xml has supported languages, should i add iw to it? would 
it matter?
thanks in advance.


log from hosting company:
DEBUG 2006-08-03 11:50:00,253 LanguageUtil:getViewLocale - sessionLocale = 
iw
DEBUG 2006-08-03 11:50:00,255 LanguageUtil:isSupported - isSupported( locale 
= iw )
DEBUG 2006-08-03 11:50:00,257 LanguageUtil:getViewLocale - return Locale = 
en_US
log from my personal comp:
DEBUG 2006-08-03 11:27:55,203 LanguageUtil:getViewLocale - sessionLocale = 
iw_IL
DEBUG 2006-08-03 11:27:55,218 LanguageUtil:isSupported - isSupported( locale 
= iw_IL )
DEBUG 2006-08-03 11:27:55,218 LanguageUtil:getViewLocale - return Locale = 
iw_IL

Guy Katz
NetXplorer Server Team Leader
Allot Communications * a mind for networks™
Tel:  972 9 7619288
Fax: 972 9 7443626
gkatz@allot.com <ma...@allot.com>
www.allot.com <http://www.allot.com/>