[Pkg-mozext-commits] [sage-extension] 06/20: opml wizzard localization
David Prévot
taffit at moszumanska.debian.org
Fri May 1 03:10:25 UTC 2015
This is an automated email from the git hooks/post-receive script.
taffit pushed a commit to tag sage_1_2
in repository sage-extension.
commit f76fbc50fcddf8dafb294834a0c6a381994b2f9f
Author: Peter Andrews <petea at jhu.edu>
Date: Tue Jun 29 02:00:31 2004 +0000
opml wizzard localization
---
src/install.js | 2 +-
src/install.rdf | 2 +-
src/sage/content/opml/opml.js | 19 +++++++++++--------
src/sage/content/opml/opml.xul | 4 ++++
src/sage/locale/en-US/sage.dtd | 2 +-
src/sage/locale/en-US/sage.properties | 12 ++++++++++++
src/sage/locale/fr-FR/sage.dtd | 2 +-
src/sage/locale/fr-FR/sage.properties | 13 +++++++++++++
src/sage/locale/hu-HU/sage.dtd | 2 +-
src/sage/locale/hu-HU/sage.properties | 13 +++++++++++++
src/sage/locale/ja-JP/sage.dtd | 2 +-
src/sage/locale/ja-JP/sage.properties | 13 +++++++++++++
src/sage/skin/classic/sage.css | 6 +++++-
13 files changed, 77 insertions(+), 15 deletions(-)
diff --git a/src/install.js b/src/install.js
index 551f59e..6a5b53b 100755
--- a/src/install.js
+++ b/src/install.js
@@ -1,6 +1,6 @@
const APP_NAME = "Sage";
const APP_CHROME_NAME = "sage";
-const APP_VERSION = "1.1";
+const APP_VERSION = "1.2";
const APP_FILE = "sage.jar";
const APP_CONTENTS_PATH = "content/";
const APP_SKIN_CLASSIC_PATH = "skin/classic/";
diff --git a/src/install.rdf b/src/install.rdf
index b056567..c69d5f4 100644
--- a/src/install.rdf
+++ b/src/install.rdf
@@ -6,7 +6,7 @@
<em:id>{a6ca9b3b-5e52-4f47-85d8-cca35bb57596}</em:id>
<em:name>Sage</em:name>
-<em:version>1.1</em:version>
+<em:version>1.2</em:version>
<em:description>A lightweight RSS and ATOM feed aggregator.</em:description>
<em:creator>The Sage Project</em:creator>
<em:contributor>Peter Andrews</em:contributor>
diff --git a/src/sage/content/opml/opml.js b/src/sage/content/opml/opml.js
index dc13b85..9ae04d6 100755
--- a/src/sage/content/opml/opml.js
+++ b/src/sage/content/opml/opml.js
@@ -7,6 +7,7 @@ var wizMode = WIZ_MODE_IMPORT;
var winMain;
var txtImportFile;
var txtExportFile;
+var strRes;
function init() {
@@ -14,6 +15,8 @@ function init() {
initServices();
initBMService();
+ strRes = document.getElementById("strRes");
+
winMain = document.getElementById("winMain");
txtImportFile = document.getElementById("txtImportFile");
txtExportFile = document.getElementById("txtExportFile");
@@ -23,11 +26,11 @@ function finish() {
if(wizMode == WIZ_MODE_IMPORT) {
if(!checkFilePath(txtImportFile.value, true)) return false;
if(!importOPML()) return false;
- alert("Import Complete");
+ alert(strRes.getString("opml_import_done"));
} else {
if(!checkFilePath(txtExportFile.value, false)) return false;
exportOPML();
- alert("Export Complete");
+ alert(strRes.getString("opml_export_done"));
}
return true;
@@ -63,7 +66,7 @@ function browseExportFile() {
function checkFilePath(aFilePath, aExistCheck) {
if(!aFilePath) {
- alert("Please choose an OPML file.");
+ alert(strRes.getString("opml_path_blank"));
return false;
}
@@ -73,13 +76,13 @@ function checkFilePath(aFilePath, aExistCheck) {
if(aExistCheck) {
if(!tmpFile.exists()) {
// �t�@�C�������݂��Ȃ�
- alert("The specified file does not exist.");
+ alert(strRes.getString("opml_path_nofile"));
return false;
}
}
} catch(e) {
// �s���ȃt�@�C���p�X
- alert("Invalid file path.")
+ alert(strRes.getString("opml_path_invalid"));
return false;
}
@@ -100,13 +103,13 @@ function importOPML() {
httpReq.overrideMimeType("application/xml");
httpReq.send(null);
} catch(e) {
- alert("Load Failure");
+ alert(strRes.getString("opml_import_fail"));
return false;
}
opmlDoc = httpReq.responseXML;
if(opmlDoc.documentElement.localName != "opml") {
- alert("This does not appear to be an OPML file.");
+ alert(strRes.getString("opml_import_badfile"));
return false;
}
var rssReaderFolderID = CommonFunc.getPrefValue(CommonFunc.RSS_READER_FOLDER_ID, "str", "NC:BookmarksRoot");
@@ -183,7 +186,7 @@ function exportOPML() {
stream.flush();
stream.close();
} catch(e) {
- alert("File creation error");
+ alert(strRes.getString("opml_export_nocreate"));
}
}
diff --git a/src/sage/content/opml/opml.xul b/src/sage/content/opml/opml.xul
index 7215246..58613bb 100755
--- a/src/sage/content/opml/opml.xul
+++ b/src/sage/content/opml/opml.xul
@@ -8,6 +8,10 @@
<script type="application/x-javascript" src="chrome://sage/content/commonfunc.js"></script>
<script type="application/x-javascript" src="chrome://sage/content/opml/opml.js"></script>
+<stringbundleset>
+ <stringbundle id="strRes" src="chrome://sage/locale/sage.properties"/>
+</stringbundleset>
+
<wizardpage pageid="pageStart" next="pageImport"
label="&pageStart.label;" description="&pageStart.desc;">
<spacer height="40px"/>
diff --git a/src/sage/locale/en-US/sage.dtd b/src/sage/locale/en-US/sage.dtd
index 4593c43..94fa6f6 100755
--- a/src/sage/locale/en-US/sage.dtd
+++ b/src/sage/locale/en-US/sage.dtd
@@ -1,5 +1,5 @@
<!ENTITY sage.label "Sage">
-<!ENTITY sage.version "1.1">
+<!ENTITY sage.version "1.2">
<!ENTITY sage.toolbarLabel "Sage">
<!ENTITY sage.sidebarTitle "Sage">
diff --git a/src/sage/locale/en-US/sage.properties b/src/sage/locale/en-US/sage.properties
index 4b3e381..f460de6 100755
--- a/src/sage/locale/en-US/sage.properties
+++ b/src/sage/locale/en-US/sage.properties
@@ -9,6 +9,18 @@ CHECK_UPDATE = Check Feeds
GET_RSS_TITLE= Get Feed Title
+# OPML wizzard
+
+opml_import_done = Import Complete
+opml_export_done = Export Complete
+opml_path_blank = Please choose an OPML file.
+opml_path_nofile = The specified file does not exist.
+opml_path_invalid = Invalid file path.
+opml_import_fail = Load Failure
+opml_import_badfile = This does not appear to be an OPML file.
+opml_export_nocreate = File creation error
+
+
# Date rendering values
date_sunday = Sunday
diff --git a/src/sage/locale/fr-FR/sage.dtd b/src/sage/locale/fr-FR/sage.dtd
index e01e240..b79c610 100644
--- a/src/sage/locale/fr-FR/sage.dtd
+++ b/src/sage/locale/fr-FR/sage.dtd
@@ -1,7 +1,7 @@
<!-- maintained by Guillaume Criloux [guillaume.criloux at laposte.net] -->
<!ENTITY sage.label "Sage">
-<!ENTITY sage.version "1.0">
+<!ENTITY sage.version "1.2">
<!ENTITY sage.toolbarLabel "Sage">
<!ENTITY sage.sidebarTitle "Sage">
diff --git a/src/sage/locale/fr-FR/sage.properties b/src/sage/locale/fr-FR/sage.properties
index 20248cd..e151b8c 100644
--- a/src/sage/locale/fr-FR/sage.properties
+++ b/src/sage/locale/fr-FR/sage.properties
@@ -9,6 +9,19 @@ CHECK_UPDATE = V\u00e9rification des fils
GET_RSS_TITLE= Trouver le nom du fil
+# OPML wizzard
+
+opml_import_done = Import Complete
+opml_export_done = Export Complete
+opml_path_blank = Please choose an OPML file.
+opml_path_nofile = The specified file does not exist.
+opml_path_invalid = Invalid file path.
+opml_import_fail = Load Failure
+opml_import_badfile = This does not appear to be an OPML file.
+opml_export_nocreate = File creation error
+
+
+
# Date rendering values
date_sunday = Sunday
diff --git a/src/sage/locale/hu-HU/sage.dtd b/src/sage/locale/hu-HU/sage.dtd
index 2a960be..f4b8f30 100755
--- a/src/sage/locale/hu-HU/sage.dtd
+++ b/src/sage/locale/hu-HU/sage.dtd
@@ -1,7 +1,7 @@
<!-- maintained by Feher Janos [feher.janos at mindworks.hu] -->
<!ENTITY sage.label "Sage">
-<!ENTITY sage.version "1.1">
+<!ENTITY sage.version "1.2">
<!ENTITY sage.toolbarLabel "Sage">
<!ENTITY sage.sidebarTitle "Sage">
diff --git a/src/sage/locale/hu-HU/sage.properties b/src/sage/locale/hu-HU/sage.properties
index b0da3ca..a903f0c 100755
--- a/src/sage/locale/hu-HU/sage.properties
+++ b/src/sage/locale/hu-HU/sage.properties
@@ -9,6 +9,19 @@ CHECK_UPDATE = Friss
GET_RSS_TITLE= RSS c�m let�lt�se
+# OPML wizzard
+
+opml_import_done = Import Complete
+opml_export_done = Export Complete
+opml_path_blank = Please choose an OPML file.
+opml_path_nofile = The specified file does not exist.
+opml_path_invalid = Invalid file path.
+opml_import_fail = Load Failure
+opml_import_badfile = This does not appear to be an OPML file.
+opml_export_nocreate = File creation error
+
+
+
# Date rendering values
date_sunday = Sunday
diff --git a/src/sage/locale/ja-JP/sage.dtd b/src/sage/locale/ja-JP/sage.dtd
index 83dec40..50e4a54 100755
--- a/src/sage/locale/ja-JP/sage.dtd
+++ b/src/sage/locale/ja-JP/sage.dtd
@@ -1,5 +1,5 @@
<!ENTITY sage.label "RSS リーダパネル">
-<!ENTITY sage.version "1.1">
+<!ENTITY sage.version "1.2">
<!ENTITY sage.toolbarLabel "RSS リーダ">
<!ENTITY sage.sidebarTitle "RSS リーダ">
diff --git a/src/sage/locale/ja-JP/sage.properties b/src/sage/locale/ja-JP/sage.properties
index 7faae6b..227c706 100755
--- a/src/sage/locale/ja-JP/sage.properties
+++ b/src/sage/locale/ja-JP/sage.properties
@@ -9,6 +9,19 @@ CHECK_UPDATE = \u66f4\u65b0\u30c1\u30a7\u30c3\u30af
GET_RSS_TITLE= RSS \u30bf\u30a4\u30c8\u30eb\u306e\u53d6\u5f97
+# OPML wizzard
+
+opml_import_done = Import Complete
+opml_export_done = Export Complete
+opml_path_blank = Please choose an OPML file.
+opml_path_nofile = The specified file does not exist.
+opml_path_invalid = Invalid file path.
+opml_import_fail = Load Failure
+opml_import_badfile = This does not appear to be an OPML file.
+opml_export_nocreate = File creation error
+
+
+
# Date rendering values
date_sunday = Sunday
diff --git a/src/sage/skin/classic/sage.css b/src/sage/skin/classic/sage.css
index 8b7ec84..827096f 100755
--- a/src/sage/skin/classic/sage.css
+++ b/src/sage/skin/classic/sage.css
@@ -21,6 +21,9 @@ treechildren::-moz-tree-image(rss, error) {
-moz-image-region: auto !important;
list-style-image: url("chrome://sage/skin/icon/error.gif") !important;
}
+treechildren::-moz-tree-cell-text(rss, updated) {
+ font-weight: bold !important;
+}
#bookmarksTreeBox,
#rssItemListBoxBox {
@@ -28,10 +31,11 @@ treechildren::-moz-tree-image(rss, error) {
}
#rssItemListBox > listitem {
+ font-weight: bold;
}
#rssItemListBox > listitem[visited="true"] {
- color: #39A;
+ font-weight: normal;
}
--
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