diff options
author | Doug Kearns <dougkearns@gmail.com> | 2011-03-07 00:28:30 +1100 |
---|---|---|
committer | Doug Kearns <dougkearns@gmail.com> | 2011-03-07 00:28:30 +1100 |
commit | aaa3d9fa144e7f349e953adeb524a609e36f80a8 (patch) | |
tree | 9c0d6bb17c2d642dd50c2b56eb82c4334c59cba2 /common | |
parent | 10d08d2833edcdb7f0f73d8cbbe8fa4e0c316449 (diff) | |
download | pentadactyl-aaa3d9fa144e7f349e953adeb524a609e36f80a8.tar.gz |
Move some more message strings to the properties file.
Diffstat (limited to 'common')
-rw-r--r-- | common/content/dactyl.js | 14 | ||||
-rw-r--r-- | common/locale/en-US/messages.properties | 6 |
2 files changed, 13 insertions, 7 deletions
diff --git a/common/content/dactyl.js b/common/content/dactyl.js index dae302d9..6296b9ac 100644 --- a/common/content/dactyl.js +++ b/common/content/dactyl.js @@ -1072,7 +1072,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { function sourceDirectory(dir) { dactyl.assert(dir.isReadable(), _("io.notReadable", dir.path)); - dactyl.log("Sourcing plugin directory: " + dir.path + "...", 3); + dactyl.log(_("dactyl.sourcingPlugins", dir.path), 3); let loadplugins = options.get("loadplugins"); if (args) @@ -1096,7 +1096,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { let dirs = io.getRuntimeDirectories("plugins"); if (dirs.length == 0) { - dactyl.log("No user plugin directory found", 3); + dactyl.log(_("dactyl.noPluginDir"), 3); return; } @@ -1126,7 +1126,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { let verbose = localPrefs.get("loglevel", 0); if (!level || level <= verbose) { - if (isObject(msg)) + if (isObject(msg) && !isinstance(msg, _)) msg = util.objectToString(msg, false); services.console.logStringMessage(config.name + ": " + msg); @@ -2072,7 +2072,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { load: function () { dactyl.triggerObserver("load"); - dactyl.log("All modules loaded", 3); + dactyl.log(_("dactyl.modulesLoaded"), 3); dactyl.timeout(function () { try { @@ -2092,7 +2092,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { dactyl.echoerr(_("dactyl.parsingCommandLine", e)); } - dactyl.log("Command-line options: " + util.objectToString(dactyl.commandLineOptions), 3); + dactyl.log(_("dactyl.commandlineOpts", util.objectToString(dactyl.commandLineOptions)), 3); // first time intro message const firstTime = "extensions." + config.name + ".firsttime"; @@ -2136,7 +2136,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { services.environment.set("MY_" + config.idName + "RC", rcFile.path); } else - dactyl.log("No user RC file found", 3); + dactyl.log(_("dactyl.noRCFile"), 3); } if (options["exrc"] && !dactyl.commandLineOptions.rcFile) { @@ -2177,7 +2177,7 @@ var Dactyl = Module("dactyl", XPCOM(Ci.nsISupportsWeakReference, ModuleBase), { }, 100); statusline.update(); - dactyl.log(config.appName + " fully initialized", 0); + dactyl.log(_("dactyl.initialized", config.appName), 0); dactyl.initialized = true; } }); diff --git a/common/locale/en-US/messages.properties b/common/locale/en-US/messages.properties index ca91f3b7..141066c4 100644 --- a/common/locale/en-US/messages.properties +++ b/common/locale/en-US/messages.properties @@ -60,6 +60,12 @@ command.let.invalidExpression-1 = E15: Invalid expression: %S dactyl.parsingCommandLine-1 = Parsing command line options: %S dactyl.notCommand-2 = E492: Not a %S command: %S +dactyl.sourcingPlugins-1 = Sourcing plugin directory: %S... +dactyl.noPluginDir = No user plugin directory found +dactyl.modulesLoaded = All modules loaded +dactyl.commandlineOpts-1 = Command-line options: %S +dactyl.noRCFile = No user RC file found +dactyl.initialized-1 = %S fully initialized dialog.notAvailable-1 = Dialog %S not available |