From: Mike <mi...@la...> - 2002-11-07 19:43:08
|
Everyone can take a look at my version with the "View in..." pop menu... http://LaShampoo.net/iCal Basically, the prefered language is the default language set by the=20 webmaster (here it's french). Then if the visitor (you) change the=20 prefered language, the language is set in the visitor cookies. The=20 visitor can then browse the entire calendar with his prefered language.=20= The $week_start_day is set in the language file (I try to set the=20 proper $week_start_day in every language file). Chad wrote : > cookie takes precedence over config and lang file > config takes precedence over lang file > if neither, lang file is used How do you set the "Start week day" cookie ? Is there a pop menu "Start=20= Day Week" ? We still have to respond to that question. Jared wrote : > By default $week_start_day could be set to "Same as Language" and then=20= > it would use the one from the language file. Otherwise, the language=20= > file wouldn't reset that var. Would that be acceptable? Yes. That would be more acceptable. But best is to add an=20 $prefered_start_day in the config file: =AB $prefered_start_day =3D '' // If the start week day in your language=20= file don't fit your need, please do change this variable to the desired=20= day otherwise leave blank. =BB Explanations: if the visitor use the same language as the webmaster and=20= the webmaster didn't like the default settings set in the language=20 file, then $prefered_start_day is not blank and phpical will use the=20 $prefered_start_day Otherwise, if the visitor choose another=20 language, phpical will use $week_start_day set in the language file and=20= not the $prefered_start_day because is no more the same language. This=20= is more convenient for FOREIGN people because the $start_week_day is no=20= more fixed by the webmaster for HIS own language. Other option (best): to tell webmasters to change the $week_start_day=20 in THEIR language file to their needs. This way, that doesn't affect=20 other languages and they can change the 24/12 format too (some english=20= country may use 24h format). This way, visitors with other languages can still benefit the proper=20 settings of the desired language file whatever if the french language=20 file is used in a "Sunday" country for example. And YES, to respond to Matt Jarjoura, even American country will have=20 the desired settings whatever they're Sunday or Monday and 12h or 24h=20 country... Mike.=20= |