phpWebLog

find
story index | search | archive | submit story | downloads | stats | contact
Topics
  • General (952)
  • Announcements (20)
  • Development (524)
  • Mods & Hacks (33)


  • phpWebLog
  • Latest Unstable - 0.5.3
  • Latest Stable - 0.5.2
  • ChangeLog
  • TODO / Roadmap
  • BUGS

    CVS WEB

  • New XL fork 0.5.2
  • Unstable branch 0.5.3


  • phpWebLog Addons
    See Romarin.org for phpWebLog addons and more support.

    Function SETLOCALE() on OpenBSD
    Posted under Development by Joris (---.nan.libertysurf.net) on Saturday March 17 2001 @ 08:21AM EST
    Development 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

    < PHP block | Different layouts for different topics? >

    PHP.net
  • Call for Speakers: Zend/PHP Conference & Expo 2005
  • PHP Qu�bec 2005: PHP - MySQL - Apache
  • PHP West: Security Conference - Call for Speakers Announced
  • PHP &amp; PEAR at FOSDEM 2005
  • php|symphony
  • ApacheCon Europe Call for Papers
  • PHP Security Consortium
  • O'Reilly Open Source Convention 2005
  • Third Hungarian PHP Conference
  • php|tropics

  • PHPBuilder
  • An Introduction to Web Services with PHP
  • Use PHP To Create Custom Web-Based Honeypots with GHH
  • How to import Excel, Access or XML data into a MySQL db
  • MySQL Query Browser
  • Tour MySQL Administrator
  • Creating a PHP-Based Content Management System
  • Creating a Simple Extendable Module System
  • Contribute 3 Software Review
  • Eclipse for the PHP Developer
  • Enjoy the Openness of MySQL

  • Bordom
  • Newegg.com - Raidmax ATX-[...]
  • ThinkGeek :: Octane Energ[...]
  • bordom .oO!@#;,. booooooo[...]
  • ... malente ...
  • PlayStation.com - PSP
  • �gPSP�h�i�v���C�X�e�[�V��[...]
  • This person isn't very sm[...]
  • Zombie PCs being sent to [...]
  • Myspace.com
  • New Scientist Breaking Ne[...]


  • The JEF Blog
  • Baghdad Spring, Atlanta Winter, and all the other realities
  • Monday Morning Levity - Bible Test
  • Instant History and Absolute Causality
  • Hans Bethe
  • Poor but Proud, and Other Pogo Philosophy
  • Berlin
  • Iraq voting


  • phpWebLog: A PHP News and Content Management System
    Copyright (C) 2000-2002, Jason Hines / devtwo