mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
MINOR Localization of new UploadField strings
This commit is contained in:
parent
3c6e7bd2ea
commit
61232ba848
@ -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');
|
||||
|
@ -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>' +
|
||||
'{% } %}' +
|
||||
|
@ -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'
|
||||
});
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user