XUL / XML 解析错误:未定义实体
发布于 2024-09-14 03:49:43 字数 1142 浏览 4 评论 0 原文

有谁知道为什么会出现这个错误?

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://onsip/content/options/options.css"?>

<!DOCTYPE dialog SYSTEM "chrome://onsip/locale/options.dtd">

<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        id="onsip-options-dialog"
        title="OnSIP Options"
        buttons="accept, cancel"
        ondialogaccept="onsip.saveOptions()">
  <script src="chrome://onsip/content/onsip.js"/>
  <script src="chrome://onsip/content/preferences.js"/>
  <script src="chrome://onsip/content/options/options.js"/>

  <hbox flex="1">
    <listbox id="onsip-page-list" onselect="onsip.changePage(this)">
        <listitem label="&onsip.options.general.label;" selected="true" value="chrome://onsip/content/options/pages/general.xul" />
    </listbox>
    <vbox flex="1">
      <iframe flex="1" id="onsip-options-iframe"
              src="chrome://onsip/content/options/pages/general.xul"/>
    </vbox>
  </hbox>
</dialog>

代码在上面,如果有人对 XUL 有更广泛的了解,请留言,将非常感激。 S。

Does anybody know why this error is poping up ?

<?xml version="1.0"?>
<?xml-stylesheet href="chrome://onsip/content/options/options.css"?>

<!DOCTYPE dialog SYSTEM "chrome://onsip/locale/options.dtd">

<dialog xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
        id="onsip-options-dialog"
        title="OnSIP Options"
        buttons="accept, cancel"
        ondialogaccept="onsip.saveOptions()">
  <script src="chrome://onsip/content/onsip.js"/>
  <script src="chrome://onsip/content/preferences.js"/>
  <script src="chrome://onsip/content/options/options.js"/>

  <hbox flex="1">
    <listbox id="onsip-page-list" onselect="onsip.changePage(this)">
        <listitem label="&onsip.options.general.label;" selected="true" value="chrome://onsip/content/options/pages/general.xul" />
    </listbox>
    <vbox flex="1">
      <iframe flex="1" id="onsip-options-iframe"
              src="chrome://onsip/content/options/pages/general.xul"/>
    </vbox>
  </hbox>
</dialog>

the code is above, please if anybody has wider knowledge in XUL drop a note, would be very thankful. S.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

沉睡月亮 2024-09-21 03:49:43

检查 chrome://onsip/locale/options.dtd 中是否存在 &onsip.options.general.label。如果没有定义的话。

Check if &onsip.options.general.label is present in chrome://onsip/locale/options.dtd. If not define it.

迟到的我 2024-09-21 03:49:43

问题是“ru-RU”本地化不存在,因此为了解决这个问题,我刚刚为“RU”做了本地化,但仍然不知道如何设置默认本地化。

The issue was that the "ru-RU" localization was not there, So to solve this issue I have just made a localization for "RU", though still didn't get how to set a default localization .

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文