1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-01-03 17:44:10 +01:00

Automagically generate option types and default value entities for options.xml.

This commit is contained in:
Kris Maglione
2011-03-15 23:12:28 -04:00
parent 2d03f3f9ca
commit f1965c81ff
8 changed files with 167 additions and 145 deletions

View File

@@ -67,7 +67,7 @@ var Messages = Module("messages", {
catch (e) {}
// Report error so tests fail, but don't throw
if (arguments.length < 2)
if (arguments.length < 2) // Do *not* localize these strings
util.reportError(Error("Invalid locale string: " + value));
return arguments.length > 1 ? default_ : value;
},
@@ -80,7 +80,7 @@ var Messages = Module("messages", {
catch (e) {}
// Report error so tests fail, but don't throw
if (arguments.length < 3)
if (arguments.length < 3) // Do *not* localize these strings
util.reportError(Error("Invalid locale string: " + value));
return arguments.length > 2 ? default_ : value;
}