]> git.donarmstrong.com Git - dactyl.git/blobdiff - common/content/mow.js
Import 1.0b7.1 supporting Firefox up to 8.*
[dactyl.git] / common / content / mow.js
index 9ace65a37bb3d99560e6768c9f65cb7b77cedd55..5c7a28c698e9c1a09cc859f194261cde1382f06d 100644 (file)
@@ -53,16 +53,16 @@ var MOW = Module("mow", {
                     <popupset>
                         <menupopup id="dactyl-contextmenu" highlight="Events" events="contextEvents">
                             <menuitem id="dactyl-context-copylink"
-                                      label="Copy Link Location" dactyl:group="link"
+                                      label={_("mow.contextMenu.copyLink")} dactyl:group="link"
                                       oncommand="goDoCommand('cmd_copyLink');"/>
                             <menuitem id="dactyl-context-copypath"
-                                      label="Copy File Path" dactyl:group="link path"
+                                      label={_("mow.contextMenu.copyPath")} dactyl:group="link path"
                                       oncommand="dactyl.clipboardWrite(document.popupNode.getAttribute('path'));"/>
                             <menuitem id="dactyl-context-copy"
-                                      label="Copy" dactyl:group="selection"
+                                      label={_("mow.contextMenu.copy")} dactyl:group="selection"
                                       command="cmd_copy"/>
                             <menuitem id="dactyl-context-selectall"
-                                      label="Select All"
+                                      label={_("mow.contextMenu.selectAll")}
                                       command="cmd_selectAll"/>
                         </menupopup>
                     </popupset>
@@ -131,8 +131,8 @@ var MOW = Module("mow", {
             catch (e) {
                 util.reportError(e);
                 util.dump(data);
-                this.messages.push(data);
             }
+            this.messages.push(data);
         }
         else {
             let style = isString(data) ? "pre" : "nowrap";
@@ -278,11 +278,11 @@ var MOW = Module("mow", {
         let elem = this.widget.contentDocument.documentElement;
 
         if (showHelp)
-            this.widgets.message = ["MoreMsg", "-- More -- SPACE/<C-f>/j: screen/page/line down, <C-b>/<C-u>/k: up, q: quit"];
+            this.widgets.message = ["MoreMsg", _("mow.moreHelp")];
         else if (force || (options["more"] && Buffer.isScrollable(elem, 1)))
-            this.widgets.message = ["MoreMsg", "-- More --"];
+            this.widgets.message = ["MoreMsg", _("mow.more")];
         else
-            this.widgets.message = ["Question", "Press ENTER or type command to continue"];
+            this.widgets.message = ["Question", _("mow.continue")];
     },
 
     visible: Modes.boundProperty({
@@ -311,7 +311,7 @@ var MOW = Module("mow", {
         mappings.add([modes.COMMAND],
             ["g<lt>"], "Redisplay the last command output",
             function () {
-                dactyl.assert(commandline.lastOutput, _("mow.noPreviousOutput"));
+                dactyl.assert(mow.lastOutput, _("mow.noPreviousOutput"));
                 mow.echo(mow.lastOutput, "Normal");
             });
 
@@ -393,3 +393,5 @@ var MOW = Module("mow", {
             "boolean", true);
     }
 });
+
+// vim: set fdm=marker sw=4 ts=4 et: