diff options
-rw-r--r-- | common/content/dactyl.js | 4 | ||||
-rw-r--r-- | common/content/hints.js | 2 | ||||
-rw-r--r-- | common/content/statusline.js | 6 | ||||
-rw-r--r-- | common/content/tabs.js | 8 | ||||
-rw-r--r-- | common/locale/en-US/messages.properties | 10 |
5 files changed, 20 insertions, 10 deletions
diff --git a/common/content/dactyl.js b/common/content/dactyl.js index 19d89255..628ebdce 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1587,7 +1587,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { true); 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), UTF8("Only one of ‘l’ or ‘r’ allowed")) @@ -1693,7 +1693,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { { setter: function (value) { prefs.safeSet("accessibility.typeaheadfind.enablesound", !value, - "See 'visualbell' option"); + _("option.visualbell.safeSet")); return value; } }); diff --git a/common/content/hints.js b/common/content/hints.js index 53582cf9..079cdadf 100644 --- a/common/content/hints.js +++ b/common/content/hints.js @@ -1231,7 +1231,7 @@ var Hints = Module("hints", { validator: function (value) { let values = events.fromString(value).map(events.closure.toString); return Option.validIf(array.uniq(values).length === values.length, - "Duplicate keys not allowed"); + _("option.hintkeys.duplicate")); } }); diff --git a/common/content/statusline.js b/common/content/statusline.js index a4b3280c..b36b238f 100644 --- a/common/content/statusline.js +++ b/common/content/statusline.js @@ -247,11 +247,11 @@ var StatusLine = Module("statusline", { if (url == "about:blank") { if (!buffer.title) - url = "[No Name]"; + url = _("buffer.noName"); } else { - url = url.replace(RegExp("^dactyl://help/(\\S+)#(.*)"), function (m, n1, n2) n1 + " " + decodeURIComponent(n2) + " [Help]") - .replace(RegExp("^dactyl://help/(\\S+)"), "$1 [Help]"); + url = url.replace(RegExp("^dactyl://help/(\\S+)#(.*)"), function (m, n1, n2) n1 + " " + decodeURIComponent(n2) + " " + _("buffer.help")) + .replace(RegExp("^dactyl://help/(\\S+)"), "$1 " + _("buffer.help")); } if (modified) diff --git a/common/content/tabs.js b/common/content/tabs.js index 16e5c992..f2665189 100644 --- a/common/content/tabs.js +++ b/common/content/tabs.js @@ -1010,7 +1010,7 @@ var Tabs = Module("tabs", { tabs.tabStyle.enabled = true; else { prefs.safeSet("browser.tabs.autoHide", value === "multitab", - "See 'showtabline' option."); + _("option.showtabline.safeSet")); tabs.tabStyle.enabled = false; } if (value !== "multitab" || !dactyl.has("Gecko2")) @@ -1053,7 +1053,7 @@ var Tabs = Module("tabs", { if (group[2]) prefs.safeSet("browser.tabs." + group[2], !(valueSet["all"] ^ valueSet[group[0]]), - "See the 'activate' option"); + _("option.activate.safeSet")); return newValues; } }); @@ -1091,9 +1091,9 @@ var Tabs = Module("tabs", { } prefs.safeSet("browser.link.open_newwindow", open, - "See 'popups' option."); + _("option.popups.safeSet")); prefs.safeSet("browser.link.open_newwindow.restriction", restriction, - "See 'popups' option."); + _("option.popups.safeSet")); return values; }, values: { diff --git a/common/locale/en-US/messages.properties b/common/locale/en-US/messages.properties index 5194f358..712e5402 100644 --- a/common/locale/en-US/messages.properties +++ b/common/locale/en-US/messages.properties @@ -49,8 +49,11 @@ buffer.multipleMatching-1 = More than one match for %S buffer.noClosed = No matching closed tab buffer.noAlternate = No alternate page buffer.backgroundLoaded = Background tab loaded: %S + buffer.noTitle = [No Title] buffer.noName = [No Name] +buffer.help = [Help] + buffer.bookmarked = bookmarked buffer.prompt.uploadFile = Upload file: @@ -213,8 +216,15 @@ option.currentValue = Current Value option.defaultValue = Default Value option.bufferLocal = buffer local + # The string 'passkeys' must appear exactly, including U0027 apostrophes 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.searchingForIn-2 = Searching for %S in %S |