阅读:9070回复:9
救命,没想到连ieview汉化都出问题,怎么办
没想到连ieview汉化都出问题,怎么办
FF状态栏下面出现红色提示:<!DOCTYPE window SYSTEM "chrome://ieview/locale/ieview.dtd"> 请帮我看看到底出错在哪? install.js汉化后的完整文件(只替换了zh-CN) // $Header: /cvs/ieview/ieview/install.js,v 1.13 2005/01/29 22:07:57 roub Exp $ const APP_DISPLAY_NAME = "IE View"; const APP_NAME = "ieview"; const APP_PACKAGE = "/Paul Roub/ieview"; const APP_VERSION = "0.86"; const APP_JAR_FILE = "ieview.jar"; const APP_CONTENT_FOLDER = "content/"; const APP_LOCALE = "zh-CN"; const APP_LOCALE_FOLDER = "locale/" + APP_LOCALE + "/ieview/"; const APP_SUCCESS_MESSAGE = "New menuitems will appear on the link and page context menus.\n\n"; var chromef, chromeFlag; initInstall(APP_NAME, APP_PACKAGE, APP_VERSION); chromef = getFolder("Profile", "chrome"); chromeFlag = PROFILE_CHROME; setPackageFolder(chromef); var err = addFile("Paul Roub", APP_VERSION, "chrome/" + APP_JAR_FILE, chromef, null); if (err == SUCCESS) { var jar = getFolder(chromef, APP_JAR_FILE); registerChrome(CONTENT | chromeFlag, jar, APP_CONTENT_FOLDER); registerChrome(LOCALE | chromeFlag, jar, APP_LOCALE_FOLDER); err = performInstall(); if(err == SUCCESS || error == 999) { alert(APP_NAME + " " + APP_VERSION + " has been succesfully installed.\n" +APP_SUCCESS_MESSAGE +"Please restart your browser before continuing."); } else { alert("Install failed. Error code:" + err); cancelInstall(err); } } else { alert("Failed to create " +APP_JAR_FILE +"\n" +"You probably don't have appropriate permissions \n" +"(write access to phoenix/chrome directory). \n"); cancelInstall(err); } install.rdf 汉化后的完整文件(只替换了zh-CN) <?xml version="1.0"?> <RDF xmlns="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:em="http://www.mozilla.org/2004/em-rdf#"> <Description about="urn:mozilla:install-manifest"> <em:id>{6e84150a-d526-41f1-a480-a67d3fed910d}</em:id> <em:name>ieview</em:name> <em:version>0.86</em:version> <em:description>Open pages in IE via Firefox menus</em:description> <em:creator>Paul Roub</em:creator> <em:contributor>French localization: Thomas Bertels</em:contributor> <em:contributor>German translation: Bart</em:contributor> <em:contributor>German translation: Andreas Boettcher</em:contributor> <em:contributor>Russian translation: Nik Skyfly</em:contributor> <em:contributor>Traditional Chinese translation: Willy Young</em:contributor> <em:contributor>Spanish translation: micmic</em:contributor> <em:contributor>Italian translation: Giovanni Francesco SOLONE</em:contributor> <em:contributor>Polish translation: Bartosz Piec</em:contributor> <em:contributor>Dutch translation: Gert-Paul van der Beek</em:contributor> <em:homepageURL>http://ieview.mozdev.org/</em:homepageURL> <em:optionsURL>chrome://ieview/content/ieviewsettings.xul</em:optionsURL> <em:file> <Description about="urn:mozilla:extension:file:ieview.jar"> <em:package>content/</em:package> <em:locale>locale/zh-CN/ieview/</em:locale> <em:locale>locale/fr-FR/ieview/</em:locale> <em:locale>locale/de-DE/ieview/</em:locale> <em:locale>locale/de-AT/ieview/</em:locale> <em:locale>locale/ru-RU/ieview/</em:locale> <em:locale>locale/zh-TW/ieview/</em:locale> <em:locale>locale/es-ES/ieview/</em:locale> <em:locale>locale/it-IT/ieview/</em:locale> <em:locale>locale/pl-PL/ieview/</em:locale> <em:locale>locale/nl-NL/ieview/</em:locale> </Description> </em:file> <em:targetApplication> <Description> <em:id>{ec8030f7-c20a-464f-9b0e-13a3a9e97384}</em:id> <em:minVersion>0.8</em:minVersion> <em:maxVersion>1.0</em:maxVersion> </Description> </em:targetApplication> <em:targetApplication> <Description> <em:id>{86c18b42-e466-45a9-ae7a-9b95ba6f5640}</em:id> <em:minVersion>1.7</em:minVersion> <em:maxVersion>1.8</em:maxVersion> </Description> </em:targetApplication> </Description> </RDF> \locale\下新建了zh-CN文件夹(3个文件拷贝自en-US) contents.rdf汉化后的完整文件(只替换了zh-CN) <?xml version="1.0"?> <RDF:RDF xmlns:RDF="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:chrome="http://www.mozilla.org/rdf/chrome#"> <!-- list all the packages being supplied by this jar --> <RDF:Seq about="urn:mozilla:locale:root"> <RDF:li resource="urn:mozilla:locale:zh-CN"/> </RDF:Seq> <!-- locale information --> <RDF:Description about="urn:mozilla:locale:zh-CN" chrome:displayName="简体中文(CN)" chrome:author="Paul Roub" chrome:name="zh-CN"> <chrome:packages> <RDF:Seq about="urn:mozilla:locale:zh-CN:packages"> <RDF:li resource="urn:mozilla:locale:zh-CN:ieview"/> </RDF:Seq> </chrome:packages> </RDF:Description> </RDF:RDF> ieview.dtd 汉化后的完整文件如下: <!ENTITY ieview.popup-ieview-do-view "使用 IE 查看此网页"> <!ENTITY ieview.popup-ieview-do-viewlink "使用 IE 打开此链接"> <!ENTITY ieview.label "卸载 IE View"> <!ENTITY ieview.prefdialogtitle "IE View 选项"> <!ENTITY ieview.prefdialogloclabel "IE 所在位置"> <!ENTITY ieview.prefdialoglocchoose "查找"> <!ENTITY ieview.prefdialoglocdesc1 "如果您填写了下面这个位置,IE View 就会根据这个位置的设定来启动 Internet Explorer。"> <!ENTITY ieview.prefdialoglocdesc2 "假若您将此位置留白,IE View 便会自行寻找 IE View 便会自动查找 Internet Explorer的位置。"> 用的编辑工具:UniRed2.04 |
|
|
1楼#
发布于:2005-02-06 20:42
上面附件是我的汉化后档案
|
|
|
2楼#
发布于:2005-02-06 20:42
搞定了,太粗心了
|
|
|
3楼#
发布于:2005-02-06 20:42
viewtheard:搞定了,太粗心了回到原帖 能请教是怎么回事吗?我也是出现这个错误! |
|
4楼#
发布于:2005-02-06 20:42
contents.rdf
<RDF:Description about="urn:mozilla:locale:zh-CN" chrome:displayName="简体中文(CN)" chrome:author="Paul Roub" chrome:name="zh-CN"> 冲突! |
|
|
5楼#
发布于:2005-02-06 20:42
viewtheard:contents.rdf ???老大,能不能稍微详细一点?谢谢! |
|
6楼#
发布于:2005-02-06 20:42
chrome:author="Paul Roub"
作者默认引用英文包 chrome:displayName="简体中文(CN)" chrome:name="zh-CN"> 同时我们又要FF引用中文包 FF就报错了。 |
|
|
7楼#
发布于:2005-02-06 20:42
简单点说就是你添加上汉化作者的信息就可以了。
|
|
|
8楼#
发布于:2005-02-06 20:42
最简单方法,你找几种语言的用一个扩展,对比一下就知道该改哪了。
|
|
|
9楼#
发布于:2005-02-06 20:42
呵呵,搞定了,谢谢了哦!
|
|