MINOR Localization of new UploadField strings

This commit is contained in:
Ingo Schommer 2012-05-12 09:53:44 +02:00
parent 3c6e7bd2ea
commit 61232ba848
3 changed files with 5 additions and 3 deletions

View File

@ -347,7 +347,7 @@
var text="";
if(this.height() === 0) {
text = "Editing...";
text = ss.i18n._t('UploadField.Editing', "Editing ...");
this.fitHeight();
itemInfo.find('.toggle-details-icon').addClass('opened');
status.removeClass('ui-state-success-text').removeClass('ui-state-warning-text');

View File

@ -8,7 +8,7 @@ window.tmpl.cache['ss-uploadfield-downloadtemplate'] = tmpl(
'<label class="ss-uploadfield-item-name">' +
'<span class="name" title="{%=file.name%}">{%=file.name%}</span> ' +
'{% if (!file.error) { %}' +
'<div class="ss-uploadfield-item-status ui-state-success-text" title="Uploaded">Uploaded</div>' +
'<div class="ss-uploadfield-item-status ui-state-success-text" title="' + ss.i18n._t('UploadField.CANCEL', 'Cancel') + '">' + ss.i18n._t('UploadField.CANCEL', 'Cancel') + '</div>' +
'{% } else { %}' +
'<div class="ss-uploadfield-item-status ui-state-error-text" title="{%=o.options.errorMessages[file.error] || file.error%}">{%=o.options.errorMessages[file.error] || file.error%}</div>' +
'{% } %}' +

View File

@ -32,6 +32,8 @@ if(typeof(ss) == 'undefined' || typeof(ss.i18n) == 'undefined') {
'UploadField.MAXNUMBEROFFILESSIMPLE': 'Max number of files exceeded',
'UploadField.UPLOADEDBYTES': 'Uploaded bytes exceed file size',
'UploadField.EMPTYRESULT': 'Empty file upload result',
'UploadField.LOADING': 'Loading ...'
'UploadField.LOADING': 'Loading ...',
'UploadField.Editing': 'Editing ...',
'UploadField.Uploaded': 'Uploaded'
});
}