Fix E_STRICT warning in i18n example.

This commit is contained in:
Justin Hileman
2012-03-04 21:32:22 -08:00
parent 4e733287cc
commit ee4c52de8f
+1 -1
View File
@@ -14,7 +14,7 @@ class I18n {
'My name is {{ name }}.' => 'Me llamo {{ name }}.', 'My name is {{ name }}.' => 'Me llamo {{ name }}.',
); );
public function __trans($text) { public static function __trans($text) {
return isset(self::$dictionary[$text]) ? self::$dictionary[$text] : $text; return isset(self::$dictionary[$text]) ? self::$dictionary[$text] : $text;
} }
} }