1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-24 22:33:33 +01:00

More ad hoc i18n work.

This commit is contained in:
Doug Kearns
2011-03-21 17:33:51 +11:00
parent be367b9ca1
commit 9ae921773d
5 changed files with 20 additions and 10 deletions

View File

@@ -1587,7 +1587,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
true); true);
prefs.safeSet("layout.scrollbar.side", opts.indexOf("l") >= 0 ? 3 : 2, prefs.safeSet("layout.scrollbar.side", opts.indexOf("l") >= 0 ? 3 : 2,
"See 'guioptions' scrollbar flags."); _("option.guioptions.safeSet"));
}, },
validator: function (opts) Option.validIf(!(opts.indexOf("l") >= 0 && opts.indexOf("r") >= 0), validator: function (opts) Option.validIf(!(opts.indexOf("l") >= 0 && opts.indexOf("r") >= 0),
UTF8("Only one of l or r allowed")) UTF8("Only one of l or r allowed"))
@@ -1693,7 +1693,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), {
{ {
setter: function (value) { setter: function (value) {
prefs.safeSet("accessibility.typeaheadfind.enablesound", !value, prefs.safeSet("accessibility.typeaheadfind.enablesound", !value,
"See 'visualbell' option"); _("option.visualbell.safeSet"));
return value; return value;
} }
}); });

View File

@@ -1231,7 +1231,7 @@ var Hints = Module("hints", {
validator: function (value) { validator: function (value) {
let values = events.fromString(value).map(events.closure.toString); let values = events.fromString(value).map(events.closure.toString);
return Option.validIf(array.uniq(values).length === values.length, return Option.validIf(array.uniq(values).length === values.length,
"Duplicate keys not allowed"); _("option.hintkeys.duplicate"));
} }
}); });

View File

@@ -247,11 +247,11 @@ var StatusLine = Module("statusline", {
if (url == "about:blank") { if (url == "about:blank") {
if (!buffer.title) if (!buffer.title)
url = "[No Name]"; url = _("buffer.noName");
} }
else { else {
url = url.replace(RegExp("^dactyl://help/(\\S+)#(.*)"), function (m, n1, n2) n1 + " " + decodeURIComponent(n2) + " [Help]") url = url.replace(RegExp("^dactyl://help/(\\S+)#(.*)"), function (m, n1, n2) n1 + " " + decodeURIComponent(n2) + " " + _("buffer.help"))
.replace(RegExp("^dactyl://help/(\\S+)"), "$1 [Help]"); .replace(RegExp("^dactyl://help/(\\S+)"), "$1 " + _("buffer.help"));
} }
if (modified) if (modified)

View File

@@ -1010,7 +1010,7 @@ var Tabs = Module("tabs", {
tabs.tabStyle.enabled = true; tabs.tabStyle.enabled = true;
else { else {
prefs.safeSet("browser.tabs.autoHide", value === "multitab", prefs.safeSet("browser.tabs.autoHide", value === "multitab",
"See 'showtabline' option."); _("option.showtabline.safeSet"));
tabs.tabStyle.enabled = false; tabs.tabStyle.enabled = false;
} }
if (value !== "multitab" || !dactyl.has("Gecko2")) if (value !== "multitab" || !dactyl.has("Gecko2"))
@@ -1053,7 +1053,7 @@ var Tabs = Module("tabs", {
if (group[2]) if (group[2])
prefs.safeSet("browser.tabs." + group[2], prefs.safeSet("browser.tabs." + group[2],
!(valueSet["all"] ^ valueSet[group[0]]), !(valueSet["all"] ^ valueSet[group[0]]),
"See the 'activate' option"); _("option.activate.safeSet"));
return newValues; return newValues;
} }
}); });
@@ -1091,9 +1091,9 @@ var Tabs = Module("tabs", {
} }
prefs.safeSet("browser.link.open_newwindow", open, prefs.safeSet("browser.link.open_newwindow", open,
"See 'popups' option."); _("option.popups.safeSet"));
prefs.safeSet("browser.link.open_newwindow.restriction", restriction, prefs.safeSet("browser.link.open_newwindow.restriction", restriction,
"See 'popups' option."); _("option.popups.safeSet"));
return values; return values;
}, },
values: { values: {

View File

@@ -49,8 +49,11 @@ buffer.multipleMatching-1 = More than one match for %S
buffer.noClosed = No matching closed tab buffer.noClosed = No matching closed tab
buffer.noAlternate = No alternate page buffer.noAlternate = No alternate page
buffer.backgroundLoaded = Background tab loaded: %S buffer.backgroundLoaded = Background tab loaded: %S
buffer.noTitle = [No Title] buffer.noTitle = [No Title]
buffer.noName = [No Name] buffer.noName = [No Name]
buffer.help = [Help]
buffer.bookmarked = bookmarked buffer.bookmarked = bookmarked
buffer.prompt.uploadFile = Upload file: buffer.prompt.uploadFile = Upload file:
@@ -213,8 +216,15 @@ option.currentValue = Current Value
option.defaultValue = Default Value option.defaultValue = Default Value
option.bufferLocal = buffer local option.bufferLocal = buffer local
# The string 'passkeys' must appear exactly, including U0027 apostrophes # The string 'passkeys' must appear exactly, including U0027 apostrophes
option.passkeys.passedBy = passed by 'passkeys' option.passkeys.passedBy = passed by 'passkeys'
option.hintkeys.duplicate = Duplicate keys not allowed
option.showtabline.safeSet = See 'showtabline' option.
option.activate.safeSet = See the 'activate' option.
option.popups.safeSet = See the 'activate' option.
option.guioptions.safeSet = See 'guioptions' scrollbar flags.
option.visualbell.safeSet = See 'visualbell' option.
plugin.searchingFor-1 = Searching for %S plugin.searchingFor-1 = Searching for %S
plugin.searchingForIn-2 = Searching for %S in %S plugin.searchingForIn-2 = Searching for %S in %S