Skip to content

Commit

Permalink
changed upload text, added example translation
Browse files Browse the repository at this point in the history
  • Loading branch information
scottkf committed May 19, 2011
1 parent 71f4fe9 commit 23375d3
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 3 deletions.
Expand Up @@ -20,7 +20,7 @@
'Progress' : false,
'Loaded' : false,
'Finished' : false,
'multiple files can be selected' : false
'multiple files can be selected, use the <code>shift</code> or <code>ctrl/cmd</code> key' : false
});

// this should theoretically support any upload field
Expand All @@ -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 <code>shift</code> or <code>ctrl/cmd</code> key")+') $2'));
fileField = $("input[type='file']");
fileField.attr('multiple', 'true');
fileField.parent().append(" \
Expand Down
2 changes: 1 addition & 1 deletion extension.driver.php
Expand Up @@ -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);
}
}
Expand Down
32 changes: 32 additions & 0 deletions lang/lang.de.php
@@ -0,0 +1,32 @@
<?php

$about = array(
'name' => '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 <code>shift</code> or <code>ctrl/cmd</code> key' => false


);

0 comments on commit 23375d3

Please sign in to comment.