我有一個XULRunner應用程序。它主要是工作,但我有一個問題。應用程序中有一些報告以HTML表單的形式實現。用戶的選項之一是輸出爲CSV格式。在Firefox中,用戶被要求保存文件或打開它(在Excel或其他)。在XULRunner的應用程序,我得到含有彈出:從XULRunner瀏覽器標籤打開CSV文件
XML Parsing Error: undefined entity
Location: chrome://mozapps/content/downloads/unknownContentType.xul
Line Number 30, Column 18: &intro.label;
這似乎是與品牌所討論here:
我想我已經遵循的指示。他們在地方有點模糊。以下是我有:
chrome/chrome.manifest
包含:
locale branding en-US chrome/locale/branding/
content branding chrome/branding/
chrome/branding/
包含以下文件:about.png
,icon48.png
,icon64.png
chrome/locale/branding/brand.dtd
包含:
<!ENTITY brandShortName "ArcaMax EC">
<!ENTITY brandFullName "ArcaMax EC">
<!ENTITY vendorShortName "ArcaMax">
<!ENTITY trademarkInfo.part1 " ">
chrome/locale/branding/brand.properties
包含:
brandShortName=EC4
brandFullName=ArcaMax EC4
vendorShortName=ArcaMax
homePageSingleStartMain=Firefox Start, a fast home page with built-in search
homePageImport=Import your home page from %S
homePageMigrationPageTitle=Home Page Selection
homePageMigrationDescription=Please select the home page you wish to use:
syncBrandShortName=Sync
chrome/locale/branding/unknownContentType.dtd
包含:
<!ENTITY intro.label "You have chosen to open">
<!ENTITY from.label "from:">
<!ENTITY actionQuestion.label "What should &brandShortName; do with this file?">
<!ENTITY openWith.label "Open with">
<!ENTITY openWith.accesskey "o">
<!ENTITY other.label "Other…">
<!ENTITY saveFile.label "Save File">
<!ENTITY saveFile.accesskey "s">
<!ENTITY rememberChoice.label "Do this automatically for files like this from now on.">
<!ENTITY rememberChoice.accesskey "a">
<!ENTITY whichIsA.label "which is a:">
<!ENTITY chooseHandlerMac.label "Choose…">
<!ENTITY chooseHandlerMac.accesskey "C">
<!ENTITY chooseHandler.label "Browse…">
<!ENTITY chooseHandler.accesskey "B">
<!ENTITY unknownPromptText.label "Would you like to save this file?">
添加chrome/locale/branding/unknownContentType.dtd
是我的一個猜測。我在firefox源代碼樹中找到了該文件。
任何想法?
修復它,謝謝 – nicktook