link(
- $html->image('cake.power.png', array('alt'=>"CakePHP: the rapid development php framework", 'border'=>"0")),
+ $html->image('cake.power.png', array('alt'=> __("CakePHP: the rapid development php framework", true), 'border'=>"0")),
'http://www.cakephp.org/',
array('target'=>'_new'), null, false
);
diff --git a/cake/console/libs/templates/views/form.ctp b/cake/console/libs/templates/views/form.ctp
index 9da87dc69..1c55f6732 100644
--- a/cake/console/libs/templates/views/form.ctp
+++ b/cake/console/libs/templates/views/form.ctp
@@ -38,7 +38,7 @@
}
}
foreach ($hasAndBelongsToMany as $assocName => $assocData) {
- echo "\t\techo \$form->input('{$assocName}');\n";
+ echo "\t\t echo \$form->input('{$assocName}');\n";
}
echo "\t?>\n";
?>
diff --git a/cake/console/libs/templates/views/index.ctp b/cake/console/libs/templates/views/index.ctp
index 63e023ea4..10d785424 100644
--- a/cake/console/libs/templates/views/index.ctp
+++ b/cake/console/libs/templates/views/index.ctp
@@ -64,9 +64,9 @@ foreach (\${$pluralVar} as \${$singularVar}):
$otherModelObj =& ClassRegistry::getObject($otherModelKey);
$otherPrimaryKey = $otherModelObj->primaryKey;
$otherDisplayField = $otherModelObj->displayField;
- echo "\t\t\n\t\t\tlink(\${$singularVar}['{$otherModelClass}']['{$otherDisplayField}'], array('controller'=> '{$otherControllerPath}', 'action'=>'view', \${$singularVar}['{$otherModelClass}']['{$otherPrimaryKey}'])); ?>\n\t\t \n";
+ echo "\t\t\n\t\t\tlink(__(\${$singularVar}['{$otherModelClass}']['{$otherDisplayField}'], true), array('controller'=> '{$otherControllerPath}', 'action'=>'view', \${$singularVar}['{$otherModelClass}']['{$otherPrimaryKey}'])); ?>\n\t\t \n";
} else {
- echo "\t\t\n\t\t\t\n\t\t \n";
+ echo "\t\t\n\t\t\t\n\t\t \n";
}
}
@@ -99,7 +99,7 @@ echo "\n";
$otherVariableName = Inflector::variable($otherModelClass);
$otherPluralHumanName = Inflector::humanize($otherControllerPath);
$otherSingularHumanName = Inflector::humanize($otherModelKey);
- echo "\t\tlink(sprintf(__('List %s', true), __('{$otherPluralHumanName}, true)), array('controller'=> '{$otherControllerPath}', 'action'=>'index')); ?> \n";
+ echo "\t\tlink(sprintf(__('List %s', true), __('{$otherPluralHumanName}', true)), array('controller'=> '{$otherControllerPath}', 'action'=>'index')); ?> \n";
echo "\t\tlink(sprintf(__('New %s', true), __('{$otherSingularHumanName}', true)), array('controller'=> '{$otherControllerPath}', 'action'=>'add')); ?> \n";
}
}
diff --git a/cake/console/libs/templates/views/view.ctp b/cake/console/libs/templates/views/view.ctp
index e252b6e4f..7779c3efb 100644
--- a/cake/console/libs/templates/views/view.ctp
+++ b/cake/console/libs/templates/views/view.ctp
@@ -47,11 +47,11 @@ foreach ($fields as $field) {
$otherModelObj =& ClassRegistry::getObject($otherModelKey);
$otherPrimaryKey = $otherModelObj->primaryKey;
$otherDisplayField = $otherModelObj->displayField;
- echo "\t\t".Inflector::humanize($otherModelClass)." \n";
- echo "\t\t\n\t\t\tlink(\${$singularVar}['{$otherModelClass}']['{$otherDisplayField}'], array('controller'=> '{$otherControllerPath}', 'action'=>'view', \${$singularVar}['{$otherModelClass}']['{$otherPrimaryKey}'])); ?>\n\t\t\t \n\t\t \n";
+ echo "\t\t\n";
+ echo "\t\t\n\t\t\tlink(__(\${$singularVar}['{$otherModelClass}']['{$otherDisplayField}'], true), array('controller'=> '{$otherControllerPath}', 'action'=>'view', \${$singularVar}['{$otherModelClass}']['{$otherPrimaryKey}'])); ?>\n\t\t\t \n\t\t \n";
} else {
- echo "\t\t".Inflector::humanize($field['name'])." \n";
- echo "\t\t\n\t\t\t\n\t\t\t \n\t\t \n";
+ echo "\t\t\n";
+ echo "\t\t\n\t\t\t\n\t\t\t \n\t\t \n";
}
}
?>
@@ -143,7 +143,7 @@ foreach ($relations as $assocName => $assocData):
".Inflector::humanize($field['name'])."\n";
+ echo "\t\t \n";
}
?>
";?>
diff --git a/cake/libs/view/templates/layouts/default.ctp b/cake/libs/view/templates/layouts/default.ctp
index f9294391f..e3d987d46 100644
--- a/cake/libs/view/templates/layouts/default.ctp
+++ b/cake/libs/view/templates/layouts/default.ctp
@@ -28,7 +28,7 @@
- CakePHP: the rapid development php framework:
+
@@ -41,7 +41,7 @@
-
link('CakePHP: the rapid development php framework', 'http://cakephp.org');?>
+link(__('CakePHP: the rapid development php framework', true), 'http://cakephp.org');?>
link(
- $html->image('cake.power.png', array('alt'=>"CakePHP: the rapid development php framework", 'border'=>"0")),
+ $html->image('cake.power.png', array('alt'=> __("CakePHP: the rapid development php framework", true), 'border'=>"0")),
'http://www.cakephp.org/',
array('target'=>'_new'), null, false
);
@@ -64,4 +64,4 @@
-
\ No newline at end of file
+