Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur]

2010-12-24 Thread Nando
Paul, *Fully* agreed that the ideal is to let the Locale set MinimalDaysInFirstWeek and FirstDayOfWeek as you've indicated. I'm just looking for a clean way of doing that. The only hitch involved in providing a relatively simple LocaleWeek() UDF back to the CF community at this point seems to be

Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur]

2010-12-23 Thread Paul Hastings
On 12/23/2010 11:11 PM, Nando wrote: > adding cal.getMinimalDaysInFirstWeek(), and it confirms that all of Europe > seems to be on the ISO calender system, with Monday as the first day of the > week and a minimum of 4 days in the first week of the year. another piece of advice, don't hardwire if

Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur]

2010-12-23 Thread Nando
Paul, Thanks! Your suggestions are very helpful. I'm trying to implement them. I ran your getAvailableLocales() code sample, adding cal.getMinimalDaysInFirstWeek(), and it confirms that all of Europe seems to be on the ISO calender system, with Monday as the first day of the week and a minimum o

Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur] [spamtrap bayes][spamtrap heur]

2010-12-23 Thread Paul Hastings
On 12/23/2010 5:01 PM, denstar wrote: > You can plop the locale stuff in there as your own Chronology, to say, > have a week start on Sunday instead of Monday, neh? Or maybe just do > a minus-1 somewhere? geez, that's like going back to cf5 where you have to know everything about locales yourse

Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur] [spamtrap bayes][spamtrap heur]

2010-12-23 Thread denstar
On Thu, Dec 23, 2010 at 1:06 AM, Paul Hastings wrote: > > On 12/23/2010 1:12 PM, denstar wrote: >> You deal with it a lot.  I dabble, and went to a nifty presentation on >> Joda, so... works for me.  =) > > but joda has no functionality for using locales nor for figuring out week > start > days,

Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur] [spamtrap bayes][spamtrap heur]

2010-12-23 Thread Paul Hastings
On 12/23/2010 1:12 PM, denstar wrote: > You deal with it a lot. I dabble, and went to a nifty presentation on > Joda, so... works for me. =) but joda has no functionality for using locales nor for figuring out week start days, etc based on locales. can't see how it would work for anybody in th

Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur] [spamtrap bayes][spamtrap heur]

2010-12-22 Thread denstar
On Wed, Dec 22, 2010 at 10:26 PM, Paul Hastings wrote: > > On 12/23/2010 11:19 AM, denstar wrote: >> Joda seems pretty swell too. > > always thought joda was kind of like swatting a fly w/a battleship & specific > to > this case "it don't know no steenking locales" ;-) Heh! =)p I am partial to

Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur] [spamtrap bayes][spamtrap heur]

2010-12-22 Thread Paul Hastings
On 12/23/2010 11:19 AM, denstar wrote: > Joda seems pretty swell too. always thought joda was kind of like swatting a fly w/a battleship & specific to this case "it don't know no steenking locales" ;-) icu4j is almost always the best choice when it comes to i18n functionality. ~~~

Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur]

2010-12-22 Thread denstar
On Wed, Dec 22, 2010 at 10:19 AM, Paul Hastings wrote: ... > supplying a user's locale will ensure you get their week numbers correct > without > having to resort to universalities that aren't. +1! > final bit of advice, if you want to get the best/latest locale data, use the > icu4j lib instea

RE: Internationalization of Week() function in CF - Last resort to Java

2010-12-22 Thread Jason Durham
Thanks for sharing. -Original Message- From: Nando [mailto:d.na...@gmail.com] Sent: Wednesday, December 22, 2010 7:42 AM To: cf-talk Subject: Internationalization of Week() function in CF - Last resort to Java I'm developing a scheduling application in CF. While doing so,

Re: Internationalization of Week() function in CF - Last resort to Java [spamtrap heur]

2010-12-22 Thread Paul Hastings
On 12/22/2010 8:41 PM, Nando wrote: > numbers are often used in calenders and agendas. A question such as "Can we > arrange a meeting during week 43?" can be rather common. The question, for actually i think that's rather an uncommon datepart to use. in fact in all my years nobody's ever asked f

Internationalization of Week() function in CF - Last resort to Java

2010-12-22 Thread Nando
I'm developing a scheduling application in CF. While doing so, I've discovered that there are a variety of different methods for determining the week number, and that depending on the locale, a week can begin on Saturday, Sunday or Monday. The first week of the year can be determined in a variety