1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-06 18:44:14 +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

@@ -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)