mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-08 05:45:45 +01:00
More polyglotization.
This commit is contained in:
@@ -203,9 +203,9 @@ var Abbreviations = Module("abbreviations", {
|
||||
let list = <table>
|
||||
<tr highlight="Title">
|
||||
<td/>
|
||||
<td style="padding-right: 1em;"><!--L-->Mode</td>
|
||||
<td style="padding-right: 1em;"><!--L-->Abbrev</td>
|
||||
<td style="padding-right: 1em;"><!--L-->Replacement</td>
|
||||
<td style="padding-right: 1em;">{_("title.Mode")}</td>
|
||||
<td style="padding-right: 1em;">{_("title.Abbrev")}</td>
|
||||
<td style="padding-right: 1em;">{_("title.Replacement")}</td>
|
||||
</tr>
|
||||
<col style="min-width: 6em; padding-right: 1em;"/>
|
||||
{
|
||||
|
||||
@@ -1629,7 +1629,7 @@ var ItemList = Class("ItemList", {
|
||||
_init: function _init() {
|
||||
this._div = this._dom(
|
||||
<div class="ex-command-output" highlight="Normal" style="white-space: nowrap">
|
||||
<div highlight="Completions" key="noCompletions"><span highlight="Title"><!--L-->No Completions</span></div>
|
||||
<div highlight="Completions" key="noCompletions"><span highlight="Title">{_("completion.noCompletions")}</span></div>
|
||||
<div key="completions"/>
|
||||
<div highlight="Completions">
|
||||
{
|
||||
|
||||
@@ -689,7 +689,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
unescape(encodeURI( // UTF-8 handling hack.
|
||||
<document xmlns={NS}
|
||||
name="plugins" title={config.appName + " Plugins"}>
|
||||
<h1 tag="using-plugins"><!--L-->Using Plugins</h1>
|
||||
<h1 tag="using-plugins">{_("help.title.Using Plugins")}</h1>
|
||||
<toc start="2"/>
|
||||
|
||||
{body}
|
||||
@@ -1078,7 +1078,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
* These are set and accessed with the "g:" prefix.
|
||||
*/
|
||||
_globalVariables: {},
|
||||
globalVariables: deprecated(/*L*/"the options system", {
|
||||
globalVariables: deprecated(_("deprecated.for.theOptionsSystem"), {
|
||||
get: function globalVariables() this._globalVariables
|
||||
}),
|
||||
|
||||
@@ -1967,11 +1967,11 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
|
||||
commandline.commandOutput(
|
||||
<table>
|
||||
<tr highlight="Title" align="left">
|
||||
<th colspan="3"><!--L-->Code execution summary</th>
|
||||
<th colspan="3">{_("title.Code execution summary")}</th>
|
||||
</tr>
|
||||
<tr><td>  Executed:</td><td align="right"><span class="times-executed">{count}</span></td><td>times</td></tr>
|
||||
<tr><td>  Average time:</td><td align="right"><span class="time-average">{each.toFixed(2)}</span></td><td>{eachUnits}</td></tr>
|
||||
<tr><td>  Total time:</td><td align="right"><span class="time-total">{total.toFixed(2)}</span></td><td>{totalUnits}</td></tr>
|
||||
<tr><td>  {_("title.Executed")}:</td><td align="right"><span class="times-executed">{count}</span></td><td><!--L-->times</td></tr>
|
||||
<tr><td>  {_("title.Average time")}:</td><td align="right"><span class="time-average">{each.toFixed(2)}</span></td><td>{eachUnits}</td></tr>
|
||||
<tr><td>  {_("title.Total time")}:</td><td align="right"><span class="time-total">{total.toFixed(2)}</span></td><td>{totalUnits}</td></tr>
|
||||
</table>);
|
||||
}
|
||||
else {
|
||||
|
||||
@@ -321,7 +321,7 @@ var Editor = Module("editor", {
|
||||
try {
|
||||
var tmpfile = io.createTempFile();
|
||||
if (!tmpfile)
|
||||
throw Error(/*L*/"Couldn't create temporary file");
|
||||
throw Error(_("io.cantCreateTempFile"));
|
||||
|
||||
if (textBox) {
|
||||
highlight.highlightNode(textBox, origGroup + " EditorEditing");
|
||||
@@ -329,8 +329,7 @@ var Editor = Module("editor", {
|
||||
}
|
||||
|
||||
if (!tmpfile.write(text))
|
||||
throw Error(/*L*/"Input contains characters not valid in the current " +
|
||||
"file encoding");
|
||||
throw Error(_("io.cantEncode"));
|
||||
|
||||
var lastUpdate = Date.now();
|
||||
|
||||
|
||||
@@ -219,7 +219,7 @@ var History = Module("history", {
|
||||
description: "The sort order of the results",
|
||||
completer: function (context, args) {
|
||||
context.compare = CompletionContext.Sort.unsorted;
|
||||
return /*L*/array.flatten([
|
||||
return array.flatten([
|
||||
"annotation",
|
||||
"date",
|
||||
"date added",
|
||||
@@ -230,8 +230,8 @@ var History = Module("history", {
|
||||
"uri",
|
||||
"visitcount"
|
||||
].map(function (order) [
|
||||
["+" + order.replace(" ", ""), "Sort by " + order + " ascending"],
|
||||
["-" + order.replace(" ", ""), "Sort by " + order + " descending"]
|
||||
["+" + order.replace(" ", ""), /*L*/"Sort by " + order + " ascending"],
|
||||
["-" + order.replace(" ", ""), /*L*/"Sort by " + order + " descending"]
|
||||
]));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -431,9 +431,9 @@ var Mappings = Module("mappings", {
|
||||
let list = <table>
|
||||
<tr highlight="Title">
|
||||
<td/>
|
||||
<td style="padding-right: 1em;"><!--L-->Mode</td>
|
||||
<td style="padding-right: 1em;"><!--L-->Command</td>
|
||||
<td style="padding-right: 1em;"><!--L-->Action</td>
|
||||
<td style="padding-right: 1em;">{_("title.Mode")}</td>
|
||||
<td style="padding-right: 1em;">{_("title.Command")}</td>
|
||||
<td style="padding-right: 1em;">{_("title.Action")}</td>
|
||||
</tr>
|
||||
<col style="min-width: 6em; padding-right: 1em;"/>
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user