diff options
author | Friendika <info@friendika.com> | 2011-02-02 16:51:55 -0800 |
---|---|---|
committer | Friendika <info@friendika.com> | 2011-02-02 16:51:55 -0800 |
commit | 46c37fc7796ea80a3613d927e471cf8ebba0f2ba (patch) | |
tree | 0630804894ad4e1fec4631d3c868aa7e1ba53f93 | |
parent | ee45dee9324be48cd87a883405bdd9e11e3f39f5 (diff) | |
download | volse-hubzilla-46c37fc7796ea80a3613d927e471cf8ebba0f2ba.tar.gz volse-hubzilla-46c37fc7796ea80a3613d927e471cf8ebba0f2ba.tar.bz2 volse-hubzilla-46c37fc7796ea80a3613d927e471cf8ebba0f2ba.zip |
string update, allow js_upload file selection text to be localised
-rw-r--r-- | addon/js_upload/js_upload.php | 21 | ||||
-rw-r--r-- | util/strings.php | 12 |
2 files changed, 33 insertions, 0 deletions
diff --git a/addon/js_upload/js_upload.php b/addon/js_upload/js_upload.php index dc2dc37dc..9f3fa9600 100644 --- a/addon/js_upload/js_upload.php +++ b/addon/js_upload/js_upload.php @@ -36,6 +36,11 @@ function js_upload_form(&$a,&$b) { $b['addon_text'] .= '<link href="' . $a->get_baseurl() . '/addon/js_upload/file-uploader/client/fileuploader.css" rel="stylesheet" type="text/css">'; $b['addon_text'] .= '<script src="' . $a->get_baseurl() . '/addon/js_upload/file-uploader/client/fileuploader.js" type="text/javascript"></script>'; + $upload_msg = t('Upload a file'); + $drop_msg = t('Drop files here to upload'); + $cancel = t('Cancel'); + $failed = t('Failed'); + $b['addon_text'] .= <<< EOT <div id="file-uploader-demo1"> @@ -65,6 +70,22 @@ function createUploader() { uploader = new qq.FileUploader({ element: document.getElementById('file-uploader-demo1'), action: '{$b['post_url']}', + + template: '<div class="qq-uploader">' + + '<div class="qq-upload-drop-area"><span>$drop_msg</span></div>' + + '<div class="qq-upload-button">$upload_msg</div>' + + '<ul class="qq-upload-list"></ul>' + + '</div>', + + // template for one item in file list + fileTemplate: '<li>' + + '<span class="qq-upload-file"></span>' + + '<span class="qq-upload-spinner"></span>' + + '<span class="qq-upload-size"></span>' + + '<a class="qq-upload-cancel" href="#">$cancel</a>' + + '<span class="qq-upload-failed-text">$failed</span>' + + '</li>', + debug: true, onSubmit: function(id,filename) { diff --git a/util/strings.php b/util/strings.php index 5233c5619..3b12c0e54 100644 --- a/util/strings.php +++ b/util/strings.php @@ -84,6 +84,7 @@ $a->strings['Delete contact'] = 'Delete contact'; $a->strings['Last updated: '] = 'Last updated: '; $a->strings['Update public posts: '] = 'Update public posts: '; $a->strings['Never'] = 'Never'; +$a->strings['Update now'] = 'Update now'; $a->strings['Unblock this contact'] = 'Unblock this contact'; $a->strings['Block this contact'] = 'Block this contact'; $a->strings['Unignore this contact'] = 'Unignore this contact'; @@ -219,6 +220,11 @@ $a->strings['Empty post discarded.'] = 'Empty post discarded.'; $a->strings['Wall Photos'] = 'Wall Photos'; $a->strings[" commented on your item at "] = " commented on your item at "; $a->strings[" posted on your profile wall at "] = " posted on your profile wall at "; +$a->strings['This message was sent to you by '] = 'This message was sent to you by '; +$a->strings[', a member of the Friendika social network.'] = ', a member of the Friendika social network.'; +$a->strings['You may visit them online at'] = 'You may visit them online at'; +$a->strings['Please contact the sender by replying to this post if you do not wish to receive these messages.'] = 'Please contact the sender by replying to this post if you do not wish to receive these messages.'; +$a->strings['posted an update.'] = 'posted an update.'; $a->strings['photo'] = 'photo'; $a->strings['status'] = 'status'; $a->strings['likes'] = 'likes'; @@ -251,6 +257,8 @@ $a->strings['Delete message'] = 'Delete message'; $a->strings['Send Reply'] = 'Send Reply'; $a->strings['Normal View'] = 'Normal View'; $a->strings['New Item View'] = 'New Item View'; +$a->strings['CC: email addresses'] = 'CC: email addresses'; +$a->strings['Example: bob@example.com, mary@example.com'] = 'Example: bob@example.com, mary@example.com'; $a->strings['No such group'] = 'No such group'; $a->strings['Group is empty'] = 'Group is empty'; $a->strings['Group: '] = 'Group: '; @@ -411,6 +419,7 @@ $a->strings['Network'] = 'Network'; $a->strings['Notifications'] = 'Notifications'; $a->strings['Settings'] = 'Settings'; $a->strings['Profiles'] = 'Profiles'; +$a->strings['Embedding disabled'] = 'Embedding disabled'; $a->strings['Male'] = 'Male'; $a->strings['Female'] = 'Female'; $a->strings['Currently Male'] = 'Currently Male'; @@ -467,6 +476,9 @@ $a->strings['Ask me'] = 'Ask me'; $a->strings['Facebook status update failed.'] = 'Facebook status update failed.'; $a->strings['Select files to upload: '] = 'Select files to upload: '; $a->strings['Use the following controls only if the Java uploader [above] fails to launch.'] = 'Use the following controls only if the Java uploader [above] fails to launch.'; +$a->strings['Upload a file'] = 'Upload a file'; +$a->strings['Drop files here to upload'] = 'Drop files here to upload'; +$a->strings['Failed'] = 'Failed'; $a->strings['No files were uploaded.'] = 'No files were uploaded.'; $a->strings['Uploaded file is empty'] = 'Uploaded file is empty'; $a->strings['Uploaded file is too large'] = 'Uploaded file is too large'; |