mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-19 11:06:15 +00:00
fixes #5226, locale in translate behavior
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@7472 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
d6f5d9782c
commit
9af76b2512
1 changed files with 2 additions and 0 deletions
|
@ -307,8 +307,10 @@ class TranslateBehavior extends ModelBehavior {
|
|||
App::import('Core', 'i18n');
|
||||
}
|
||||
$I18n =& I18n::getInstance();
|
||||
$I18n->l10n->get(Configure::read('Config.language'));
|
||||
$model->locale = $I18n->l10n->locale;
|
||||
}
|
||||
|
||||
return $model->locale;
|
||||
}
|
||||
/**
|
||||
|
|
Loading…
Add table
Reference in a new issue