diff --git a/lib/Cake/View/Helper.php b/lib/Cake/View/Helper.php index 448917f224c..91b017ba1b2 100644 --- a/lib/Cake/View/Helper.php +++ b/lib/Cake/View/Helper.php @@ -124,7 +124,7 @@ public function __construct(View $View, $settings = array()) { * @param array $params Array of params for the method. */ public function __call($method, $params) { - trigger_error(__('Method %1$s::%2$s does not exist', get_class($this), $method), E_USER_WARNING); + trigger_error(__d('cake', 'Method %1$s::%2$s does not exist', get_class($this), $method), E_USER_WARNING); } /** diff --git a/lib/Cake/View/Helper/FormHelper.php b/lib/Cake/View/Helper/FormHelper.php index 17dd064c5d1..7a7ed9128dc 100644 --- a/lib/Cake/View/Helper/FormHelper.php +++ b/lib/Cake/View/Helper/FormHelper.php @@ -367,7 +367,7 @@ public function end($options = null) { $submitOptions = $options; if (!$submit) { - $submit = __('Submit'); + $submit = __d('cake', 'Submit'); } } $out .= $this->submit($submit, $submitOptions); @@ -509,7 +509,7 @@ public function error($field, $text = null, $options = array()) { if ($text != null) { $error = $text; } elseif (is_numeric($error)) { - $error = __('Error in field %s', Inflector::humanize($this->field())); + $error = __d('cake', 'Error in field %s', Inflector::humanize($this->field())); } if ($options['escape']) { $error = h($error); @@ -552,7 +552,7 @@ function label($fieldName = null, $text = null, $options = array()) { if (substr($text, -3) == '_id') { $text = substr($text, 0, strlen($text) - 3); } - $text = __(Inflector::humanize(Inflector::underscore($text))); + $text = __d('cake', Inflector::humanize(Inflector::underscore($text))); } if (is_string($options)) { @@ -621,16 +621,16 @@ public function inputs($fields = null, $blacklist = null) { } if ($legend === true) { - $actionName = __('New %s'); + $actionName = __d('cake', 'New %s'); $isEdit = ( strpos($this->request->params['action'], 'update') !== false || strpos($this->request->params['action'], 'edit') !== false ); if ($isEdit) { - $actionName = __('Edit %s'); + $actionName = __d('cake', 'Edit %s'); } $modelName = Inflector::humanize(Inflector::underscore($model)); - $legend = sprintf($actionName, __($modelName)); + $legend = sprintf($actionName, __d('cake', $modelName)); } $out = null; @@ -1046,7 +1046,7 @@ public function radio($fieldName, $options = array(), $attributes = array()) { $legend = $attributes['legend']; unset($attributes['legend']); } elseif (count($options) > 1) { - $legend = __(Inflector::humanize($this->field())); + $legend = __d('cake', Inflector::humanize($this->field())); } $label = true; @@ -1131,7 +1131,7 @@ public function radio($fieldName, $options = array(), $attributes = array()) { public function __call($method, $params) { $options = array(); if (empty($params)) { - throw new CakeException(__('Missing field name for FormHelper::%s', $method)); + throw new CakeException(__d('cake', 'Missing field name for FormHelper::%s', $method)); } if (isset($params[1])) { $options = $params[1]; @@ -1347,7 +1347,7 @@ public function postLink($title, $url = null, $options = array(), $confirmMessag */ public function submit($caption = null, $options = array()) { if (!$caption) { - $caption = __('Submit'); + $caption = __d('cake', 'Submit'); } $out = null; $div = true; @@ -2139,18 +2139,18 @@ function __generateOptions($name, $options = array()) { break; case 'month': if ($options['monthNames'] === true) { - $data['01'] = __('January'); - $data['02'] = __('February'); - $data['03'] = __('March'); - $data['04'] = __('April'); - $data['05'] = __('May'); - $data['06'] = __('June'); - $data['07'] = __('July'); - $data['08'] = __('August'); - $data['09'] = __('September'); - $data['10'] = __('October'); - $data['11'] = __('November'); - $data['12'] = __('December'); + $data['01'] = __d('cake', 'January'); + $data['02'] = __d('cake', 'February'); + $data['03'] = __d('cake', 'March'); + $data['04'] = __d('cake', 'April'); + $data['05'] = __d('cake', 'May'); + $data['06'] = __d('cake', 'June'); + $data['07'] = __d('cake', 'July'); + $data['08'] = __d('cake', 'August'); + $data['09'] = __d('cake', 'September'); + $data['10'] = __d('cake', 'October'); + $data['11'] = __d('cake', 'November'); + $data['12'] = __d('cake', 'December'); } else if (is_array($options['monthNames'])) { $data = $options['monthNames']; } else { diff --git a/lib/Cake/View/Helper/HtmlHelper.php b/lib/Cake/View/Helper/HtmlHelper.php index 1f098864fe4..4925ba16fda 100644 --- a/lib/Cake/View/Helper/HtmlHelper.php +++ b/lib/Cake/View/Helper/HtmlHelper.php @@ -940,13 +940,13 @@ public function loadConfig($configFile, $path = CONFIGS) { $reader = $configFile[1]; } } else { - throw new ConfigureException(__('Cannot load the configuration file. Wrong "configFile" configuration.')); + throw new ConfigureException(__d('cake', 'Cannot load the configuration file. Wrong "configFile" configuration.')); } $readerClass = Inflector::camelize($reader) . 'Reader'; App::uses($readerClass, 'Configure'); if (!class_exists($readerClass)) { - throw new ConfigureException(__('Cannot load the configuration file. Unknown reader.')); + throw new ConfigureException(__d('cake', 'Cannot load the configuration file. Unknown reader.')); } $readerObj = new $readerClass($path); diff --git a/lib/Cake/View/Helper/JsHelper.php b/lib/Cake/View/Helper/JsHelper.php index 1495b72a6e5..d705ea7ef66 100644 --- a/lib/Cake/View/Helper/JsHelper.php +++ b/lib/Cake/View/Helper/JsHelper.php @@ -153,7 +153,7 @@ public function __call($method, $params) { if (method_exists($this, $method . '_')) { return call_user_func(array(&$this, $method . '_'), $params); } - trigger_error(__('JsHelper:: Missing Method %s is undefined', $method), E_USER_WARNING); + trigger_error(__d('cake', 'JsHelper:: Missing Method %s is undefined', $method), E_USER_WARNING); } /** diff --git a/lib/Cake/View/Helper/MootoolsEngineHelper.php b/lib/Cake/View/Helper/MootoolsEngineHelper.php index 37c61b6c929..13fb1bff4b5 100644 --- a/lib/Cake/View/Helper/MootoolsEngineHelper.php +++ b/lib/Cake/View/Helper/MootoolsEngineHelper.php @@ -307,7 +307,7 @@ function drag($options = array()) { function drop($options = array()) { if (empty($options['drag'])) { trigger_error( - __('MootoolsEngine::drop() requires a "drag" option to properly function'), E_USER_WARNING + __d('cake', 'MootoolsEngine::drop() requires a "drag" option to properly function'), E_USER_WARNING ); return false; } diff --git a/lib/Cake/View/Helper/NumberHelper.php b/lib/Cake/View/Helper/NumberHelper.php index f2449a4eabc..fc5b35144f5 100644 --- a/lib/Cake/View/Helper/NumberHelper.php +++ b/lib/Cake/View/Helper/NumberHelper.php @@ -88,15 +88,15 @@ public function precision($number, $precision = 3) { public function toReadableSize($size) { switch (true) { case $size < 1024: - return __n('%d Byte', '%d Bytes', $size, $size); + return __dn('cake', '%d Byte', '%d Bytes', $size, $size); case round($size / 1024) < 1024: - return __('%d KB', $this->precision($size / 1024, 0)); + return __d('cake', '%d KB', $this->precision($size / 1024, 0)); case round($size / 1024 / 1024, 2) < 1024: - return __('%.2f MB', $this->precision($size / 1024 / 1024, 2)); + return __d('cake', '%.2f MB', $this->precision($size / 1024 / 1024, 2)); case round($size / 1024 / 1024 / 1024, 2) < 1024: - return __('%.2f GB', $this->precision($size / 1024 / 1024 / 1024, 2)); + return __d('cake', '%.2f GB', $this->precision($size / 1024 / 1024 / 1024, 2)); default: - return __('%.2f TB', $this->precision($size / 1024 / 1024 / 1024 / 1024, 2)); + return __d('cake', '%.2f TB', $this->precision($size / 1024 / 1024 / 1024 / 1024, 2)); } } diff --git a/lib/Cake/View/Helper/PaginatorHelper.php b/lib/Cake/View/Helper/PaginatorHelper.php old mode 100755 new mode 100644 index eed163a957d..495d6402b38 --- a/lib/Cake/View/Helper/PaginatorHelper.php +++ b/lib/Cake/View/Helper/PaginatorHelper.php @@ -102,7 +102,7 @@ function __construct(View $View, $settings = array()) { $classname = $ajaxProvider . 'Helper'; if (!method_exists($classname, 'link')) { throw new CakeException(sprintf( - __('%s does not implement a link() method, it is incompatible with PaginatorHelper'), $classname + __d('cake', '%s does not implement a link() method, it is incompatible with PaginatorHelper'), $classname )); } parent::__construct($View, $settings); @@ -306,7 +306,7 @@ public function sort($key, $title = null, $options = array()) { if (empty($title)) { $title = $key; - $title = __(Inflector::humanize(preg_replace('/_id$/', '', $title))); + $title = __d('cake', Inflector::humanize(preg_replace('/_id$/', '', $title))); } $dir = isset($options['direction']) ? $options['direction'] : 'asc'; unset($options['direction']); @@ -553,7 +553,7 @@ public function counter($options = array()) { array( 'model' => $this->defaultModel(), 'format' => 'pages', - 'separator' => __(' of ') + 'separator' => __d('cake', ' of ') ), $options); diff --git a/lib/Cake/View/Helper/TimeHelper.php b/lib/Cake/View/Helper/TimeHelper.php index 269c4b9f009..3f149add4da 100644 --- a/lib/Cake/View/Helper/TimeHelper.php +++ b/lib/Cake/View/Helper/TimeHelper.php @@ -82,19 +82,19 @@ public function convertSpecifiers($format, $time = null) { private function __translateSpecifier($specifier) { switch ($specifier[1]) { case 'a': - $abday = __c('abday', 5); + $abday = __cn('cake', 'abday', 5); if (is_array($abday)) { return $abday[date('w', $this->__time)]; } break; case 'A': - $day = __c('day', 5); + $day = __cn('cake', 'day', 5); if (is_array($day)) { return $day[date('w', $this->__time)]; } break; case 'c': - $format = __c('d_t_fmt', 5); + $format = __cn('cake', 'd_t_fmt', 5); if ($format != 'd_t_fmt') { return $this->convertSpecifiers($format, $this->__time); } @@ -116,13 +116,13 @@ private function __translateSpecifier($specifier) { return date('jS', $this->__time); case 'b': case 'h': - $months = __c('abmon', 5); + $months = __cn('cake', 'abmon', 5); if (is_array($months)) { return $months[date('n', $this->__time) -1]; } return '%b'; case 'B': - $months = __c('mon', 5); + $months = __cn('cake', 'mon', 5); if (is_array($months)) { return $months[date('n', $this->__time) -1]; } @@ -133,14 +133,14 @@ private function __translateSpecifier($specifier) { case 'P': $default = array('am' => 0, 'pm' => 1); $meridiem = $default[date('a',$this->__time)]; - $format = __c('am_pm', 5); + $format = __cn('cake', 'am_pm', 5); if (is_array($format)) { $meridiem = $format[$meridiem]; return ($specifier[1] == 'P') ? strtolower($meridiem) : strtoupper($meridiem); } break; case 'r': - $complete = __c('t_fmt_ampm', 5); + $complete = __cn('cake', 't_fmt_ampm', 5); if ($complete != 't_fmt_ampm') { return str_replace('%p',$this->__translateSpecifier(array('%p', 'p')),$complete); } @@ -154,13 +154,13 @@ private function __translateSpecifier($specifier) { case 'u': return ($weekDay = date('w', $this->__time)) ? $weekDay : 7; case 'x': - $format = __c('d_fmt', 5); + $format = __cn('cake', 'd_fmt', 5); if ($format != 'd_fmt') { return $this->convertSpecifiers($format, $this->__time); } break; case 'X': - $format = __c('t_fmt', 5); + $format = __cn('cake', 't_fmt', 5); if ($format != 't_fmt') { return $this->convertSpecifiers($format, $this->__time); } @@ -265,9 +265,9 @@ public function niceShort($dateString = null, $userOffset = null) { $y = $this->isThisYear($date) ? '' : ' %Y'; if ($this->isToday($dateString, $userOffset)) { - $ret = __('Today, %s', strftime("%H:%M", $date)); + $ret = __d('cake', 'Today, %s', strftime("%H:%M", $date)); } elseif ($this->wasYesterday($dateString, $userOffset)) { - $ret = __('Yesterday, %s', strftime("%H:%M", $date)); + $ret = __d('cake', 'Yesterday, %s', strftime("%H:%M", $date)); } else { $format = $this->convertSpecifiers("%b %eS{$y}, %H:%M", $date); $ret = strftime($format, $date); @@ -614,41 +614,41 @@ public function timeAgoInWords($dateTime, $options = array()) { $diff = $futureTime - $pastTime; if ($diff > abs($now - $this->fromString($end))) { - $relativeDate = __('on %s', date($format, $inSeconds)); + $relativeDate = __d('cake', 'on %s', date($format, $inSeconds)); } else { if ($years > 0) { // years and months and days - $relativeDate .= ($relativeDate ? ', ' : '') . $years . ' ' . __n('year', 'years', $years); - $relativeDate .= $months > 0 ? ($relativeDate ? ', ' : '') . $months . ' ' . __n('month', 'months', $months) : ''; - $relativeDate .= $weeks > 0 ? ($relativeDate ? ', ' : '') . $weeks . ' ' . __n('week', 'weeks', $weeks) : ''; - $relativeDate .= $days > 0 ? ($relativeDate ? ', ' : '') . $days . ' ' . __n('day', 'days', $days) : ''; + $relativeDate .= ($relativeDate ? ', ' : '') . $years . ' ' . __dn('cake', 'year', 'years', $years); + $relativeDate .= $months > 0 ? ($relativeDate ? ', ' : '') . $months . ' ' . __dn('cake', 'month', 'months', $months) : ''; + $relativeDate .= $weeks > 0 ? ($relativeDate ? ', ' : '') . $weeks . ' ' . __dn('cake', 'week', 'weeks', $weeks) : ''; + $relativeDate .= $days > 0 ? ($relativeDate ? ', ' : '') . $days . ' ' . __dn('cake', 'day', 'days', $days) : ''; } elseif (abs($months) > 0) { // months, weeks and days - $relativeDate .= ($relativeDate ? ', ' : '') . $months . ' ' . __n('month', 'months', $months); - $relativeDate .= $weeks > 0 ? ($relativeDate ? ', ' : '') . $weeks . ' ' . __n('week', 'weeks', $weeks) : ''; - $relativeDate .= $days > 0 ? ($relativeDate ? ', ' : '') . $days . ' ' . __n('day', 'days', $days) : ''; + $relativeDate .= ($relativeDate ? ', ' : '') . $months . ' ' . __dn('cake', 'month', 'months', $months); + $relativeDate .= $weeks > 0 ? ($relativeDate ? ', ' : '') . $weeks . ' ' . __dn('cake', 'week', 'weeks', $weeks) : ''; + $relativeDate .= $days > 0 ? ($relativeDate ? ', ' : '') . $days . ' ' . __dn('cake', 'day', 'days', $days) : ''; } elseif (abs($weeks) > 0) { // weeks and days - $relativeDate .= ($relativeDate ? ', ' : '') . $weeks . ' ' . __n('week', 'weeks', $weeks); - $relativeDate .= $days > 0 ? ($relativeDate ? ', ' : '') . $days . ' ' . __n('day', 'days', $days) : ''; + $relativeDate .= ($relativeDate ? ', ' : '') . $weeks . ' ' . __dn('cake', 'week', 'weeks', $weeks); + $relativeDate .= $days > 0 ? ($relativeDate ? ', ' : '') . $days . ' ' . __dn('cake', 'day', 'days', $days) : ''; } elseif (abs($days) > 0) { // days and hours - $relativeDate .= ($relativeDate ? ', ' : '') . $days . ' ' . __n('day', 'days', $days); - $relativeDate .= $hours > 0 ? ($relativeDate ? ', ' : '') . $hours . ' ' . __n('hour', 'hours', $hours) : ''; + $relativeDate .= ($relativeDate ? ', ' : '') . $days . ' ' . __dn('cake', 'day', 'days', $days); + $relativeDate .= $hours > 0 ? ($relativeDate ? ', ' : '') . $hours . ' ' . __dn('cake', 'hour', 'hours', $hours) : ''; } elseif (abs($hours) > 0) { // hours and minutes - $relativeDate .= ($relativeDate ? ', ' : '') . $hours . ' ' . __n('hour', 'hours', $hours); - $relativeDate .= $minutes > 0 ? ($relativeDate ? ', ' : '') . $minutes . ' ' . __n('minute', 'minutes', $minutes) : ''; + $relativeDate .= ($relativeDate ? ', ' : '') . $hours . ' ' . __dn('cake', 'hour', 'hours', $hours); + $relativeDate .= $minutes > 0 ? ($relativeDate ? ', ' : '') . $minutes . ' ' . __dn('cake', 'minute', 'minutes', $minutes) : ''; } elseif (abs($minutes) > 0) { // minutes only - $relativeDate .= ($relativeDate ? ', ' : '') . $minutes . ' ' . __n('minute', 'minutes', $minutes); + $relativeDate .= ($relativeDate ? ', ' : '') . $minutes . ' ' . __dn('cake', 'minute', 'minutes', $minutes); } else { // seconds only - $relativeDate .= ($relativeDate ? ', ' : '') . $seconds . ' ' . __n('second', 'seconds', $seconds); + $relativeDate .= ($relativeDate ? ', ' : '') . $seconds . ' ' . __dn('cake', 'second', 'seconds', $seconds); } if (!$backwards) { - $relativeDate = __('%s ago', $relativeDate); + $relativeDate = __d('cake', '%s ago', $relativeDate); } } return $relativeDate; @@ -668,7 +668,7 @@ public function timeAgoInWords($dateTime, $options = array()) { public function wasWithinLast($timeInterval, $dateString, $userOffset = null) { $tmp = str_replace(' ', '', $timeInterval); if (is_numeric($tmp)) { - $timeInterval = $tmp . ' ' . __('days'); + $timeInterval = $tmp . ' ' . __d('cake', 'days'); } $date = $this->fromString($dateString, $userOffset); diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index 26b9f2e35be..2f22dbb54af 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -396,7 +396,7 @@ public function render($view = null, $layout = null) { $layout = $this->layout; } if ($this->output === false) { - throw new CakeException(__("Error in view %s, got no content.", $viewFileName)); + throw new CakeException(__d('cake', "Error in view %s, got no content.", $viewFileName)); } if ($layout && $this->autoLayout) { $this->output = $this->renderLayout($this->output, $layout); @@ -439,7 +439,7 @@ public function renderLayout($content_for_layout, $layout = null) { $this->output = $this->_render($layoutFileName); if ($this->output === false) { - throw new CakeException(__("Error in layout %s, got no content.", $layoutFileName)); + throw new CakeException(__d('cake', "Error in layout %s, got no content.", $layoutFileName)); } $this->Helpers->trigger('afterLayout', array($layoutFileName)); diff --git a/lib/Cake/View/errors/error400.ctp b/lib/Cake/View/errors/error400.ctp index b6487ee91e5..bc861ca493d 100644 --- a/lib/Cake/View/errors/error400.ctp +++ b/lib/Cake/View/errors/error400.ctp @@ -18,9 +18,9 @@ ?>

- : + : '{$url}'" ); ?>

diff --git a/lib/Cake/View/errors/error500.ctp b/lib/Cake/View/errors/error500.ctp index f7b648ff6bf..ba0c41bea46 100644 --- a/lib/Cake/View/errors/error500.ctp +++ b/lib/Cake/View/errors/error500.ctp @@ -18,8 +18,8 @@ ?>

- : - + : +

0 ): diff --git a/lib/Cake/View/errors/missing_action.ctp b/lib/Cake/View/errors/missing_action.ctp index 5b6fdb970e2..df8a7fc9fb6 100644 --- a/lib/Cake/View/errors/missing_action.ctp +++ b/lib/Cake/View/errors/missing_action.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - ' . $action . '', '' . $controller . ''); ?> + : + ' . $action . '', '' . $controller . ''); ?>

- : - ' . $controller . '::', '' . $action . '()', APP_DIR . DS . 'controllers' . DS . Inflector::underscore($controller) . '.php'); ?> + : + ' . $controller . '::', '' . $action . '()', APP_DIR . DS . 'controllers' . DS . Inflector::underscore($controller) . '.php'); ?>

 <?php
@@ -38,7 +38,7 @@ class  extends AppController {
 ?>
 

- : - + : +

element('exception_stack_trace'); ?> diff --git a/lib/Cake/View/errors/missing_behavior_class.ctp b/lib/Cake/View/errors/missing_behavior_class.ctp index e7c45406954..cec3a107a16 100644 --- a/lib/Cake/View/errors/missing_behavior_class.ctp +++ b/lib/Cake/View/errors/missing_behavior_class.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - %s can not be found or does not exist.', $class); ?> + : + %s can not be found or does not exist.', $class); ?>

- : - + : +

 <?php
@@ -33,8 +33,8 @@ class  extends ModelBehavior {
 ?>
 

- : - + : +

element('exception_stack_trace'); ?> diff --git a/lib/Cake/View/errors/missing_behavior_file.ctp b/lib/Cake/View/errors/missing_behavior_file.ctp index 09e90b35055..ae04f123ffa 100644 --- a/lib/Cake/View/errors/missing_behavior_file.ctp +++ b/lib/Cake/View/errors/missing_behavior_file.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - + : +

- : - + : +

 <?php
@@ -33,8 +33,8 @@ class  extends ModelBehavior {
 ?>
 

- : - + : +

element('exception_stack_trace'); ?> diff --git a/lib/Cake/View/errors/missing_component_class.ctp b/lib/Cake/View/errors/missing_component_class.ctp index cf06671dcf8..674c0452412 100644 --- a/lib/Cake/View/errors/missing_component_class.ctp +++ b/lib/Cake/View/errors/missing_component_class.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - ' . $class . ''); ?> + : + ' . $class . ''); ?>

- : - ' . $class . '', APP_DIR . DS . 'controllers' . DS . 'components' . DS . $file); ?> + : + ' . $class . '', APP_DIR . DS . 'controllers' . DS . 'components' . DS . $file); ?>

 <?php
@@ -33,8 +33,8 @@ class  extends Component {
?>

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/missing_component_file.ctp b/lib/Cake/View/errors/missing_component_file.ctp index 527afc9c310..a39303ed023 100644 --- a/lib/Cake/View/errors/missing_component_file.ctp +++ b/lib/Cake/View/errors/missing_component_file.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - + : +

- : - ' . $class . '', APP_DIR . DS . 'controllers' . DS . 'components' . DS . $file); ?> + : + ' . $class . '', APP_DIR . DS . 'controllers' . DS . 'components' . DS . $file); ?>

 <?php
@@ -33,8 +33,8 @@ class  extends Component {
?>

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/missing_connection.ctp b/lib/Cake/View/errors/missing_connection.ctp index dfda66e3ab9..6f53202d7fa 100644 --- a/lib/Cake/View/errors/missing_connection.ctp +++ b/lib/Cake/View/errors/missing_connection.ctp @@ -16,18 +16,18 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - + : +

- : - + : +

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/missing_controller.ctp b/lib/Cake/View/errors/missing_controller.ctp index 7f9e7d27f1e..9919427ec18 100644 --- a/lib/Cake/View/errors/missing_controller.ctp +++ b/lib/Cake/View/errors/missing_controller.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - ' . $controller . ''); ?> + : + ' . $controller . ''); ?>

- : - ' . $controller . '', APP_DIR . DS . 'controllers' . DS . Inflector::underscore($controller) . '.php'); ?> + : + ' . $controller . '', APP_DIR . DS . 'controllers' . DS . Inflector::underscore($controller) . '.php'); ?>

 <?php
@@ -33,8 +33,8 @@ class  extends AppController {
 ?>
 

- : - + : +

element('exception_stack_trace'); ?> diff --git a/lib/Cake/View/errors/missing_database.ctp b/lib/Cake/View/errors/missing_database.ctp index 7aa2d5e802f..798bfa05d93 100644 --- a/lib/Cake/View/errors/missing_database.ctp +++ b/lib/Cake/View/errors/missing_database.ctp @@ -16,18 +16,18 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - + : +

- : - + : +

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/missing_datasource_config.ctp b/lib/Cake/View/errors/missing_datasource_config.ctp index 64c7d4c13df..51296083c42 100644 --- a/lib/Cake/View/errors/missing_datasource_config.ctp +++ b/lib/Cake/View/errors/missing_datasource_config.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - ' . $config . ''); ?> + : + ' . $config . ''); ?>

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/missing_datasource_file.ctp b/lib/Cake/View/errors/missing_datasource_file.ctp index 0d53072fb05..452682655c2 100644 --- a/lib/Cake/View/errors/missing_datasource_file.ctp +++ b/lib/Cake/View/errors/missing_datasource_file.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - ' . $class . ''); ?> + : + ' . $class . ''); ?>

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/missing_helper_class.ctp b/lib/Cake/View/errors/missing_helper_class.ctp index 842ded905af..58d07eb3e9d 100644 --- a/lib/Cake/View/errors/missing_helper_class.ctp +++ b/lib/Cake/View/errors/missing_helper_class.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - %s can not be found or does not exist.', $class); ?> + : + %s can not be found or does not exist.', $class); ?>

- : - + : +

 <?php
@@ -33,8 +33,8 @@ class  extends AppHelper {
 ?>
 

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/missing_helper_file.ctp b/lib/Cake/View/errors/missing_helper_file.ctp index 6ba0e9b6f4c..120cc3193be 100644 --- a/lib/Cake/View/errors/missing_helper_file.ctp +++ b/lib/Cake/View/errors/missing_helper_file.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - + : +

- : - + : +

 <?php
@@ -33,8 +33,8 @@ class  extends AppHelper {
 ?>
 

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/missing_layout.ctp b/lib/Cake/View/errors/missing_layout.ctp index 011e59a6436..d822390f665 100644 --- a/lib/Cake/View/errors/missing_layout.ctp +++ b/lib/Cake/View/errors/missing_layout.ctp @@ -16,18 +16,18 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - ' . $file . ''); ?> + : + ' . $file . ''); ?>

- : - ' . $file . ''); ?> + : + ' . $file . ''); ?>

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/missing_table.ctp b/lib/Cake/View/errors/missing_table.ctp index 1288dd06aa9..ac61366f109 100644 --- a/lib/Cake/View/errors/missing_table.ctp +++ b/lib/Cake/View/errors/missing_table.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - ' . $table . '', '' . $class . ''); ?> + : + ' . $table . '', '' . $class . ''); ?>

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/missing_view.ctp b/lib/Cake/View/errors/missing_view.ctp index 9d8c7cb91ad..4a986b82334 100644 --- a/lib/Cake/View/errors/missing_view.ctp +++ b/lib/Cake/View/errors/missing_view.ctp @@ -16,18 +16,18 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - ' . Inflector::camelize($this->request->controller) . 'Controller::', '' . $this->request->action . '()'); ?> + : + ' . Inflector::camelize($this->request->controller) . 'Controller::', '' . $this->request->action . '()'); ?>

- : - + : +

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/private_action.ctp b/lib/Cake/View/errors/private_action.ctp index 833f4211262..c194ebe5803 100644 --- a/lib/Cake/View/errors/private_action.ctp +++ b/lib/Cake/View/errors/private_action.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - ' . $controller . '::', '' . $action . '()'); ?> + : + ' . $controller . '::', '' . $action . '()'); ?>

- : - + : +

element('exception_stack_trace'); ?> \ No newline at end of file diff --git a/lib/Cake/View/errors/scaffold_error.ctp b/lib/Cake/View/errors/scaffold_error.ctp index 40f09c90a86..d2f9ae1e133 100644 --- a/lib/Cake/View/errors/scaffold_error.ctp +++ b/lib/Cake/View/errors/scaffold_error.ctp @@ -16,14 +16,14 @@ * @license MIT License (http://www.opensource.org/licenses/mit-license.php) */ ?> -

+

- : - + : +

- : - + : +

 <?php
diff --git a/lib/Cake/View/layouts/default.ctp b/lib/Cake/View/layouts/default.ctp
index 5575c73290c..f758b955158 100644
--- a/lib/Cake/View/layouts/default.ctp
+++ b/lib/Cake/View/layouts/default.ctp
@@ -21,7 +21,7 @@
 
 	Html->charset(); ?>
 	
-		<?php echo __('CakePHP: the rapid development php framework:'); ?>
+		<?php echo __d('cake', 'CakePHP: the rapid development php framework:'); ?>
 		<?php echo $title_for_layout; ?>
 	
 	
 	
@@ -46,7 +46,7 @@
-

+

    request->action != 'add'): ?>
  • Form->postLink( - __('Delete'), + __d('cake', 'Delete'), array('action' => 'delete', $this->Form->value($modelClass . '.' . $primaryKey)), null, - __('Are you sure you want to delete # %s?', $this->Form->value($modelClass . '.' . $primaryKey))); + __d('cake', 'Are you sure you want to delete # %s?', $this->Form->value($modelClass . '.' . $primaryKey))); ?>
  • -
  • Html->link(__('List') . ' ' . $pluralHumanName, array('action' => 'index'));?>
  • +
  • Html->link(__d('cake', 'List') . ' ' . $pluralHumanName, array('action' => 'index'));?>
  • $_data) { foreach ($_data as $_alias => $_details) { if ($_details['controller'] != $this->name && !in_array($_details['controller'], $done)) { - echo "\t\t
  • " . $this->Html->link(__('List %s', Inflector::humanize($_details['controller'])), array('controller' => $_details['controller'], 'action' =>'index')) . "
  • \n"; - echo "\t\t
  • " . $this->Html->link(__('New %s', Inflector::humanize(Inflector::underscore($_alias))), array('controller' => $_details['controller'], 'action' =>'add')) . "
  • \n"; + echo "\t\t
  • " . $this->Html->link(__d('cake', 'List %s', Inflector::humanize($_details['controller'])), array('controller' => $_details['controller'], 'action' =>'index')) . "
  • \n"; + echo "\t\t
  • " . $this->Html->link(__d('cake', 'New %s', Inflector::humanize(Inflector::underscore($_alias))), array('controller' => $_details['controller'], 'action' =>'add')) . "
  • \n"; $done[] = $_details['controller']; } } diff --git a/lib/Cake/View/scaffolds/index.ctp b/lib/Cake/View/scaffolds/index.ctp index c3da1d4d8c7..d0def968e9b 100644 --- a/lib/Cake/View/scaffolds/index.ctp +++ b/lib/Cake/View/scaffolds/index.ctp @@ -23,7 +23,7 @@ Paginator->sort($_field);?> - + '; - echo $this->Html->link(__('View'), array('action' => 'view', ${$singularVar}[$modelClass][$primaryKey])); - echo $this->Html->link(__('Edit'), array('action' => 'edit', ${$singularVar}[$modelClass][$primaryKey])); + echo $this->Html->link(__d('cake', 'View'), array('action' => 'view', ${$singularVar}[$modelClass][$primaryKey])); + echo $this->Html->link(__d('cake', 'Edit'), array('action' => 'edit', ${$singularVar}[$modelClass][$primaryKey])); echo $this->Form->postLink( - __('Delete'), + __d('cake', 'Delete'), array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]), null, - __('Are you sure you want to delete').' #' . ${$singularVar}[$modelClass][$primaryKey] + __d('cake', 'Are you sure you want to delete').' #' . ${$singularVar}[$modelClass][$primaryKey] ); echo ''; echo ''; @@ -67,26 +67,26 @@ endforeach;

    Paginator->counter(array( - 'format' => __('Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%') + 'format' => __d('cake', 'Page %page% of %pages%, showing %current% records out of %count% total, starting on record %start%, ending on %end%') )); ?>

    - Paginator->prev('<< ' . __('previous'), array(), null, array('class' => 'disabled')); ?> + Paginator->prev('<< ' . __d('cake', 'previous'), array(), null, array('class' => 'disabled')); ?> | Paginator->numbers(); ?> - Paginator->next(__('next') .' >>', array(), null, array('class' => 'disabled')); ?> + Paginator->next(__d('cake', 'next') .' >>', array(), null, array('class' => 'disabled')); ?>
-

+

    -
  • Html->link(__('New %s', $singularHumanName), array('action' => 'add')); ?>
  • +
  • Html->link(__d('cake', 'New %s', $singularHumanName), array('action' => 'add')); ?>
  • $_data) { foreach ($_data as $_alias => $_details) { if ($_details['controller'] != $this->name && !in_array($_details['controller'], $done)) { - echo "
  • " . $this->Html->link(__('List %s', Inflector::humanize($_details['controller'])), array('controller' => $_details['controller'], 'action' => 'index')) . "
  • "; - echo "
  • " . $this->Html->link(__('New %s', Inflector::humanize(Inflector::underscore($_alias))), array('controller' => $_details['controller'], 'action' => 'add')) . "
  • "; + echo "
  • " . $this->Html->link(__d('cake', 'List %s', Inflector::humanize($_details['controller'])), array('controller' => $_details['controller'], 'action' => 'index')) . "
  • "; + echo "
  • " . $this->Html->link(__d('cake', 'New %s', Inflector::humanize(Inflector::underscore($_alias))), array('controller' => $_details['controller'], 'action' => 'add')) . "
  • "; $done[] = $_details['controller']; } } diff --git a/lib/Cake/View/scaffolds/view.ctp b/lib/Cake/View/scaffolds/view.ctp index 010450a151b..ef2fe7006d6 100644 --- a/lib/Cake/View/scaffolds/view.ctp +++ b/lib/Cake/View/scaffolds/view.ctp @@ -17,7 +17,7 @@ */ ?>
    -

    +

    -

    +

      " .$this->Html->link(__('Edit %s', $singularHumanName), array('action' => 'edit', ${$singularVar}[$modelClass][$primaryKey])). " \n"; - echo "\t\t
    • " .$this->Html->link(__('Delete %s', $singularHumanName), array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]), null, __('Are you sure you want to delete').' #' . ${$singularVar}[$modelClass][$primaryKey] . '?'). "
    • \n"; - echo "\t\t
    • " .$this->Html->link(__('List %s', $pluralHumanName), array('action' => 'index')). "
    • \n"; - echo "\t\t
    • " .$this->Html->link(__('New %s', $singularHumanName), array('action' => 'add')). "
    • \n"; + echo "\t\t
    • " .$this->Html->link(__d('cake', 'Edit %s', $singularHumanName), array('action' => 'edit', ${$singularVar}[$modelClass][$primaryKey])). "
    • \n"; + echo "\t\t
    • " .$this->Html->link(__d('cake', 'Delete %s', $singularHumanName), array('action' => 'delete', ${$singularVar}[$modelClass][$primaryKey]), null, __d('cake', 'Are you sure you want to delete').' #' . ${$singularVar}[$modelClass][$primaryKey] . '?'). "
    • \n"; + echo "\t\t
    • " .$this->Html->link(__d('cake', 'List %s', $pluralHumanName), array('action' => 'index')). "
    • \n"; + echo "\t\t
    • " .$this->Html->link(__d('cake', 'New %s', $singularHumanName), array('action' => 'add')). "
    • \n"; $done = array(); foreach ($associations as $_type => $_data) { foreach ($_data as $_alias => $_details) { if ($_details['controller'] != $this->name && !in_array($_details['controller'], $done)) { - echo "\t\t
    • " . $this->Html->link(__('List %s', Inflector::humanize($_details['controller'])), array('controller' => $_details['controller'], 'action' => 'index')) . "
    • \n"; - echo "\t\t
    • " . $this->Html->link(__('New %s', Inflector::humanize(Inflector::underscore($_alias))), array('controller' => $_details['controller'], 'action' => 'add')) . "
    • \n"; + echo "\t\t
    • " . $this->Html->link(__d('cake', 'List %s', Inflector::humanize($_details['controller'])), array('controller' => $_details['controller'], 'action' => 'index')) . "
    • \n"; + echo "\t\t
    • " . $this->Html->link(__d('cake', 'New %s', Inflector::humanize(Inflector::underscore($_alias))), array('controller' => $_details['controller'], 'action' => 'add')) . "
    • \n"; $done[] = $_details['controller']; } } @@ -71,7 +71,7 @@ foreach ($scaffoldFields as $_field) { if (!empty($associations['hasOne'])) : foreach ($associations['hasOne'] as $_alias => $_details): ?> @@ -110,7 +110,7 @@ foreach ($relations as $_alias => $_details): $otherSingularVar = Inflector::variable($_alias); ?>