Код: Выделить всё
5. in /Applications/AMPPS/www/mysite/vendor/yiisoft/yii2/i18n/MessageSource.php – yii\i18n\MessageSource::translateMessage('yii', '{attribute} must be an integer.', []) at line 87
81828384858687888990919293 * @param string $language the target language
* @return string|boolean the translated message or false if translation wasn't found or isn't required
*/
public function translate($category, $message, $language)
{
if ($this->forceTranslation || $language !== $this->sourceLanguage) {
return $this->translateMessage($category, $message, $language);
} else {
return false;
}
}
/**
6. in /Applications/AMPPS/www/mysite/vendor/yiisoft/yii2/BaseYii.php – yii\i18n\MessageSource::translate('yii', '{attribute} must be an integer.', [], 'ru-RU') at line 498
492493494495496497498499500501502503504 * [[\yii\base\Application::language|application language]] will be used.
* @return string the translated message.
*/
public static function t($category, $message, $params = [], $language = null)
{
if (static::$app !== null) {
return static::$app->getI18n()->translate($category, $message, $params, $language ?: static::$app->language);
} else {
$p = [];
foreach ((array) $params as $name => $value) {
$p['{' . $name . '}'] = $value;
}