[pLog-svn] firstDayOfWeek
Jon Daley
plogworld at jon.limedaley.com
Tue May 23 20:20:26 GMT 2006
Is there a way for this function to not have a hard-coded case statement,
but instead use the locale file? I encourage people to not edit their
locale files, but instead make a locale_en_JD.class.php that include
locale_en_US.class.php for easier upgrading, but due to this function, the
calendar is broken, even though the locale file specifies the order of the
days.
Oscar says here:
http://forums.lifetype.net/viewtopic.php?t=2231
that you can just modify the locale file, but I think isn't true?
function firstDayOfWeek()
{
switch($this->getCountryId()) {
case "US":
case "AU":
case "IE":
case "UK": $day = 0; break;
default: $day = 1; break;
}
return $day;
}
**************************************
Jon Daley
http://jon.limedaley.com/
I was taking pictures of a five-year-old boy and remarked,
"You have the nicest eyes. Where did you get them?"
He looked at me blankly and said, "They came with my head."
-- Brenda Hord
More information about the pLog-svn
mailing list