Changeset 8463
- Timestamp:
- 04/15/08 01:40:45 (5 months ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/1.1/lib/widget/sfWidgetFormSchemaFormatter.class.php
r8408 r8463 67 67 return false; 68 68 } 69 69 70 70 if (is_null(self::$translationCallable)) 71 71 { 72 // replace object with strings 73 foreach ($parameters as $key => $value) 74 { 75 if (is_object($value) && method_exists($value, '__toString')) 76 { 77 $parameters[$key] = $value->__toString(); 78 } 79 } 80 72 81 return strtr($subject, $parameters); 73 82 } 74 83 75 84 if (self::$translationCallable instanceof sfCallable) 76 85 { … … 80 89 return call_user_func(self::$translationCallable, $subject, $parameters); 81 90 } 82 91 83 92 /** 84 93 * Returns the current i18n callable