Author: mahono
Date: 2010-01-20 12:50:09 +0100 (Wed, 20 Jan 2010)
New Revision: 26928

Modified:
   plugins/sfSympalPlugin/trunk/i18n/messages.de.xml
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/_asset_box.php
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/edit_assetSuccess.php
   
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/selectSuccess.php
Log:
[1.4][sfSympalPlugin][1.0] Fixes i18n for assets and adds a back to list link 
to assets select box (edit file)

Modified: plugins/sfSympalPlugin/trunk/i18n/messages.de.xml
===================================================================
--- plugins/sfSympalPlugin/trunk/i18n/messages.de.xml   2010-01-20 11:09:27 UTC 
(rev 26927)
+++ plugins/sfSympalPlugin/trunk/i18n/messages.de.xml   2010-01-20 11:50:09 UTC 
(rev 26928)
@@ -1119,6 +1119,7 @@
         <source>Are you sure you want un-publish this content?</source>
         <target>Sind Sie sicher, dass Sie diesen Inhalt offline schalten 
möchten?</target>
       </trans-unit>
+
       <!-- link browser -->
       <trans-unit id="3500">
         <source>Link Browser</source>
@@ -1136,6 +1137,86 @@
         <source>Nothing found</source>
         <target>Nichts gefunden</target>
       </trans-unit>
+
+      <!-- asset browser -->
+      <trans-unit id="3600">
+        <source>Asset Browser</source>
+        <target>Dateien</target>
+      </trans-unit>
+      <trans-unit id="3610">
+        <source>Browse your assets below and insert them into the currently 
focused editor by
+just clicking the asset you want to insert. You can control where the asset is 
+inserted by positioning the cursor in the editor. You may also upload new 
assets
+and create directories below.</source>
+        <target>Fügen Sie an die aktuelle Cursorposition eine Datei ein, 
einfach durch
+anklicken der gewünschten Datei. Sie können die Stelle an der die Datei 
eingefügt wird
+durch ändern der Cursorposition im Editor bestimmen. Sie können hier auch
+neue Dateien hochladen und Ordner anlegen.</target>
+      </trans-unit>
+      <trans-unit id="3620">
+        <source>Delete directory "%dir%"</source>
+        <target>Ordner "%dir%" löschen</target>
+      </trans-unit>
+      <trans-unit id="3630">
+        <source>Edit file "%file%"</source>
+        <target>Datei "%file%" bearbeiten</target>
+      </trans-unit>
+      <trans-unit id="3640">
+        <source>Delete file "%file%"</source>
+        <target>Datei "%file%" löschen</target>
+      </trans-unit>
+      <trans-unit id="3650">
+        <source>Upload an Asset</source>
+        <target>Eine Datei hochladen</target>
+      </trans-unit>
+      <trans-unit id="3660">
+        <source>Upload</source>
+        <target>Hochladen</target>
+      </trans-unit>
+      <trans-unit id="3670">
+        <source>Create</source>
+        <target>Erstellen</target>
+      </trans-unit>
+      <trans-unit id="3680">
+        <source>Create a New Directory</source>
+        <target>Einen neuen Ordner erstellen</target>
+      </trans-unit>
+      <trans-unit id="3690">
+        <source>Upload Asset</source>
+        <target>Datei hochladen</target>
+      </trans-unit>
+      <trans-unit id="3700">
+        <source>Create Directory</source>
+        <target>Ordner erstellen</target>
+      </trans-unit>
+      <trans-unit id="3710">
+        <source>Editing Asset "%asset%"</source>
+        <target>Datei "%asset%" bearbeiten</target>
+      </trans-unit>
+      <trans-unit id="3720">
+        <source>Upload New File</source>
+        <target>Neue Datei hochladen</target>
+      </trans-unit>
+      <trans-unit id="3730">
+        <source>Rename</source>
+        <target>Umbenennen</target>
+      </trans-unit>
+      <trans-unit id="3740">
+        <source>Resize</source>
+        <target>Größe ändern</target>
+      </trans-unit>
+      <trans-unit id="3750">
+        <source>Current Crop</source>
+        <target>Aktueller Ausschnitt</target>
+      </trans-unit>
+      <trans-unit id="3760">
+        <source>Crop Original Image</source>
+        <target>Original</target>
+      </trans-unit>
+      <trans-unit id="3770">
+        <source>Save Crop</source>
+        <target>Ausschnitt speichern</target>
+      </trans-unit>
     </body>
   </file>
 </xliff>
\ No newline at end of file

Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/_asset_box.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/_asset_box.php
        2010-01-20 11:09:27 UTC (rev 26927)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/_asset_box.php
        2010-01-20 11:50:09 UTC (rev 26928)
@@ -14,14 +14,14 @@
     <?php echo link_to('edit', 'sympal_assets_edit_asset', $asset,
       array(
         'class' => 'edit',
-        'title' => sprintf('Edit file "%s"', $asset->getName())
+        'title' => __('Edit file "%file%"', array('%file%' => 
$asset->getName()))
       )
     ) ?>
 
     <?php echo link_to('delete', 'sympal_assets_delete_asset', $asset,
       array(
         'class' => 'delete',
-        'title' => sprintf('Delete file "%s"', $asset->getName())
+        'title' => __('Edit file "%file%"', array('%file%' => 
$asset->getName()))
       )
     ) ?>
   </div>

Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/edit_assetSuccess.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/edit_assetSuccess.php
 2010-01-20 11:09:27 UTC (rev 26927)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/edit_assetSuccess.php
 2010-01-20 11:50:09 UTC (rev 26928)
