From: Chuck Hagenbuch Date: Sun, 16 Nov 2008 05:06:48 +0000 (-0500) Subject: normalize all locale parts to be ucfirst X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=b33218ff41f86bc1660c5ee7275e276441bd6164;p=horde.git normalize all locale parts to be ucfirst --- diff --git a/framework/Horde_Date_Parser/lib/Horde/Support/Numerizer.php b/framework/Horde_Date_Parser/lib/Horde/Support/Numerizer.php index 3e9d012d8..4598f6296 100644 --- a/framework/Horde_Date_Parser/lib/Horde/Support/Numerizer.php +++ b/framework/Horde_Date_Parser/lib/Horde/Support/Numerizer.php @@ -7,7 +7,7 @@ class Horde_Support_Numerizer public static function factory($locale = null, $args = array()) { if ($locale) { - $locale = ucfirst($locale); + $locale = str_replace(' ', '_', ucwords(str_replace('_', ' ', strtolower($locale)))); $class = 'Horde_Support_Numerizer_Locale_' . $locale; if (class_exists($class)) { return new $class($args);