"Fixes #4360, Error in \"i18n\" Shell Script"

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6597 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2008-03-22 21:49:49 +00:00
parent c4a4e9da39
commit 3e61954dbc

View file

@ -410,7 +410,7 @@ class ModelTask extends Shell {
$alias = 'Child' . $associations[$type][$i]['alias']; $alias = 'Child' . $associations[$type][$i]['alias'];
} }
$alternateAlias = $this->in(__("This is a self join. Use {$alias} as the alias", true), array('y', 'n'), 'y'); $alternateAlias = $this->in(sprintf(__('This is a self join. Use %s as the alias', true), $alias), array('y', 'n'), 'y');
if ('n' == low($alternateAlias) || 'no' == low($alternateAlias)) { if ('n' == low($alternateAlias) || 'no' == low($alternateAlias)) {
$associations[$type][$i]['alias'] = $this->in(__('Specify an alternate alias.', true)); $associations[$type][$i]['alias'] = $this->in(__('Specify an alternate alias.', true));