diff options
author | luckydonald <luckydonald@flutterb.at> | 2014-08-13 13:06:00 +0200 |
---|---|---|
committer | luckydonald <luckydonald@flutterb.at> | 2014-08-13 13:06:00 +0200 |
commit | 69d88500d32cd7a641061fbed420369a4eae3116 (patch) | |
tree | 7033bf81332e7776b73565c847c75b5d1e7eb86b | |
parent | 5e86ff6d8543897221b87e1e1b64f3603e7faac1 (diff) | |
download | nextcloud-server-69d88500d32cd7a641061fbed420369a4eae3116.tar.gz nextcloud-server-69d88500d32cd7a641061fbed420369a4eae3116.zip |
Updated String formatting. Label font-weight was already normal.
-rw-r--r-- | apps/files/css/upload.css | 2 | ||||
-rw-r--r-- | apps/files/js/file-upload.js | 20 |
2 files changed, 11 insertions, 11 deletions
diff --git a/apps/files/css/upload.css b/apps/files/css/upload.css index 2e1ad9226b8..e6b4b4f8703 100644 --- a/apps/files/css/upload.css +++ b/apps/files/css/upload.css @@ -73,7 +73,7 @@ opacity: 1; overflow: hidden; white-space: nowrap; - font-weight: normal; + font-weight: normal; } #uploadprogressbar .label.inner { color:white; diff --git a/apps/files/js/file-upload.js b/apps/files/js/file-upload.js index 564122bd2a9..874e88ef1cb 100644 --- a/apps/files/js/file-upload.js +++ b/apps/files/js/file-upload.js @@ -490,39 +490,39 @@ OC.Upload = { var timeStringMobile = ""; var timeStringDesktop = ""; if(date.getUTCHours()>0){ - timeStringDesktop = t('files', '{hours}:{minutes}:{seconds} Hour{plural_s} left' , { + timeStringDesktop = t('files', '{hours}:{minutes}:{seconds} hour{plural_s} left' , { hours:date.getUTCHours(), minutes: ('0' + date.getUTCMinutes()).slice(-2), seconds: ('0' + date.getUTCSeconds()).slice(-2), - plural_s: (!(date.getUTCHours()== 1 && date.getUTCMinutes()== 0 && date.getUTCSeconds()== 0) ? "s": "") + plural_s: (date.getUTCHours()== 1 && date.getUTCMinutes()== 0 && date.getUTCSeconds()== 0 ? "": "s") }); - timeStringMobile = t('files', '{hours}:{minutes}:{seconds}h' , { + timeStringMobile = t('files', '{hours}:{minutes}h' , { hours:date.getUTCHours(), minutes: ('0' + date.getUTCMinutes()).slice(-2), seconds: ('0' + date.getUTCSeconds()).slice(-2) }); } else if(date.getUTCMinutes()>0){ - timeStringDesktop = t('files', '{minutes}:{seconds} Minute{plural_s} left' , { + timeStringDesktop = t('files', '{minutes}:{seconds} minute{plural_s} left' , { minutes: date.getUTCMinutes(), seconds: ('0' + date.getUTCSeconds()).slice(-2), - plural_s: (!(date.getUTCMinutes()== 1 && date.getUTCSeconds()== 0)? "s": "") + plural_s: (date.getUTCMinutes()== 1 && date.getUTCSeconds()== 0 ? "": "s") }); - timeStringMobile = t('files', '{minutes}:{seconds}min' , { + timeStringMobile = t('files', '{minutes}:{seconds}m' , { minutes: date.getUTCMinutes(), seconds: ('0' + date.getUTCSeconds()).slice(-2) }); } else if(date.getUTCSeconds()>0){ - timeStringDesktop = t('files', '{seconds} Second{plural_s} left' , { + timeStringDesktop = t('files', '{seconds} second{plural_s} left' , { seconds: date.getUTCSeconds(), - plural_s: (!date.getUTCSeconds()== 1 ? "s": "") + plural_s: (date.getUTCSeconds() == 1 ? "": "s") }); timeStringMobile = t('files', '{seconds}s' , {seconds: date.getUTCSeconds()}); } else { timeStringDesktop = t('files', 'Any moment now...'); timeStringMobile = t('files', 'Soon...'); } - $('#uploadprogressbar .label .mobile').text(timeStringMobile);//t('files', '{loadedSize}', {loadedSize: humanFileSize(data.loaded)})); - $('#uploadprogressbar .label .desktop').text(timeStringDesktop);// + $('#uploadprogressbar .label .mobile').text(timeStringMobile); + $('#uploadprogressbar .label .desktop').text(timeStringDesktop); $('#uploadprogressbar').attr('title', t('files', '{loadedSize} of {totalSize} ({bitrate})', {loadedSize: humanFileSize(data.loaded), totalSize: humanFileSize(data.total), bitrate: humanFileSize(data.bitrate) + '/s'})); $('#uploadprogressbar').progressbar('value', progress); }); |