[pLog-svn] r1651 - plog/trunk/class/locale

ork at devel.plogworld.net ork at devel.plogworld.net
Wed Mar 30 18:10:52 GMT 2005


Author: ork
Date: 2005-03-30 18:10:51 +0000 (Wed, 30 Mar 2005)
New Revision: 1651

Modified:
   plog/trunk/class/locale/locale.class.php
Log:
simply cutting the strings won't work if you use html entities .. like
the german locale does .. 
this fix will work for the german version, but i guess it would be much
better to have a new array in each locale with abbreviated month names. 
maybe optional.



Modified: plog/trunk/class/locale/locale.class.php
===================================================================
--- plog/trunk/class/locale/locale.class.php	2005-03-30 17:51:43 UTC (rev 1650)
+++ plog/trunk/class/locale/locale.class.php	2005-03-30 18:10:51 UTC (rev 1651)
@@ -489,9 +489,9 @@
 				$format = $this->_dateFormat;
 
             // now we can continue normally
-			$values["%a"] = substr($weekday, 0, 2 );
+			$values["%a"] = htmlentities(substr(html_entity_decode($weekday), 0, 2 ));
 			$values["%A"] = $weekday;
-			$values["%b"] = substr($monthStr, 0, 3 );
+			$values["%b"] = htmlentities(substr(html_entity_decode($monthStr), 0, 3 ));
 			$values["%B"] = $monthStr;
 			$values["%d"] = ($timeStamp->getDay() < 10) ? "0".$timeStamp->getDay() : $timeStamp->getDay();
 			$values["%e"] = intval($timeStamp->getDay());




More information about the pLog-svn mailing list