Use proper unit when reporting byte count during upload
authorLunar <lunar@anargeek.net>
Tue, 20 Dec 2016 11:57:38 +0000 (12:57 +0100)
committerLunar <lunar@anargeek.net>
Tue, 20 Dec 2016 12:38:13 +0000 (13:38 +0100)
public/javascripts/coquelicot.js
views/layout.haml

index ea29c21..824efe0 100644 (file)
@@ -36,7 +36,7 @@ $(function($) {
     uploading: function(upload) {
       // update upload info on each /progress response
       jQuery('#received').html(i18n.uploading + parseInt(upload.received / 1024) + "/");
-      jQuery('#size').html(parseInt(upload.size / 1024) + ' ' + i18n.kb);
+      jQuery('#size').html(parseInt(upload.size / 1024) + ' ' + i18n.kib);
       jQuery('#percent').html(upload.percents + "%");
     },
     success: function(upload) {
index c165abe..6a2ecbe 100644 (file)
@@ -38,7 +38,7 @@
                    error: _('Error:'),
                    uploadStarting: _('Upload starting...'),
                    uploading: _('Uploading: '),
-                   kb: _('kB'),
+                   kib: _('KiB'),
                  };
     %script{ :type => 'text/javascript', :src => 'javascripts/coquelicot.js' }
   %body