oops forgot to add files bustage fix

This commit is contained in:
ben%bengoodger.com 2004-04-21 09:19:54 +00:00
Родитель d01c25f6a6
Коммит 5ba4ac1b0b
3 изменённых файлов: 166 добавлений и 0 удалений

Просмотреть файл

@ -0,0 +1,80 @@
var gMismatchDialog = {
_extensions: [],
init: function ()
{
for (var i = 0; i < window.arguments.length; ++i)
this._extensions.push(eval(window.arguments[i]));
var incompatible = document.getElementById("incompatible");
for (var i = 0; i < this._extensions.length; ++i) {
var extension = this._extensions[i];
var listitem = document.createElement("listitem");
listitem.setAttribute("label", extension.name + " " + extension.version);
incompatible.appendChild(listitem);
}
var strings = document.getElementById("extensionsStrings");
var accept = document.documentElement.getButton("accept");
accept.label = strings.getString("mismatchCheckNow");
var cancel = document.documentElement.getButton("cancel");
cancel.label = strings.getString("mismatchDontCheck");
},
uninit: function ()
{
},
cancel: function ()
{
window.close();
},
accept: function ()
{
var em = Components.classes["@mozilla.org/extension-manager;1"]
.getService(Components.interfaces.nsIExtensionManager);
openDialog("chrome://mozapps/content/extensions/update.xul",
"", "chrome,modal", "extensions", em, null);
}
};
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is The Extension Manager.
#
# The Initial Developer of the Original Code is Ben Goodger.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Ben Goodger <ben@bengoodger.com>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****

Просмотреть файл

@ -0,0 +1,77 @@
<?xml version="1.0"?>
# -*- Mode: Java; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 4 -*-
# Version: MPL 1.1/GPL 2.0/LGPL 2.1
#
# The contents of this file are subject to the Mozilla Public License Version
# 1.1 (the "License"); you may not use this file except in compliance with
# the License. You may obtain a copy of the License at
# http://www.mozilla.org/MPL/
#
# Software distributed under the License is distributed on an "AS IS" basis,
# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
# for the specific language governing rights and limitations under the
# License.
#
# The Original Code is The Extension Manager.
#
# The Initial Developer of the Original Code is Ben Goodger.
# Portions created by the Initial Developer are Copyright (C) 2004
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
# Ben Goodger <ben@bengoodger.com>
#
# Alternatively, the contents of this file may be used under the terms of
# either the GNU General Public License Version 2 or later (the "GPL"), or
# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
# in which case the provisions of the GPL or the LGPL are applicable instead
# of those above. If you wish to allow use of your version of this file only
# under the terms of either the GPL or the LGPL, and not to allow others to
# use your version of this file under the terms of the MPL, indicate your
# decision by deleting the provisions above and replace them with the notice
# and other provisions required by the GPL or the LGPL. If you do not delete
# the provisions above, a recipient may use your version of this file under
# the terms of any one of the MPL, the GPL or the LGPL.
#
# ***** END LICENSE BLOCK *****
<?xml-stylesheet href="chrome://global/skin/" type="text/css"?>
<!DOCTYPE dialog [
<!ENTITY % updateDTD SYSTEM "chrome://mozapps/locale/extensions/mismatch.dtd">
<!ENTITY % brandDTD SYSTEM "chrome://global/locale/brand.dtd">
%updateDTD;
%brandDTD;
]>
<dialog id="mismatch" title="&mismatch.title;"
style="width: 30em;"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
buttons="accept,cancel"
onload="gMismatchDialog.init();"
onunload="gMismatchDialog.uninit();"
ondialogcancel="gMismatchDialog.cancel();"
ondialogaccept="gMismatchDialog.accept();">
<script type="application/x-javascript" src="chrome://mozapps/content/extensions/mismatch.js"/>
<stringbundleset id="updateSet">
<stringbundle id="extensionsStrings" src="chrome://mozapps/locale/extensions/extensions.properties"/>
</stringbundleset>
<label>&intro1.label;</label>
<separator class="thin"/>
<listbox id="incompatible" flex="1"/>
<separator class="thin"/>
<label style="font-weight: bold;">&intro2.label;</label>
<separator class="thin"/>
<label>&intro3.label;</label>
</dialog>

Просмотреть файл

@ -0,0 +1,9 @@
<!ENTITY mismatch.title "Incompatible Extensions">
<!ENTITY intro1.label "The following extensions are not compatible with the new version
of &brandShortName; you have just installed.">
<!ENTITY intro2.label "They have been disabled until compatible versions are
installed.">
<!ENTITY intro3.label "&brandShortName; can check for and install newer, compatible
versions of these extensions.">