Merge pull request #6935 from nextcloud/12-5780

Backport of translation string fixes
This commit is contained in:
Morris Jobke 2017-10-25 14:42:46 +02:00 committed by GitHub
commit 7ec5689d0e
3 changed files with 4 additions and 11 deletions

View file

@ -971,9 +971,9 @@ OC.Uploader.prototype = _.extend({
$('#uploadprogressbar').progressbar({value: 0});
$('#uploadprogressbar .ui-progressbar-value').
html('<em class="label inner"><span class="desktop">'
+ t('files', 'Uploading...')
+ t('files', 'Uploading')
+ '</span><span class="mobile">'
+ t('files', '...')
+ t('files', '')
+ '</span></em>');
$('#uploadprogressbar').tooltip({placement: 'bottom'});
self._showProgressBar();
@ -1023,7 +1023,7 @@ OC.Uploader.prototype = _.extend({
var h = moment.duration(smoothRemainingSeconds, "seconds").humanize();
if (!(smoothRemainingSeconds >= 0 && smoothRemainingSeconds < 14400)) {
// show "Uploading ..." for durations longer than 4 hours
h = t('files', 'Uploading...');
h = t('files', 'Uploading');
}
$('#uploadprogressbar .label .mobile').text(h);
$('#uploadprogressbar .label .desktop').text(h);

View file

@ -2,7 +2,7 @@
<div class="actions creatable hidden">
<div id="uploadprogresswrapper">
<div id="uploadprogressbar">
<em class="label outer" style="display:none"><span class="desktop"><?php p($l->t('Uploading...'));?></span><span class="mobile"><?php p($l->t('...'));?></span></em>
<em class="label outer" style="display:none"><span class="desktop"><?php p($l->t('Uploading'));?></span><span class="mobile"><?php p($l->t(''));?></span></em>
</div>
<input type="button" class="stop icon-close" style="display:none" value="" />
</div>

7
core/vendor/core.js vendored
View file

@ -5551,9 +5551,6 @@ dav.Client.prototype = {
' <d:prop>\n';
for(var ii in properties) {
if (!properties.hasOwnProperty(ii)) {
continue;
}
var property = this.parseClarkNotation(properties[ii]);
if (this.xmlNamespaces[property.namespace]) {
@ -5599,10 +5596,6 @@ dav.Client.prototype = {
' <d:prop>\n';
for(var ii in properties) {
if (!properties.hasOwnProperty(ii)) {
continue;
}
var property = this.parseClarkNotation(ii);
var propName;
var propValue = properties[ii];