public static function localizeDate($string)
    {
        // Only translate dates in localized environments
        if (self::isLocalized()) {
            foreach (self::$_datetime_dictionary as $value) {
                $string = preg_replace('/\b' . $value . '\b/i', self::translate($value), $string);
            }
        }

        return $string;
    }
public static function localizeDate($string)
    {
        // Only translate dates in localized environments
        if (self::isLocalized()) {
            foreach (self::$_datetime_dictionary as $value) {
                $string = preg_replace('/\b' . $value . '\b/i', self::translate($value), $string);
            }
        }

        return $string;
    }
public static function localizeDate ( $ string ) { // Only translate dates in localized environments if ( self :: isLocalized ( ) ) { foreach ( self :: $ _datetime_dictionary as $ value ) { $ string = preg_replace ( '/\b' . $ value . '\b/i' , self :: translate ( $ value ) , $ string ) ; } } return $ string ; }
Localize dates.

@param string $string
Standard date that should be localized
@return string
Return the given date with translated month and day names
Localize dates .