From 23375d33dfc4fcf2fb43a037f170099cdccb501a Mon Sep 17 00:00:00 2001 From: Scott Tesoriere Date: Thu, 19 May 2011 06:27:11 -0400 Subject: [PATCH] changed upload text, added example translation --- ...tility.js => massuploadutility.publish.js} | 4 +-- extension.driver.php | 2 +- lang/lang.de.php | 32 +++++++++++++++++++ 3 files changed, 35 insertions(+), 3 deletions(-) rename assets/{massuploadutility.js => massuploadutility.publish.js} (96%) create mode 100644 lang/lang.de.php diff --git a/assets/massuploadutility.js b/assets/massuploadutility.publish.js similarity index 96% rename from assets/massuploadutility.js rename to assets/massuploadutility.publish.js index 4a172b0..7195886 100644 --- a/assets/massuploadutility.js +++ b/assets/massuploadutility.publish.js @@ -20,7 +20,7 @@ 'Progress' : false, 'Loaded' : false, 'Finished' : false, - 'multiple files can be selected' : false + 'multiple files can be selected, use the shift or ctrl/cmd key' : false }); // this should theoretically support any upload field @@ -38,7 +38,7 @@ // if there's more than one upload field, I have no idea what to do, and it's not terribly important if (fileField.size() == 1) { label = fileField.parent().parent(); - label.html(label.html().replace(/^([\w\s]+)(\<[a-z]+)/i, '$1 ('+Symphony.Language.get("multiple files can be selected")+') $2')); + label.html(label.html().replace(/^([\w\s]+)(\<[a-z]+)/i, '$1 ('+Symphony.Language.get("multiple files can be selected, use the shift or ctrl/cmd key")+') $2')); fileField = $("input[type='file']"); fileField.attr('multiple', 'true'); fileField.parent().append(" \ diff --git a/extension.driver.php b/extension.driver.php index b6dde70..29258d9 100644 --- a/extension.driver.php +++ b/extension.driver.php @@ -64,7 +64,7 @@ public function initaliseAdminPageHead($context) { $this->validateSection($section_id) and $this->validateUser()) { $page->addStylesheetToHead(URL . $assets_path . 'massuploadutility.css', 'screen', 14145); - $page->addScriptToHead(URL . $assets_path . 'massuploadutility.js',14156); + $page->addScriptToHead(URL . $assets_path . 'massuploadutility.publish.js',14156); $page->addScriptToHead(URL . $assets_path . 'jquery.html5_upload.js',14156); } } diff --git a/lang/lang.de.php b/lang/lang.de.php new file mode 100644 index 0000000..8ad1d6b --- /dev/null +++ b/lang/lang.de.php @@ -0,0 +1,32 @@ + 'Deutsch', + 'author' => array( + 'name' => '', + 'email' => '', + 'website' => '' + ), + 'release-date' => '2011-05-19' + ); + + /** + * Mass Upload Utility + */ + $dictionary = array( + + + 'Successfully added a whole slew of entries, {$total} to be exact.' => false, + 'However, {$total} entries were successfully added.' => false, + 'Some errors were encountered while attempting to save.' => false, + 'View all Entries' => false, + 'Create more?' => false, + 'Sorry, but your browser is incompatible with uploading files using HTML5 (at least, with current preferences.\n Please install the latest version of Firefox, Safari or Chrome' => false, + 'Start' => false, + 'Progress' => false, + 'Loaded' => false, + 'Finished' => false, + 'multiple files can be selected, use the shift or ctrl/cmd key' => false + + + );