Browse Source

WebUI: Drop old translation hack.

adaptive-webui-19844
Vladimir Golovnev (Glassez) 10 years ago
parent
commit
48d4cf4f36
  1. 4
      src/webui/www/public/scripts/misc.js

4
src/webui/www/public/scripts/misc.js

@ -32,7 +32,7 @@ function friendlyDuration(seconds) { @@ -32,7 +32,7 @@ function friendlyDuration(seconds) {
if (seconds == 0)
return "0";
if (seconds < 60)
return "< " + "QBT_TR(%1m)QBT_TR".replace("%1", "1"); //translation of "< 1m" not working
return "QBT_TR(< 1m)QBT_TR";
var minutes = seconds / 60;
if (minutes < 60)
return "QBT_TR(%1m)QBT_TR".replace("%1", parseInt(minutes));
@ -72,4 +72,4 @@ if (!Date.prototype.toISOString) { @@ -72,4 +72,4 @@ if (!Date.prototype.toISOString) {
};
}());
}
}

Loading…
Cancel
Save