89ed52bd284118ef88b8d3617f8c4b47b8e35936

Author: AD7six

Date: 2009-04-15 20:39:12 +0200

correcting translator help text

diff --git a/views/elements/contribute.ctp b/views/elements/contribute.ctp index faa000c..f481bc3 100644 --- a/views/elements/contribute.ctp +++ b/views/elements/contribute.ctp @@ -1,5 +1,5 @@ <?php -$translatorHelp = $html->link(__('more informations about translations', true), array('action' => 'view', 818)); +$translatorHelp = $html->link(__('More informations about translations', true), array('action' => 'view', 818)); $data['Revision']['flags'] .= ';foo'; if (!$data['Revision']['id']) : echo '<p class="contribute">'; @@ -10,7 +10,7 @@ if (!$data['Revision']['id']) : array('title' => __('There is no translation for this section please submit one', true)) ) ); - echo sprintf(__(' For more information see %1$s', true), $translatorHelp); + echo '. ' . $translatorHelp; echo '</p>'; elseif (strpos($data['Revision']['flags'], 'englishChanged') !== false) : ?> <div class="contribute"> diff --git a/views/nodes/edit.ctp b/views/nodes/edit.ctp index 754deaa..379b789 100755 --- a/views/nodes/edit.ctp +++ b/views/nodes/edit.ctp @@ -51,34 +51,35 @@ echo $form->end(); ?> </div> <?php -$menu->settings(__('Resources', true), array('class' => 'dialogs')); -$lang = Configure::read('Languages.default'); -$menu->add(array( - array('section' => __('Resources', true), 'title' => __('Current Version', true), 'url' => array('action' => 'view', - $this->data['Node']['id'], $contentSlugs[$this->data['Revision']['lang']])) -)); -$menu->add(array( - array('title' => __('History', true), 'url' => array('action' => 'history', - $this->data['Node']['id'], $contentSlugs[$this->data['Revision']['lang']])) -)); -if ($data['Revision']['lang'] != $lang) { +if (isset($this->data['Node']['id'])) { + $menu->settings(__('Resources', true), array('class' => 'dialogs')); + $lang = Configure::read('Languages.default'); $menu->add(array( - array('title' => __('English Version', true), 'url' => array('action' => 'view', - 'lang' => $lang, $this->data['Node']['id'], $contentSlugs[$lang])) + array('section' => __('Resources', true), 'title' => __('Current Version', true), 'url' => array('action' => 'view', + $this->data['Node']['id'], $contentSlugs[$this->data['Revision']['lang']])) )); $menu->add(array( - array('title' => __('Compare to English', true), 'url' => array('action' => 'compare', - $this->data['Node']['id'], $contentSlugs[$lang])) - )); - $menu->add(array( - array('title' => __('See what changed', true), 'url' => array('action' => 'redirect_to_revision', - $this->data['Node']['id'], $contentSlugs[$lang])) - )); - $menu->add(array( - array('title' => __('English History', true), 'url' => array('action' => 'history', - 'lang' => $lang, $this->data['Node']['id'], $contentSlugs[$lang])) + array('title' => __('History', true), 'url' => array('action' => 'history', + $this->data['Node']['id'], $contentSlugs[$this->data['Revision']['lang']])) )); + if ($data['Revision']['lang'] != $lang) { + $menu->add(array( + array('title' => __('English Version', true), 'url' => array('action' => 'view', + 'lang' => $lang, $this->data['Node']['id'], $contentSlugs[$lang])) + )); + $menu->add(array( + array('title' => __('Compare to English', true), 'url' => array('action' => 'compare', + $this->data['Node']['id'], $contentSlugs[$lang])) + )); + $menu->add(array( + array('title' => __('See what changed', true), 'url' => array('action' => 'redirect_to_revision', + $this->data['Node']['id'], $contentSlugs[$lang])) + )); + $menu->add(array( + array('title' => __('English History', true), 'url' => array('action' => 'history', + 'lang' => $lang, $this->data['Node']['id'], $contentSlugs[$lang])) + )); + } } - echo $this->element('markitup', array('process' => 'textarea')); ?> \ No newline at end of file