Author: mahono
Date: 2010-01-14 01:44:09 +0100 (Thu, 14 Jan 2010)
New Revision: 26603

Modified:
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/lib/helper/SympalContentSlotEditorHelper.php
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_edit_slot/templates/_slot_editor.php
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/_editor.php
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/linksSuccess.php
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/sitemapSuccess.php
Log:
[1.4][sfSympalPlugin][1.0] wrapping messages for i18n in frontend editor

Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/lib/helper/SympalContentSlotEditorHelper.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/lib/helper/SympalContentSlotEditorHelper.php
  2010-01-14 00:22:12 UTC (rev 26602)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/lib/helper/SympalContentSlotEditorHelper.php
  2010-01-14 00:44:09 UTC (rev 26603)
@@ -8,7 +8,7 @@
   $form = $slot->getEditForm();
 
   return '
-<span title="Double click to enable inline edit mode" 
id="sympal_content_slot_'.$slot->getId().'" class="sympal_content_slot">
+<span title="'.__('Double click to enable inline edit mode.').'" 
id="sympal_content_slot_'.$slot->getId().'" class="sympal_content_slot">
   <input type="hidden" class="content_slot_id" value="'.$slot->getId().'" />
   <input type="hidden" class="content_id" 
value="'.$slot->getContentRenderedFor()->getId().'" />
   <span class="editor">'.get_partial('sympal_edit_slot/slot_editor', 
array('form' => $form, 'contentSlot' => $slot)).'</span>

Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_edit_slot/templates/_slot_editor.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_edit_slot/templates/_slot_editor.php
   2010-01-14 00:22:12 UTC (rev 26602)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_edit_slot/templates/_slot_editor.php
   2010-01-14 00:44:09 UTC (rev 26603)
@@ -9,7 +9,7 @@
   )) ?>
 
     <?php if (!$contentSlot->is_column): ?>
