Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating the home.ctp file to include last changes made on directorie…

…s name and i18n usage.
  • Loading branch information...
commit 2e3f828098802d20396c47512df81fc10cbbfcc6 1 parent 2a3f49b
@renan renan authored
View
26 lib/Cake/Console/Templates/default/views/home.ctp
@@ -11,11 +11,11 @@ endif;
<?php
if (is_writable(TMP)):
echo '<span class=\"notice success\">';
- echo __('Your tmp directory is writable.');
+ echo __d('cake_dev', 'Your tmp directory is writable.');
echo '</span>';
else:
echo '<span class=\"notice\">';
- echo __('Your tmp directory is NOT writable.');
+ echo __d('cake_dev', 'Your tmp directory is NOT writable.');
echo '</span>';
endif;
?>
@@ -25,11 +25,11 @@ endif;
\$settings = Cache::settings();
if (!empty(\$settings)):
echo '<span class=\"notice success\">';
- echo __('The %s is being used for caching. To change the config edit APP/config/core.php ', '<em>'. \$settings['engine'] . 'Engine</em>');
+ echo __d('cake_dev', 'The %s is being used for caching. To change the config edit APP/Config/core.php ', '<em>'. \$settings['engine'] . 'Engine</em>');
echo '</span>';
else:
echo '<span class=\"notice\">';
- echo __('Your cache is NOT working. Please check the settings in APP/config/core.php');
+ echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/Config/core.php');
echo '</span>';
endif;
?>
@@ -39,14 +39,14 @@ endif;
\$filePresent = null;
if (file_exists(APP . 'Config' . DS . 'database.php')):
echo '<span class=\"notice success\">';
- echo __('Your database configuration file is present.');
+ echo __d('cake_dev', 'Your database configuration file is present.');
\$filePresent = true;
echo '</span>';
else:
echo '<span class=\"notice\">';
- echo __('Your database configuration file is NOT present.');
+ echo __d('cake_dev', 'Your database configuration file is NOT present.');
echo '<br/>';
- echo __('Rename config/database.php.default to config/database.php');
+ echo __d('cake_dev', 'Rename Config/database.php.default to Config/database.php');
echo '</span>';
endif;
?>
@@ -64,11 +64,11 @@ if (isset(\$filePresent)):
<?php
if (\$connected && \$connected->isConnected()):
echo '<span class=\"notice success\">';
- echo __('Cake is able to connect to the database.');
+ echo __d('cake_dev', 'Cake is able to connect to the database.');
echo '</span>';
else:
echo '<span class=\"notice\">';
- echo __('Cake is NOT able to connect to the database.');
+ echo __d('cake_dev', 'Cake is NOT able to connect to the database.');
echo '</span>';
endif;
?>
@@ -78,16 +78,16 @@ if (isset(\$filePresent)):
App::uses('Validation', 'Utility');
if (!Validation::alphaNumeric('cakephp')) {
echo '<p><span class=\"notice\">';
- __('PCRE has not been compiled with Unicode support.');
+ __d('cake_dev', 'PCRE has not been compiled with Unicode support.');
echo '<br/>';
- __('Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
+ __d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
echo '</span></p>';
}
?>\n";
-$output .= "<h3><?php echo __('Editing this Page') ?></h3>\n";
+$output .= "<h3><?php echo __d('cake_dev', 'Editing this Page') ?></h3>\n";
$output .= "<p>\n";
$output .= "<?php\n";
-$output .= "\techo __('To change the content of this page, edit: %s\n";
+$output .= "\techo __d('cake_dev', 'To change the content of this page, edit: %s\n";
$output .= "\t\tTo change its layout, edit: %s\n";
$output .= "\t\tYou can also add some CSS styles for your pages at: %s',\n";
$output .= "\t\tAPP . 'View' . DS . 'Pages' . DS . 'home.ctp.<br />', APP . 'View' . DS . 'Layouts' . DS . 'default.ctp.<br />', APP . 'webroot' . DS . 'css');\n";
View
14 lib/Cake/View/Pages/home.ctp
@@ -50,11 +50,11 @@ endif;
$settings = Cache::settings();
if (!empty($settings)):
echo '<span class="notice success">';
- echo __d('cake_dev', 'The %s is being used for caching. To change the config edit APP/config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>');
+ echo __d('cake_dev', 'The %s is being used for caching. To change the config edit APP/Config/core.php ', '<em>'. $settings['engine'] . 'Engine</em>');
echo '</span>';
else:
echo '<span class="notice">';
- echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/config/core.php');
+ echo __d('cake_dev', 'Your cache is NOT working. Please check the settings in APP/Config/core.php');
echo '</span>';
endif;
?>
@@ -71,7 +71,7 @@ endif;
echo '<span class="notice">';
echo __d('cake_dev', 'Your database configuration file is NOT present.');
echo '<br/>';
- echo __d('cake_dev', 'Rename config/database.php.default to config/database.php');
+ echo __d('cake_dev', 'Rename Config/database.php.default to Config/database.php');
echo '</span>';
endif;
?>
@@ -103,17 +103,17 @@ if (isset($filePresent)):
App::uses('Validation', 'Utility');
if (!Validation::alphaNumeric('cakephp')) {
echo '<p><span class="notice">';
- __('PCRE has not been compiled with Unicode support.');
+ __d('cake_dev', 'PCRE has not been compiled with Unicode support.');
echo '<br/>';
- __('Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
+ __d('cake_dev', 'Recompile PCRE with Unicode support by adding <code>--enable-unicode-properties</code> when configuring');
echo '</span></p>';
}
?>
<h3><?php echo __d('cake_dev', 'Editing this Page'); ?></h3>
<p>
<?php
-echo __d('cake_dev', 'To change the content of this page, create: APP/views/pages/home.ctp.<br />
-To change its layout, create: APP/views/layouts/default.ctp.<br />
+echo __d('cake_dev', 'To change the content of this page, create: APP/View/Pages/home.ctp.<br />
+To change its layout, create: APP/View/Layouts/default.ctp.<br />
You can also add some CSS styles for your pages at: APP/webroot/css.');
?>
</p>
Please sign in to comment.
Something went wrong with that request. Please try again.