From fbed00a018e70fa9c764f7568cb0e75e28a8a190 Mon Sep 17 00:00:00 2001 From: lech Date: Tue, 14 Sep 2010 08:00:01 -0500 Subject: [PATCH] Added a missed content/editor.js string to the core properties for localization. --- ubiquity/chrome/content/editor.js | 4 ++-- ubiquity/chrome/locale/en-US/aboutubiquity.properties | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/ubiquity/chrome/content/editor.js b/ubiquity/chrome/content/editor.js index 87bb6d0b..1a4a96dc 100644 --- a/ubiquity/chrome/content/editor.js +++ b/ubiquity/chrome/content/editor.js @@ -188,7 +188,7 @@ function saveAs() { const {nsIFilePicker} = Ci; var fp = Cc["@mozilla.org/filepicker;1"].createInstance(nsIFilePicker); - fp.init(window, "Save your commands", nsIFilePicker.modeSave); + fp.init(window, L("ubiquity.editor.savecommands"), nsIFilePicker.modeSave); //Save as a javascript file //fp.appendFilters(nsIFilePicker.filterAll); @@ -206,7 +206,7 @@ function saveAs() { canAutoUpdate: true}); PrefCommands.setCode(editor.value = ""); - //ToLocalize + $("#editor-log").html( "

" + L("ubiquity.editor.savelogmsgp1", "" + fp.file.path + "") + "

" + L("ubiquity.editor.savelogmsgp2") + "

"); diff --git a/ubiquity/chrome/locale/en-US/aboutubiquity.properties b/ubiquity/chrome/locale/en-US/aboutubiquity.properties index 03f85188..9a8e7cc8 100644 --- a/ubiquity/chrome/locale/en-US/aboutubiquity.properties +++ b/ubiquity/chrome/locale/en-US/aboutubiquity.properties @@ -28,6 +28,7 @@ ubiquity.showhidehelp.hide=Hide Help # /chrome/content/editor.js # chrome://ubiquity/content/editor.xhtml +ubiquity.editor.savecommands=Save your commands ubiquity.editor.savelogmsgp1=The command source was saved to %S and you have been automatically subscribed to it. Any changes saved will take effect the moment you invoke Ubiquity. ubiquity.editor.savelogmsgp2=You can view and remove this subscription in your Command List.