|
@@ -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;
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|