mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-07 16:25:45 +01:00
Localification yay.
This commit is contained in:
@@ -124,12 +124,17 @@ download.unknownCommand = Unknown command
|
||||
download.commandNotAllowed = Command not allowed
|
||||
download.prompt.launchExecutable = This will launch an executable download. Would you like to continue? (yes/[no]/always):
|
||||
|
||||
download.nActive-1 = %S active
|
||||
download.almostDone = ~1 second
|
||||
download.unknown = Unknown
|
||||
|
||||
download.action.Cancel = Cancel
|
||||
download.action.Clear = Clear
|
||||
download.action.Delete = Delete
|
||||
download.action.Pause = Pause
|
||||
download.action.Remove = Remove
|
||||
download.action.Resume = Resume
|
||||
download.action.Retry = Retry
|
||||
download.action.Cancel = Cancel
|
||||
download.action.Delete = Delete
|
||||
|
||||
editor.prompt.editPassword = Editing a password field externally will reveal the password. Would you like to continue? (yes/[no]):
|
||||
|
||||
@@ -268,6 +273,14 @@ style.inline = inline
|
||||
|
||||
time.total-1 = Total time: %S
|
||||
|
||||
title.Progress = Progress
|
||||
title.Source = Source
|
||||
title.Speed = Speed
|
||||
title.Status = Status
|
||||
title.Time remaining = Time remaining
|
||||
title.Title = Title
|
||||
title.Totals = Totals
|
||||
|
||||
variable.none = No variables found
|
||||
|
||||
window.cantAttachSame = Can't reattach to the same window
|
||||
|
||||
@@ -151,18 +151,18 @@ var Download = Class("Download", {
|
||||
this.nodes.speed.textContent = util.formatBytes(this.speed, 1, true) + "/s";
|
||||
|
||||
if (this.speed == 0 || this.size == 0)
|
||||
this.nodes.time.textContent = "Unknown";
|
||||
this.nodes.time.textContent = _("download.unknown");
|
||||
else {
|
||||
let seconds = (this.size - this.amountTransferred) / this.speed;
|
||||
[, self.timeRemaining] = DownloadUtils.getTimeLeft(seconds, this.timeRemaining);
|
||||
if (this.timeRemaining)
|
||||
this.nodes.time.textContent = util.formatSeconds(this.timeRemaining);
|
||||
else
|
||||
this.nodes.time.textContent = /*L*/"~1 second";
|
||||
this.nodes.time.textContent = _("download.almostDone");
|
||||
}
|
||||
}
|
||||
|
||||
let total = this.nodes.progressTotal.textContent = this.size ? util.formatBytes(this.size, 1, true) : "Unknown";
|
||||
let total = this.nodes.progressTotal.textContent = this.size ? util.formatBytes(this.size, 1, true) : _("download.unknown");
|
||||
let suffix = RegExp(/( [a-z]+)?$/i.exec(total)[0] + "$");
|
||||
this.nodes.progressHave.textContent = util.formatBytes(this.amountTransferred, 1, true).replace(suffix, "");
|
||||
|
||||
@@ -207,21 +207,21 @@ var DownloadList = Class("DownloadList",
|
||||
|
||||
util.xmlToDom(<table highlight="Downloads" key="list" xmlns={XHTML}>
|
||||
<tr highlight="DownloadHead">
|
||||
<span><!--L-->Title</span>
|
||||
<span><!--L-->Status</span>
|
||||
<span>{_("Title")}</span>
|
||||
<span>{_("Status")}</span>
|
||||
<span/>
|
||||
<span><!--L-->Progress</span>
|
||||
<span>{_("Progress")}</span>
|
||||
<span/>
|
||||
<span><!--L-->Speed</span>
|
||||
<span><!--L-->Time remaining</span>
|
||||
<span><!--L-->Source</span>
|
||||
<span>{_("Speed")}</span>
|
||||
<span>{_("Time remaining")}</span>
|
||||
<span>{_("Source")}</span>
|
||||
</tr>
|
||||
<tr highlight="Download"><span><div style="min-height: 1ex; /* FIXME */"/></span></tr>
|
||||
<tr highlight="Download" key="totals" active="true">
|
||||
<td><span highlight="Title"><!--L-->Totals:</span> <span key="total"/></td>
|
||||
<td><span highlight="Title">{_("title.Totals")}:</span> <span key="total"/></td>
|
||||
<td/>
|
||||
<td highlight="DownloadButtons">
|
||||
<a highlight="Button" key="clear"><!--L-->Clear</a>
|
||||
<a highlight="Button" key="clear">{_("Clear")}</a>
|
||||
</td>
|
||||
<td highlight="DownloadProgress" key="progress">
|
||||
<span highlight="DownloadProgressHave" key="progressHave"
|
||||
@@ -315,7 +315,7 @@ var DownloadList = Class("DownloadList",
|
||||
|
||||
let active = downloads.filter(function (dl) dl.alive).length;
|
||||
if (active)
|
||||
this.nodes.total.textContent = /*L*/active + " active";
|
||||
this.nodes.total.textContent = _("download.nActive", active);
|
||||
else for (let key in values(["total", "percent", "speed", "time"]))
|
||||
this.nodes[key].textContent = "";
|
||||
|
||||
|
||||
Reference in New Issue
Block a user