Hey there, here a tech question :
I'm running (the FANTASTIC) phpWebLog on OpenBSD O/S with PHP4. However, apparently this OS doesn't support the setlocale() function. As I am running phpWebLog in French, I'm getting stuck on the date/tim format as the $G_DATE = "%A %d %B %Y � %H:%M %Z"; will return the date in the format ofthe OS (english)...
Now, I have tried to declare a function within the .lng file, like :
function Get_JourF($j)
{
$jourf=array("Monday"=>"Lundi","Tuesday"=>"Mardi","Wednesday"=>"Mercredi",
"Thursday"=>"Jeudi","Friday"=>"Vendredi",
"Saturday"=>"Samedi","Sunday"=>"Dimanche");
return ($jourf[$j]);
}
function Get_MoisF($m)
{
$moisf=array("January"=>"janvier","February"=>"f�vrier",
"March"=>"mars","April"=>"avril","May"=>"mai","June"=>"juin",
"July"=>"juillet","August"=>"ao�t","September"=>"septembre","October"=>"octobre","November"=>"novembre",
"December"=>"d�cembre");
return ($moisf[$m]);
}
Which would work if I echo the date, but how would you parse this in the $G_DATE functon? Or am I starting completely at the wrong end? Thanx 4 ur help in advance! And again congrats for phpWebLog which is getting better each release!
Related Link
|
|