Updating the translation templates.
[squirrelmail.git] / templates / default / compose_attachments.tpl
index e4234881f5c7255ee2305758179126f518850e6f..86c2784a5f871a7917238216a6c490e0bedd1e28 100644 (file)
@@ -5,8 +5,11 @@
  * Description
  * 
  * The following variables are available in this template:
+ *    $accesskey_compose_attach_browse - The access key to be used for the Browse button
+ *    $accesskey_compose_attach        - The access key to be used for the Attach button
+ *    $accesskey_compose_delete_attach - The access key to be used for the Delete Attachments button
  *
- * @copyright © 1999-2006 The SquirrelMail Project Team
+ * @copyright © 1999-2009 The SquirrelMail Project Team
  * @license http://opensource.org/licenses/gpl-license.php GNU Public License
  * @version $Id$
  * @package squirrelmail
@@ -22,12 +25,12 @@ extract($t);
 <table cellspacing="0" class="table1">
  <tr class="header">
   <td class="fieldName" style="width: 1%; white-space: nowrap;">
-   <?php echo _("New") .' '. _("Attachment");?>:
+   <?php echo _("New attachment");?>:
   </td>
   <td class="fieldValue">
-   <input type="file" name="attachfile" size="48" />
+   <input type="file" name="attachfile" size="48" <?php if ($accesskey_compose_attach_browse != 'NONE') echo 'accesskey="' . $accesskey_compose_attach_browse . '" '; ?>/>
    &nbsp;
-   <input type="submit" name="attach" value="<?php echo _("Attach"); ?>" />
+   <input type="submit" name="attach" <?php if ($accesskey_compose_attach != 'NONE') echo 'accesskey="' . $accesskey_compose_attach . '" '; ?>value="<?php echo _("Attach"); ?>" />
    &nbsp;
    <?php
     if($max_file_size != -1) {
@@ -40,24 +43,26 @@ extract($t);
   </td>
  </tr>
  <?php
+    $attachment_count = 1;
     foreach ($attachments as $attach) {
         ?>
  <tr class="attachment">
   <td class="fieldName" style="width: 1%">
-   <input type="checkbox" name="delete[]" value="<?php echo $attach['Key']; ?>" />
+   <input type="checkbox" name="delete[]" accesskey="<?php echo ($attachment_count % 10); ?>" value="<?php echo $attach['Key']; ?>" />
   </td>
   <td class="fieldValue">
    <?php echo $attach['FileName']; ?> - <?php echo $attach['ContentType']; ?> (<?php echo humanReadableSize($attach['Size']); ?>)
   </td>
  </tr>
         <?php
+        $attachment_count++;
     }
     
     if (count($attachments) > 0) {
         ?>
  <tr class="header">
   <td colspan="2">
-   <input type="submit" name="do_delete" value="<?php echo _("Delete selected attachments"); ?>" />
+   <input type="submit" name="do_delete" <?php if ($accesskey_compose_delete_attach != 'NONE') echo 'accesskey="' . $accesskey_compose_delete_attach . '" '; ?>value="<?php echo _("Delete Selected Attachments"); ?>" />
   </td>
  </tr>
         <?php