1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-02-12 21:25:46 +01:00

Move some more message strings to the properties file.

This commit is contained in:
Doug Kearns
2011-03-10 22:06:29 +11:00
parent 0196d116a1
commit 11623d4f8b
10 changed files with 35 additions and 18 deletions

View File

@@ -181,12 +181,12 @@ var Util = Module("Util", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference]),
// check for chars not in the accepted range
this.assert(RegExp("^[" + accepted + "-]+$").test(list),
"Character list outside the range " + accepted.quote());
_("error.charsOutsideRange", accepted.quote()));
// check for illegal ranges
for (let [match] in this.regexp.iterate(/.-./g, list))
this.assert(match.charCodeAt(0) <= match.charCodeAt(2),
"Invalid character range: " + list.slice(list.indexOf(match)))
_("error.invalidCharRange", list.slice(list.indexOf(match))));
return RegExp("[" + util.regexp.escape(list) + "]");
},