@@ -1,5 +1,14 @@
+<?php use_helper('jQuery') ?>
 <div id="sf_admin_container">
-  <h1>Editing Asset "<?php echo $asset ?>"</h1>
+  <div>
+    <?php echo jq_link_to_remote(__('Back to list', array(), 'sf_admin'), 
array(
+      'url' => url_for('@sympal_assets_select'),
+      'update' => 'sympal_assets_container',
+      'title' => __('Back to list', array(), 'sf_admin'),
+      'method' => 'get'
+    )) ?>
+  </div>
+  <h1><?php echo __('Editing Asset "%asset%"', array('%asset%' => 
$asset->getName())) ?></h1>
 
   <div id="sympal_edit_asset">
     <div class="sf_admin_form">
@@ -20,29 +29,29 @@
         <?php echo $form->renderHiddenFields() ?>
         <input type="hidden" name="is_ajax" value="<?php echo $isAjax ?>" />
 
-        <h2>Upload New File</h2>
+        <h2><?php echo __('Upload New File') ?></h2>
         <?php echo $form['file'] ?>
-        <input type="submit" value="Upload" />
+        <input type="submit" value="<?php echo __('Upload') ?>" />
 
-        <h2>Rename</h2>
+        <h2><?php echo __('Rename') ?></h2>
         <?php echo $form['new_name'] ?>
-        <input type="submit" value="Save" />
+        <input type="submit" value="<?php echo __('Save') ?>" />
 
-        <h2>Resize</h2>
+        <h2><?php echo __('Resize') ?></h2>
         <?php echo $form['width'] ?> x 
         <?php echo $form['height'] ?>
-        <input type="submit" value="Save" />
+        <input type="submit" value="<?php echo __('Save') ?>" />
       </form>
       
       <?php if ($asset->isImage()): ?>
-        <h2>Current Crop</h2>
+        <h2><?php echo __('Current Crop') ?></h2>
         <?php echo image_tag($asset->getUrl()) ?>
 
-        <h2>Crop Original Image</h2>
+        <h2><?php echo __('Crop Original Image') ?></h2>
         <p>
           <?php echo image_tag($asset->getOriginal()->getUrl(), array('id' => 
'jcrop_target')) ?>
         </p>
-        <input type="button" id="sympal_save_crop" value="Save Crop" />
+        <input type="button" id="sympal_save_crop" value="<?php echo __('Save 
Crop') ?>" />
 
         <?php sympal_use_jquery() ?>
         <?php sympal_use_javascript('/sfSympalPlugin/js/jquery.Jcrop.js') ?>

Modified: 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/selectSuccess.php
===================================================================
--- 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/selectSuccess.php
     2010-01-20 11:09:27 UTC (rev 26927)
+++ 
plugins/sfSympalPlugin/trunk/lib/plugins/sfSympalAssetsPlugin/modules/sympal_assets/templates/selectSuccess.php
     2010-01-20 11:50:09 UTC (rev 26928)
@@ -3,13 +3,14 @@
 <?php use_helper('jQuery') ?>
 
 <div id="sympal_assets_container" class="sympal_form">
-  <h1>Asset Browser</h1>
+  <h1><?php echo __('Asset Browser') ?></h1>
 
   <p>
-    Browse your assets below and insert them into the currently focused editor 
by
-    just clicking the asset you want to insert. You can control where the 
asset is 
-    inserted by positioning the cursor in the editor. You may also upload new 
assets
-    and create directories below.
+    <?php echo
+__('Browse your assets below and insert them into the currently focused editor 
by
+just clicking the asset you want to insert. You can control where the asset is 
+inserted by positioning the cursor in the editor. You may also upload new 
assets
+and create directories below.') ?>
   </p>
 
   <input type="hidden" id="current_url" value="<?php echo 
$sf_request->getUri() ?>" />
@@ -34,7 +35,7 @@
         <?php echo 
jq_link_to_remote(image_tag('/sfSympalPlugin/images/delete.png'), array(
             'url' => 
url_for('@sympal_assets_delete_directory?directory='.urlencode($directory.'/'.pathinfo($dir,
 PATHINFO_BASENAME))),
             'update' => 'sympal_assets_container',
-            'title' => sprintf('Delete directory "%s"', $dir),
+            'title' => __('Delete directory "%dir%"', array('%dir%' => $dir)),
             'method' => 'get'
           )
         ) ?>
@@ -49,7 +50,7 @@
         <?php echo 
jq_link_to_remote(image_tag('/sfSympalPlugin/images/edit.png'), array(
             'url' => url_for('sympal_assets_edit_asset', $asset),
             'update' => 'sympal_assets_container',
-            'title' => sprintf('Edit file "%s"', $asset->getName()),
+            'title' => __('Edit file "%file%"', array('%file%' => 
$asset->getName())),
             'method' => 'get'
           )
         ) ?>
@@ -57,7 +58,7 @@
         <?php echo 
jq_link_to_remote(image_tag('/sfSympalPlugin/images/delete.png'), array(
             'url' => url_for('sympal_assets_delete_asset', $asset),
             'update' => 'sympal_assets_container',
-            'title' => sprintf('Delete file "%s"', $asset->getName()),
+            'title' => __('Delete file "%file%"', array('%file%' => 
$asset->getName())),
             'method' => 'get'
           )
         ) ?>

-- 
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