-      <a href="#edit" class="sympal_change_slot_type">>> Change Slot Type</a>
+      <a href="#edit" class="sympal_change_slot_type">>> <?php echo __('Change 
Slot Type') ?></a>
       <div class="sympal_change_slot_type_dropdown">
         <?php echo $form['type'] ?>
       </div>

Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/_editor.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/_editor.php
   2010-01-14 00:22:12 UTC (rev 26602)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/_editor.php
   2010-01-14 00:44:09 UTC (rev 26603)
@@ -30,7 +30,10 @@
 <div class="sympal_inline_edit_bar_container">
   <div class="sympal_inline_edit_bar sympal_form">
     <ul>
-      <li><?php echo button_to('X', '@sympal_signout', 'title=Signout 
class=signout confirm=Are you sure you want to signout?') ?></li>
+      <li><?php echo button_to('X', '@sympal_signout', array(
+        'title' => __('Signout'),
+        'class' => 'signout',
+        'confirm' => __('Are you sure you want to signout?'))) ?></li>
       <?php if (sfSympalConfig::isI18nEnabled()): ?>
         <li>
           <?php
@@ -46,17 +49,17 @@
           </form>
         </li>
       <?php endif; ?>
-      <li><input type="button" class="toggle_editor_menu" 
name="toggle_editor_menu" value="Editor Menu" title="Click to toggle Sympal 
editor menu" /></li>
-      <li><input type="button" class="toggle_dashboard_menu" value="Dashboard" 
rel="<?php echo url_for('@sympal_dashboard') ?>" /></li>
-      <li><input type="button" class="toggle_edit_mode" value="Enable Edit 
Mode" /></li>
+      <li><input type="button" class="toggle_editor_menu" 
name="toggle_editor_menu" value="<?php echo __('Editor Menu') ?>" title="<?php 
echo __('Click to toggle Sympal editor menu') ?>" /></li>
+      <li><input type="button" class="toggle_dashboard_menu" value="<?php echo 
__('Dashboard') ?>" rel="<?php echo url_for('@sympal_dashboard') ?>" /></li>
+      <li><input type="button" class="toggle_edit_mode" value="<?php echo 
__('Enable Edit Mode') ?>" /></li>
     </ul>
 
     <ul class="sympal_inline_edit_bar_buttons">
-      <li><input type="button" class="toggle_sympal_assets" name="assets" 
rel="<?php echo url_for('@sympal_assets_select') ?>" value="Assets" /></li>
-      <li><input type="button" class="toggle_sympal_links" name="links" 
rel="<?php echo url_for('@sympal_editor_links') ?>" value="Links" /></li>
-      <li><input type="button" class="sympal_save_content_slots" name="save" 
value="Save" /></li>
-      <li><input type="button" class="sympal_preview_content_slots" 
name="preview" value="Preview" /></li>
-      <li><input type="button" class="sympal_disable_edit_mode" 
name="disable_edit_mode" value="Disable Edit Mode" /></li>
+      <li><input type="button" class="toggle_sympal_assets" name="assets" 
rel="<?php echo url_for('@sympal_assets_select') ?>" value="<?php echo 
__('Assets') ?>" /></li>
+      <li><input type="button" class="toggle_sympal_links" name="links" 
rel="<?php echo url_for('@sympal_editor_links') ?>" value="<?php echo 
__('Links') ?>" /></li>
+      <li><input type="button" class="sympal_save_content_slots" name="save" 
value="<?php echo __('Save') ?>" /></li>
+      <li><input type="button" class="sympal_preview_content_slots" 
name="preview" value="<?php echo __('Preview') ?>" /></li>
+      <li><input type="button" class="sympal_disable_edit_mode" 
name="disable_edit_mode" value="<?php echo __('Disable Edit Mode') ?>" /></li>
     </ul>
   </div>
 </div>

Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/linksSuccess.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/linksSuccess.php
      2010-01-14 00:22:12 UTC (rev 26602)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/linksSuccess.php
      2010-01-14 00:44:09 UTC (rev 26603)
@@ -3,16 +3,17 @@
 <link rel="stylesheet" type="text/css" media="screen" href="<?php echo 
stylesheet_path('/sfSympalFrontendEditorPlugin/css/links.css') ?>" />
 
 <div id="sympal_links_container">
-  <h1>Link Browser</h1>
+  <h1><?php echo __('Link Browser') ?></h1>
 
   <p>
-    Browse your content below and insert links into the currently focused 
editor by
-    just clicking the page you want to link to. You can control where the link 
is 
-    inserted by positioning the cursor in the editor.
+    <?php echo __(
+      'Browse your content below and insert links into the currently focused 
editor by '.
+      'just clicking the page you want to link to.') ?>
+    <?php echo __('You can control where the link is inserted by positioning 
the cursor in the editor.') ?>
   </p>
 
   <div id="content_types">
-    <h2>Content Types</h2>
+    <h2><?php echo __('Content Types') ?></h2>
     <ul id="content_types">
       <?php foreach ($contentTypes as $type): ?>
         <li>
@@ -60,5 +61,5 @@
     </ul>
   </div>
 
-  <a class="sympal_close_menu">close</a>
+  <a class="sympal_close_menu"><?php echo __('close') ?></a>
 </div>
\ No newline at end of file

Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/sitemapSuccess.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/sitemapSuccess.php
    2010-01-14 00:22:12 UTC (rev 26602)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalFrontendEditorPlugin/modules/sympal_editor/templates/sitemapSuccess.php
    2010-01-14 00:44:09 UTC (rev 26603)
@@ -1,7 +1,7 @@
 <h2><?php echo __('Sitemap') ?></h2>
 
 <?php foreach ($roots as $root): ?>
-  <h3><?php echo ucfirst($root['name']) ?> Menu</h3>
+  <h3><?php echo ucfirst($root['name']) ?> <?php echo __('Menu') ?></h3>
   <?php
   $menu = get_sympal_menu($root['name'], true);
   echo $menu;

-- 
You received this message because you are subscribed to the Google Groups 
"symfony SVN" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/symfony-svn?hl=en.


Reply via email to