[Pkg-mozext-commits] [sage-extension] 22/54: Localize strings (bug #7444)

David Prévot taffit at moszumanska.debian.org
Fri May 1 03:10:38 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to tag sage_1_3
in repository sage-extension.

commit 20dd3b6c52982fe3c99fa5f1a21d682adceb62e6
Author: Erik Arvidsson <erik.arvidsson at gmail.com>
Date:   Wed Sep 29 18:06:50 2004 +0000

    Localize strings (bug #7444)
---
 src/sage/content/settings/settings.js | 6 +++---
 src/sage/locale/en-US/sage.properties | 5 +++++
 2 files changed, 8 insertions(+), 3 deletions(-)

diff --git a/src/sage/content/settings/settings.js b/src/sage/content/settings/settings.js
index 7bc27bb..04db7f1 100755
--- a/src/sage/content/settings/settings.js
+++ b/src/sage/content/settings/settings.js
@@ -77,13 +77,13 @@ function setDisabled() {
 function browseCss() {
 	var fpicker = Components.classes["@mozilla.org/filepicker;1"]
 					.createInstance(Components.interfaces.nsIFilePicker);
-	fpicker.init(window, "Select CSS File", fpicker.modeOpen);
-	fpicker.appendFilter("CSS File(*.css)", "*.css");
+	fpicker.init(window, strRes.getString("css_select_file"), fpicker.modeOpen);
+	fpicker.appendFilter(strRes.getString("css_css_file") + " (*.css)", "*.css");
 	fpicker.appendFilters(fpicker.filterAll);
 
 	var showResult = fpicker.show();
 	if(showResult == fpicker.returnOK) {
-		txtUserCssPath.value = fpicker.file.path;	
+		txtUserCssPath.value = fpicker.file.path;
 	}
 }
 
diff --git a/src/sage/locale/en-US/sage.properties b/src/sage/locale/en-US/sage.properties
index 6412292..33689ce 100755
--- a/src/sage/locale/en-US/sage.properties
+++ b/src/sage/locale/en-US/sage.properties
@@ -41,6 +41,11 @@ opml_export_nocreate = File creation error
 opml_select_file = Select OPML File
 opml_opml_file = OPML File
 
+
+# settings
+css_select_file = Select CSS File
+css_css_file = CSS File
+
 # Date rendering values
 
 date_sunday = Sunday

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-mozext/sage-extension.git



More information about the Pkg-mozext-commits mailing list