mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-15 03:05:45 +01:00
Localization-related changes. Fix dead help links.
This commit is contained in:
@@ -1840,11 +1840,11 @@ var Buffer = Module("buffer", {
|
||||
"Where to show the destination of the link under the cursor",
|
||||
"string", "status",
|
||||
{
|
||||
values: [
|
||||
["", "Don't show link destinations"],
|
||||
["status", "Show link destinations in the status line"],
|
||||
["command", "Show link destinations in the command line"]
|
||||
]
|
||||
values: {
|
||||
"": "Don't show link destinations",
|
||||
"status": "Show link destinations in the status line",
|
||||
"command": "Show link destinations in the command line"
|
||||
}
|
||||
});
|
||||
|
||||
options.add(["usermode", "um"],
|
||||
|
||||
@@ -1241,9 +1241,10 @@ var Hints = Module("hints", {
|
||||
"The keys used to label and select hints",
|
||||
"string", "0123456789",
|
||||
{
|
||||
values: [
|
||||
["0123456789", "Numbers"],
|
||||
["asdfg;lkjh", "Home Row"]],
|
||||
values: {
|
||||
"0123456789": "Numbers",
|
||||
"asdfg;lkjh": "Home Row"
|
||||
},
|
||||
validator: function (value) {
|
||||
let values = events.fromString(value).map(events.closure.toString);
|
||||
return Option.validIf(array.uniq(values).length === values.length,
|
||||
@@ -1262,24 +1263,24 @@ var Hints = Module("hints", {
|
||||
"Change the behavior of <Return> in hint mode",
|
||||
"number", 0,
|
||||
{
|
||||
values: [
|
||||
["0", "Follow the first hint as soon as typed text uniquely identifies it. Follow the selected hint on <Return>."],
|
||||
["1", "Follow the selected hint on <Return>."],
|
||||
["2", "Follow the selected hint on <Return> only it's been <Tab>-selected."]
|
||||
]
|
||||
values: {
|
||||
"0": "Follow the first hint as soon as typed text uniquely identifies it. Follow the selected hint on <Return>.",
|
||||
"1": "Follow the selected hint on <Return>.",
|
||||
"2": "Follow the selected hint on <Return> only it's been <Tab>-selected."
|
||||
}
|
||||
});
|
||||
|
||||
options.add(["hintmatching", "hm"],
|
||||
"How hints are filtered",
|
||||
"stringlist", "contains",
|
||||
{
|
||||
values: [
|
||||
["contains", "The typed characters are split on whitespace. The resulting groups must all appear in the hint."],
|
||||
["custom", "Delegate to a custom function: dactyl.plugins.customHintMatcher(hintString)"],
|
||||
["firstletters", "Behaves like wordstartswith, but all groups must match a sequence of words."],
|
||||
["wordstartswith", "The typed characters are split on whitespace. The resulting groups must all match the beginnings of words, in order."],
|
||||
["transliterated", UTF8("When true, special latin characters are translated to their ASCII equivalents (e.g., é ⇒ e)")]
|
||||
],
|
||||
values: {
|
||||
"contains": "The typed characters are split on whitespace. The resulting groups must all appear in the hint.",
|
||||
"custom": "Delegate to a custom function: dactyl.plugins.customHintMatcher(hintString)",
|
||||
"firstletters": "Behaves like wordstartswith, but all groups must match a sequence of words.",
|
||||
"wordstartswith": "The typed characters are split on whitespace. The resulting groups must all match the beginnings of words, in order.",
|
||||
"transliterated": UTF8("When true, special latin characters are translated to their ASCII equivalents (e.g., é ⇒ e)")
|
||||
},
|
||||
validator: function (values) Option.validateCompleter.call(this, values) &&
|
||||
1 === values.reduce(function (acc, v) acc + (["contains", "custom", "firstletters", "wordstartswith"].indexOf(v) >= 0), 0)
|
||||
});
|
||||
@@ -1293,11 +1294,11 @@ var Hints = Module("hints", {
|
||||
"Which text is used to filter hints for input elements",
|
||||
"stringlist", "label,value",
|
||||
{
|
||||
values: [
|
||||
["value", "Match against the value of the input field"],
|
||||
["label", "Match against the text of a label for the input field, if one can be found"],
|
||||
["name", "Match against the name of the input field"]
|
||||
]
|
||||
values: {
|
||||
"value": "Match against the value of the input field",
|
||||
"label": "Match against the text of a label for the input field, if one can be found",
|
||||
"name": "Match against the name of the input field"
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
|
||||
@@ -987,11 +987,11 @@ var Tabs = Module("tabs", {
|
||||
config.tabbrowser.tabContainer._positionPinnedTabs();
|
||||
return value;
|
||||
},
|
||||
values: [
|
||||
["never", "Never show the tab bar"],
|
||||
["multitab", "Show the tab bar when there are multiple tabs"],
|
||||
["always", "Always show the tab bar"]
|
||||
]
|
||||
values: {
|
||||
"never": "Never show the tab bar",
|
||||
"multitab": "Show the tab bar when there are multiple tabs",
|
||||
"always": "Always show the tab bar"
|
||||
}
|
||||
});
|
||||
|
||||
if (config.hasTabbrowser) {
|
||||
@@ -1030,15 +1030,15 @@ var Tabs = Module("tabs", {
|
||||
"Define which commands should output in a new tab by default",
|
||||
"stringlist", "",
|
||||
{
|
||||
values: [
|
||||
["all", "All commands"],
|
||||
["addons", ":addo[ns] command"],
|
||||
["downloads", ":downl[oads] command"],
|
||||
["extoptions", ":exto[ptions] command"],
|
||||
["help", ":h[elp] command"],
|
||||
["javascript", ":javascript! or :js! command"],
|
||||
["prefs", ":pref[erences]! or :prefs! command"]
|
||||
],
|
||||
values: {
|
||||
"all": "All commands",
|
||||
"addons": ":addo[ns] command",
|
||||
"downloads": ":downl[oads] command",
|
||||
"extoptions": ":exto[ptions] command",
|
||||
"help": ":h[elp] command",
|
||||
"javascript": ":javascript! or :js! command",
|
||||
"prefs": ":pref[erences]! or :prefs! command"
|
||||
},
|
||||
has: Option.has.toggleAll
|
||||
});
|
||||
|
||||
@@ -1064,11 +1064,11 @@ var Tabs = Module("tabs", {
|
||||
"See 'popups' option.");
|
||||
return values;
|
||||
},
|
||||
values: [
|
||||
["tab", "Open popups in a new tab"],
|
||||
["window", "Open popups in a new window"],
|
||||
["resized", "Open resized popups in a new window"]
|
||||
]
|
||||
values: {
|
||||
"tab": "Open popups in a new tab",
|
||||
"window": "Open popups in a new window",
|
||||
"resized": "Open resized popups in a new window"
|
||||
}
|
||||
});
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user