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:
gwoo 2008-08-16 16:39:48 +00:00
parent d6f5d9782c
commit 9af76b2512

View file

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