Make Inspector localizable and use nsIPromptService for alerts

Bug 109891
r=biesi rs=bzbarsky a=sspitzer
This commit is contained in:
caillon%returnzero.com 2003-05-18 12:15:22 +00:00
Родитель 0b03097dfb
Коммит 2e5037068b
35 изменённых файлов: 857 добавлений и 177 удалений

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

@ -99,6 +99,12 @@ inspector.jar:
locale/en-US/inspector/viewers/dom.dtd (resources/locale/en-US/viewers/dom.dtd)
locale/en-US/inspector/viewers/domNode.dtd (resources/locale/en-US/viewers/domNode.dtd)
locale/en-US/inspector/viewers/styleRules.dtd (resources/locale/en-US/viewers/styleRules.dtd)
locale/en-US/inspector/viewers/stylesheets.dtd (resources/locale/en-US/viewers/stylesheets.dtd)
locale/en-US/inspector/viewers/xblBindings.dtd (resources/locale/en-US/viewers/xblBindings.dtd)
locale/en-US/inspector/viewers/boxModel.dtd (resources/locale/en-US/viewers/boxModel.dtd)
locale/en-US/inspector/viewers/computedStyle.dtd (resources/locale/en-US/viewers/computedStyle.dtd)
locale/en-US/inspector/viewers/jsObject.dtd (resources/locale/en-US/viewers/jsObject.dtd)
locale/en-US/inspector/inspector.properties (resources/locale/en-US/inspector.properties)
skin/classic/inspector/contents.rdf (resources/skin/classic/contents.rdf)
skin/classic/inspector/btnFind.gif (resources/skin/classic/btnFind.gif)
skin/classic/inspector/btnFind-dis.gif (resources/skin/classic/btnFind-dis.gif)

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

@ -51,6 +51,7 @@ const kSearchRegURL = "resource:///res/inspector/search-registry.rdf";
const kWindowDataSourceCID = "@mozilla.org/rdf/datasource;1?name=window-mediator";
const kClipboardHelperCID = "@mozilla.org/widget/clipboardhelper;1";
const kPromptServiceCID = "@mozilla.org/embedcomp/prompt-service;1";
const nsIWebNavigation = Components.interfaces.nsIWebNavigation;
//////////////////////////////////////////////////
@ -84,6 +85,7 @@ InspectorApp.prototype =
mSearchService: null,
mShowBrowser: false,
mClipboardHelper: null,
mPromptService: null,
get document() { return this.mDocPanel.viewer.subject },
get searchRegistry() { return this.mSearchService },
@ -102,6 +104,7 @@ InspectorApp.prototype =
//this.setSearch(false, true);
this.mClipboardHelper = XPCU.getService(kClipboardHelperCID, "nsIClipboardHelper");
this.mPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService");
this.mPanelSet = document.getElementById("bxPanelSet");
this.mPanelSet.addObserver("panelsetready", this, false);
@ -158,9 +161,14 @@ InspectorApp.prototype =
showOpenURLDialog: function()
{
var url = prompt("Enter a URL:", "http://");
if (url) {
this.gotoURL(url);
var bundle = this.mPanelSet.stringBundle;
var msg = bundle.getString("inspectURL.message");
var title = bundle.getString("inspectURL.title");
var url = { value: "http://" };
var dummy = { value: false };
var go = this.mPromptService.prompt(window, title, msg, url, null, dummy);
if (go) {
this.gotoURL(url.value);
}
},
@ -169,20 +177,6 @@ InspectorApp.prototype =
goPreferences("advancedItem", "chrome://inspector/content/prefs/pref-inspector.xul", "inspector");
},
runSearch: function()
{
var path = null; // TODO: should persist last path chosen in a pref
var file = FilePickerUtils.pickFile("Find Search File", path, ["filterXML"], "Open");
if (file) {
var ioService = XPCU.getService("@mozilla.org/network/io-service;1","nsIIOService");
var fileHandler = XPCU.QI(ioService.getProtocolHandler("file"), "nsIFileProtocolHandler");
var url = fileHandler.getURLSpecFromFile(file);
this.startSearchModule(url);
}
},
toggleBrowser: function(aToggleSplitter)
{
this.setBrowser(!this.mShowBrowser, aToggleSplitter)
@ -221,6 +215,26 @@ InspectorApp.prototype =
},
/*
XXXcaa
The following code needs to evaluated. What does it do? Why does nobody
call it? If deemed necessary, turn it back on with the right callers,
and localize it.
*/
/*
runSearch: function()
{
var path = null; // TODO: should persist last path chosen in a pref
var file = FilePickerUtils.pickFile("Find Search File", path, ["filterXML"], "Open");
if (file) {
var ioService = XPCU.getService("@mozilla.org/network/io-service;1","nsIIOService");
var fileHandler = XPCU.QI(ioService.getProtocolHandler("file"), "nsIFileProtocolHandler");
var url = fileHandler.getURLSpecFromFile(file);
this.startSearchModule(url);
}
},
viewSearchItem: function()
{
if (this.mCurrentSearch.canViewItems)
@ -246,7 +260,7 @@ InspectorApp.prototype =
this.viewSearchItem();
}
},
*/
copySearchItemLine: function()
{
var mod = this.mSearchService.currentModule;
@ -285,6 +299,7 @@ InspectorApp.prototype =
return text;
},
*/
exit: function()
{
@ -327,8 +342,12 @@ InspectorApp.prototype =
if (win) {
this.setTargetWindow(win);
this.setBrowser(false, true);
} else
alert("Unable to switch to window.");
} else {
var bundle = this.mPanelSet.stringBundle;
var msg = bundle.getString("inspectWindow.error.message");
var title = bundle.getString("inspectWindow.error.title");
this.mPromptService.alert(window, title, msg);
}
},
setTargetWindow: function(aWindow)
@ -359,13 +378,17 @@ InspectorApp.prototype =
get progress() { return document.getElementById("pmStatus").value; },
set progress(aPct) { document.getElementById("pmStatus").value = aPct; },
/*
XXXcaa -- What is this?
get searchTitle(aTitle) { return document.getElementById("splSearch").label; },
set searchTitle(aTitle)
{
var splitter = document.getElementById("splSearch");
splitter.setAttribute("label", "Search" + (aTitle ? " - " + aTitle : ""));
},
*/
////////////////////////////////////////////////////////////////////////////
//// Document Loading
@ -388,7 +411,7 @@ InspectorApp.prototype =
////////////////////////////////////////////////////////////////////////////
//// Search
/*
initSearch: function()
{
var ss = new inSearchService();
@ -444,6 +467,8 @@ InspectorApp.prototype =
alert("Unable to complete this search due to the following error:\n" + aMessage);
},
*/
////////////////////////////////////////////////////////////////////////////
//// History

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

@ -15,11 +15,17 @@
**************************************************************** -->
<binding id="panelset" extends="chrome://inspector/content/inspector.xml#base">
<content>
<xul:stringbundle src="chrome://inspector/locale/inspector.properties"/>
<children/>
</content>
<implementation>
<field name="mFocusedDocument">null</field>
<field name="mFocusedPanel">null</field>
<field name="mCommandStack">[]</field>
<field name="mCommandPtr">-1</field>
<field name="mStringBundle">null</field>
<property name="registry" readonly="true"
onget="return this.mRegistry"/>
@ -27,6 +33,8 @@
onget="return this.mInitialized"/>
<property name="focusedPanel" readonly="true"
onget="return this.mFocusedPanel;"/>
<property name="stringBundle" readonly="true"
onget="return this.mStringBundle;"/>
<method name="initialize">
<body><![CDATA[
@ -341,6 +349,10 @@
return this.mClipboardData;
]]></body>
</method>
<constructor><![CDATA[
this.mStringBundle = document.getAnonymousNodes(this)[0];
]]></constructor>
</implementation>
<handlers>

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

@ -1,4 +1,39 @@
<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!DOCTYPE window [
<!ENTITY % dtd1 SYSTEM "chrome://inspector/locale/inspector.dtd"> %dtd1;

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

@ -44,7 +44,7 @@
<splitter id="splBrowser" class="titled-splitter"
onopen="inspector.onSplitterOpen(this)"
label="Browser" closebutton="true" collapse="after"/>
label="&browserPanel.label;" closebutton="true" collapse="after"/>
<hbox id="bxBrowser" flex="1">
<browser id="ifBrowser" type="content-primary"

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

@ -8,6 +8,8 @@
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
headertitle="&Inspector.label;">
<stringbundle id="inspector-bundle" src="chrome://inspector/locale/inspector.properties"/>
<script type="application/x-javascript" src="chrome://inspector/content/extensions/wsm-colorpicker.js"/>
<script type="application/x-javascript" src="chrome://inspector/content/prefs/pref-sidebar.js"/>
<script type="application/x-javascript" src="chrome://inspector/content/jsutil/xpcom/XPCU.js"/>
@ -52,9 +54,9 @@
<vbox id="bxGeneralPrefs">
<groupbox id="tbxBlink" flex="1">
<caption label="Element Blinking"/>
<caption label="&elementBlinking.label;"/>
<vbox>
<checkbox id="cbElOn" label="Blink Selected Element" oncommand="enableBlinkPrefs(this.checked)"
<checkbox id="cbElOn" label="&blinkSelectedElement.label;" oncommand="enableBlinkPrefs(this.checked)"
preftype="bool" prefstring="inspector.blink.on" prefattribute="checked"/>
<grid>
<columns>
@ -63,60 +65,60 @@
</columns>
<rows>
<row align="center">
<label id="lbElBorderColor" value="Border Color"/>
<label id="lbElBorderColor" value="&borderColor.label;"/>
<hbox align="center">
<colorpicker id="cprElBorderColor" type="button"
preftype="color" prefstring="inspector.blink.border-color" prefattribute="color"/>
</hbox>
</row>
<row align="center">
<label id="lbElBorderWidth" value="Border Width"/>
<label id="lbElBorderWidth" value="&borderWidth.label;"/>
<hbox align="center">
<textbox id="txfElBorderWidth" style="width: 4em"
preftype="int" prefstring="inspector.blink.border-width" prefattribute="value"/>
<label value="(px)"/>
<label value="&px.label;"/>
</hbox>
</row>
<row align="center">
<label id="lbElDuration" value="Blink Duration"/>
<label id="lbElDuration" value="&blinkDuration.label;"/>
<hbox align="center">
<textbox id="txfElDuration" style="width: 4em"
preftype="int" prefstring="inspector.blink.duration" prefattribute="value"/>
<label value="(ms)"/>
<label value="&ms.label;"/>
</hbox>
</row>
<row align="center">
<label id="lbElSpeed" value="Blink Speed"/>
<label id="lbElSpeed" value="&blinkSpeed.label;"/>
<hbox align="center">
<textbox id="txfElSpeed" style="width: 4em"
preftype="int" prefstring="inspector.blink.speed" prefattribute="value"/>
<label value="(ms)"/>
<label value="&ms.label;"/>
</hbox>
</row>
</rows>
</grid>
<vbox align="start">
<checkbox id="cbElInvert" label="Invert Colors"
<checkbox id="cbElInvert" label="&invertColors.label;"
preftype="bool" prefstring="inspector.blink.invert" prefattribute="checked"/>
</vbox>
</vbox>
</groupbox>
<groupbox id="tbxSidebar" flex="1">
<caption label="Sidebar"/>
<caption label="&Sidebar.label;"/>
<vbox flex="1">
<vbox id="bxSidebarInstall" flex="1">
<hbox>
<description id="txSidebarMsg" flex="1">The DOM Inspector Sidebar is not currently installed. Click the 'Install' button to add it to your Sidebar.</description>
<description id="txSidebarMsg" flex="1">&installHowTo.label;</description>
</hbox>
<button id="btnSidebarInstall" label="Install" onclick="sidebarPref.installSidebar()"/>
<button id="btnSidebarInstall" label="&install.label;" onclick="sidebarPref.installSidebar()"/>
</vbox>
</vbox>
</groupbox>
<!--
<vbox>
<checkbox id="cbxNavIntegration" label="Add contextual menus to Navigator"
<checkbox id="cbxNavIntegration" label="&addNavigatorHooks.label;"
preftype="bool" prefstring="inspector.hooks.navigator" prefattribute="checked"/>
</vbox>
-->

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

@ -109,22 +109,24 @@ SidebarPrefs.prototype =
installSidebar: function()
{
if (!this.isSidebarInstalled()) {
this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "title"), gRDF.GetLiteral(kSidebarTitle), true);
this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "content"), gRDF.GetLiteral(kSidebarURL), true);
this.mPanelSeq.AppendElement(this.mPanelRes);
this.forceSidebarRefresh();
// XXX localize this
var msg = document.getElementById("txSidebarMsg");
msg.removeChild(msg.firstChild);
msg.appendChild(document.createTextNode("The sidebar is installed."));
var btn = document.getElementById("btnSidebarInstall");
btn.setAttribute("disabled", "true");
return true;
} else
if (this.isSidebarInstalled()) {
return false;
}
this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "title"), gRDF.GetLiteral(kSidebarTitle), true);
this.mDS.Assert(this.mPanelRes, gRDF.GetResource(kNCURI + "content"), gRDF.GetLiteral(kSidebarURL), true);
this.mPanelSeq.AppendElement(this.mPanelRes);
this.forceSidebarRefresh();
var msg = document.getElementById("txSidebarMsg");
msg.removeChild(msg.firstChild);
var bundle = document.getElementById("inspector-bundle");
msg.appendChild(document.createTextNode(bundle.getString("sidebarInstalled")));
var btn = document.getElementById("btnSidebarInstall");
btn.setAttribute("disabled", "true");
return true;
},
forceSidebarRefresh: function()

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

@ -33,8 +33,8 @@
<domi-panelset id="bxPanelSet" flex="1" viewercommandset="cmdsGlobalCommands">
<tabbox flex="1" orient="vertical">
<tabs>
<tab label="Document"/>
<tab label="Object"/>
<tab label="&bxDocPanel.title;"/>
<tab label="&bxObjectPanel.title;"/>
</tabs>
<tabpanels flex="1">
<domi-panel id="bxDocPanel" title="&bxDocPanel.title;"/>

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

@ -125,22 +125,24 @@ function dumpDOM(aNode, aIndent)
dumpDOM(aNode.childNodes[i], aIndent);
}
var gStringBundle;
// convert nodeType constant into human readable form
function nodeTypeToText (nodeType)
{
switch (nodeType) {
case Node.ELEMENT_NODE: return "Element";
case Node.ATTRIBUTE_NODE: return "Attribute";
case Node.TEXT_NODE: return "Text";
case Node.CDATA_SECTION_NODE: return "CDATA Section";
case Node.ENTITY_REFERENCE_NODE: return "Entity Reference";
case Node.ENTITY_NODE: return "Entity";
case Node.PROCESSING_INSTRUCTION_NODE: return "Processing Instruction";
case Node.COMMENT_NODE: return "Comment";
case Node.DOCUMENT_NODE: return "Document";
case Node.DOCUMENT_TYPE_NODE: return "Document Type";
case Node.DOCUMENT_FRAGMENT_NODE: return "Document Fragment";
case Node.NOTATION_NODE: return "Notation";
if (!gStringBundle) {
var strBundleService =
Components.classes["@mozilla.org/intl/stringbundle;1"].
getService(Components.interfaces.nsIStringBundleService);
gStringBundle = strBundleService.createBundle("chrome://inspector/locale/inspector.properties");
}
if (gStringBundle) {
const nsIDOMNode = Components.interfaces.nsIDOMNode;
if (nodeType >= nsIDOMNode.ELEMENT_NODE && nodeType <= nsIDOMNode.NOTATION_NODE) {
return gStringBundle.GetStringFromName(nodeType);
}
}
return nodeType;
}

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

@ -3,6 +3,7 @@
<!DOCTYPE page [
<!ENTITY % dtd1 SYSTEM "chrome://inspector/locale/inspector.dtd"> %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://inspector/content/util.dtd"> %dtd2;
<!ENTITY % dtd3 SYSTEM "chrome://inspector/locale/viewers/boxModel.dtd"> %dtd3;
]>
<?xml-stylesheet href="chrome://inspector/skin/viewers/boxModel/boxModel.css"?>
@ -32,11 +33,11 @@
<caption>
<menulist id="mlStats" value="position" oncommand="viewer.showStatGroup(this.value)">
<menupopup>
<menuitem value="position" label="Position"/>
<menuitem value="dimension" label="Dimensions"/>
<menuitem value="margin" label="Margin"/>
<menuitem value="border" label="Border"/>
<menuitem value="padding" label="Padding"/>
<menuitem value="position" label="&boxPosition.label;"/>
<menuitem value="dimension" label="&boxDimension.label;"/>
<menuitem value="margin" label="&boxMargin.label;"/>
<menuitem value="border" label="&boxBorder.label;"/>
<menuitem value="padding" label="&boxPadding.label;"/>
</menupopup>
</menulist>
</caption>
@ -72,28 +73,28 @@
<vbox id="bxCaptureStuff" flex="1">
<groupbox id="tbxImage">
<caption label="Image"/>
<caption label="&boxImage.label;"/>
<hbox align="center" flex="1">
<button label="Capture" command="cmdCapture"/>
<button label="Pick Color..." command="cmdOpenColorPicker"/>
<button label="Save As..." command="cmdSaveImage"/>
<button label="&boxImageCapture.label;" command="cmdCapture"/>
<button label="&boxColorPicker.label;" command="cmdOpenColorPicker"/>
<button label="&boxSaveImage.label;" command="cmdSaveImage"/>
<spacer flex="1"/>
<checkbox id="cbxShowOutlines" label="Show Boxes" command="cmdToggleOutlines"/>
<checkbox id="cbxFillOutlines" label="Fill Boxes" command="cmdToggleFill"/>
<checkbox id="cbxShowOutlines" label="&boxShowOutlines.label;" command="cmdToggleOutlines"/>
<checkbox id="cbxFillOutlines" label="&boxFillOutlines.label;" command="cmdToggleFill"/>
<menulist id="mlZoom" value="1" command="cmdZoom">
<menupopup>
<menuitem value="1" label="Zoom 1x"/>
<menuitem value="2" label="Zoom 2x"/>
<menuitem value="4" label="Zoom 4x"/>
<menuitem value="8" label="Zoom 8x"/>
<menuitem value="16" label="Zoom 16x"/>
<menuitem value="32" label="Zoom 32x"/>
<menuitem value="1" label="&zoom1x.label;"/>
<menuitem value="2" label="&zoom2x.label;"/>
<menuitem value="4" label="&zoom4x.label;"/>
<menuitem value="8" label="&zoom8x.label;"/>
<menuitem value="16" label="&zoom16x.label;"/>
<menuitem value="32" label="&zoom32x.label;"/>
</menupopup>
</menulist>
</hbox>
</groupbox>
<hbox id="bxZoom" align="start" flex="1">
<stack id="bxZoomStack">
<html:img id="imgZoom"/>

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

@ -3,11 +3,12 @@
<!DOCTYPE window [
<!ENTITY % dtd1 SYSTEM "chrome://inspector/locale/inspector.dtd"> %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://inspector/content/util.dtd"> %dtd2;
<!ENTITY % dtd3 SYSTEM "chrome://inspector/locale/viewers/boxModel.dtd"> %dtd3;
]>
<?xml-stylesheet href="chrome://inspector/skin/viewers/boxModel/boxModel.css"?>
<window id="winColorPicker" title="Color Picker" class="color-dialog"
<window id="winColorPicker" title="&boxColorPicker.title;" class="color-dialog"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
<script type="application/x-javascript"><![CDATA[
@ -59,10 +60,10 @@
</vbox>
<vbox flex="1">
<deck id="dkStartStop">
<button id="btnStart" label="Start" oncommand="startPicking()"/>
<button id="btnStop" label="Stop" oncommand="stopPicking()"/>
<button id="btnStart" label="&boxStartPicking.label;" oncommand="startPicking()"/>
<button id="btnStop" label="&boxStopPicking.label;" oncommand="stopPicking()"/>
</deck>
<button id="btnClose" label="Close" oncommand="exit()"/>
<button id="btnClose" label="&boxClosePicker.label;" oncommand="exit()"/>
</vbox>
</window>

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

@ -1,8 +1,44 @@
<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!DOCTYPE page [
<!ENTITY % dtd1 SYSTEM "chrome://inspector/locale/inspector.dtd"> %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://inspector/content/util.dtd"> %dtd2;
<!ENTITY % dtd3 SYSTEM "chrome://inspector/locale/viewers/computedStyle.dtd"> %dtd3;
]>
<?xml-stylesheet href="chrome://inspector/skin/"?>
@ -19,9 +55,9 @@
<tree id="olStyles" flex="1" onselect="viewer.onItemSelected()" class="plain">
<treecols>
<treecol id="olcStyleName" label="Style" flex="1"/>
<treecol id="olcStyleName" label="&propertyName.label;" flex="1"/>
<splitter class="tree-splitter"/>
<treecol id="olcStyleValue" label="Value" flex="1"/>
<treecol id="olcStyleValue" label="&propertyValue.label;" flex="1"/>
</treecols>
<treechildren id="olbStyles"/>
</tree>

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

@ -50,6 +50,7 @@ var gEntityConverter;
const kDOMViewCID = "@mozilla.org/inspector/dom-view;1";
const kClipboardHelperCID = "@mozilla.org/widget/clipboardhelper;1";
const kPromptServiceCID = "@mozilla.org/embedcomp/prompt-service;1";
//////////////////////////////////////////////////
@ -526,7 +527,12 @@ DOMViewer.prototype =
this.selectElementInTree(result);
this.mDOMTree.focus();
} else {
alert("End of document reached."); // XXX localize
var bundle = this.mPanel.panelset.stringBundle;
var msg = bundle.getString("findNodesDocumentEnd.message");
var title = bundle.getString("findNodesDocumentEnd.title");
var promptService = XPCU.getService(kPromptServiceCID, "nsIPromptService");
promptService.alert(window, title, msg);
}
}
},

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

@ -73,6 +73,7 @@
<tree id="trDOMTree" class="plain" flex="1" enableColumnDrag="true"
onselect="viewer.onItemSelected()">
<treecols>
<!-- These labels don't need to be localized since they are defined by DOM APIs -->
<treecol id="colNodeName" label="nodeName" primary="true" persist="width,hidden,ordinal" flex="3"/>
<splitter class="tree-splitter"/>
<treecol id="colLocalName" label="localName" hidden="true" persist="width,hidden,ordinal" flex="1"/>

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

@ -1,11 +1,49 @@
<?xml version="1.0"?>
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!DOCTYPE dialog SYSTEM "chrome://inspector/content/inspector.dtd">
<!DOCTYPE dialog [
<!ENTITY % dtd1 SYSTEM "chrome://inspector/locale/inspector.dtd"> %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://inspector/locale/viewers/dom.dtd"> %dtd2;
]>
<?xml-stylesheet href="chrome://inspector/skin/viewers/dom/findDialog.css"?>
<dialog id="winFind" style="width: 30em;"
title="Find"
title="&findNodes.title;"
ondialogaccept="return dialog.doFind();"
persist="screenX screenY"
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul">
@ -24,14 +62,14 @@
<rows>
<row id="rwRow1">
<deck id="rwRow1Text">
<label id="txText1Id" value="Id"/>
<label id="txText1Tag" value="Tag"/>
<label id="txText1Attr" value="Attr"/>
<label id="txText1Id" value="&findNodesById.label;"/>
<label id="txText1Tag" value="&findNodesByTag.label;"/>
<label id="txText1Attr" value="&findNodesByAttr.label;"/>
</deck>
<textbox id="tfText1"/>
</row>
<row id="rwRow2">
<label id="txText2" value="Value"/>
<label id="txText2" value="&findNodesByAttrValue.label;"/>
<textbox id="tfText2"/>
</row>
</rows>
@ -39,26 +77,34 @@
<hbox>
<groupbox id="tbxType">
<caption label="Search By"/>
<caption label="&findNodesSearchBy.label;"/>
<radiogroup id="rgType">
<radio id="rdType_id" label="ID" value="id" oncommand="dialog.toggleType('id')"/>
<radio id="rdType_tag" label="Tag" value="tag" oncommand="dialog.toggleType('tag')"/>
<radio id="rdType_attr" label="Attribute" value="attr" oncommand="dialog.toggleType('attr')"/>
<radio id="rdType_id" value="id"
label="&findNodesById.label;"
oncommand="dialog.toggleType('id')"/>
<radio id="rdType_tag" value="tag"
label="&findNodesByTag.label;"
oncommand="dialog.toggleType('tag')"/>
<radio id="rdType_attr" value="attr"
label="&findNodesByAttr.label;"
oncommand="dialog.toggleType('attr')"/>
</radiogroup>
</groupbox>
<groupbox id="tbxDirection" hide="true">
<caption label="Direction"/>
<caption label="&findNodesDirection.label;"/>
<radiogroup id="rgDirection">
<radio id="rdDir_up" value="up" label="Up"/>
<radio id="rdDir_down" value="down" label="Down"/>
<radio id="rdDir_up" value="up"
label="&findNodesDirectionUp.label;"/>
<radio id="rdDir_down" value="down"
label="&findNodesDirectionDown.label;"/>
</radiogroup>
</groupbox>
</hbox>
</vbox>
<vbox>
<button label="Find" dlgtype="accept" default="true"/>
<button label="Cancel" dlgtype="cancel"/>
<button label="&findNodesFind.label;" dlgtype="accept" default="true"/>
<button label="&findNodesCancel.label;" dlgtype="cancel"/>
</vbox>
</hbox>

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

@ -24,12 +24,11 @@
<groupbox style="width: 25em;">
<caption label="&pseudoClasses.title;"/>
<vbox>
<checkbox id="cbxStateHover" label="&stateHover.label;"/>
<checkbox id="cbxStateActive" label="&stateActive.label;"/>
<checkbox id="cbxStateFocus" label="&stateFocus.label;"/>
<!-- These don't need to be localized, since they are CSS APIs -->
<checkbox id="cbxStateHover" label=":hover"/>
<checkbox id="cbxStateActive" label=":active"/>
<checkbox id="cbxStateFocus" label=":focus"/>
</vbox>
</groupbox>
</dialog>

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

@ -45,9 +45,12 @@
var viewer;
var gPromptService;
//////////// global constants ////////////////////
const kDOMViewCID = "@mozilla.org/inspector/dom-view;1";
const kPromptServiceCID = "@mozilla.org/embedcomp/prompt-service;1";
//////////////////////////////////////////////////
@ -304,13 +307,24 @@ cmdEditInsert.prototype =
promptFor: function()
{
var name = prompt("Enter the attribute name:", "");
if (name) {
var value = prompt("Enter the attribute value:", "");
if (value) {
if (!gPromptService) {
gPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService");
}
var attrName = { value: "" };
var attrValue = { value: "" };
var dummy = { value: false };
var bundle = this.mPanel.panelset.stringBundle;
var msg = bundle.getString("enterAttrName.message");
var title = bundle.getString("newAttribute.title");
if (gPromptService.prompt(window, title, msg, attrName, null, dummy)) {
msg = bundle.getString("enterAttrValue.message");
if (gPromptService.prompt(window, title, msg, attrValue, null, dummy)) {
this.subject = viewer.subject;
this.subject.setAttribute(name, value);
this.attr = this.subject.getAttributeNode(name);
this.subject.setAttribute(attrName.value, attrValue.value);
this.attr = this.subject.getAttributeNode(attrName.value);
return false;
}
}
@ -368,12 +382,22 @@ cmdEditEdit.prototype =
{
var attr = viewer.selectedAttribute;
if (attr) {
var value = prompt("Enter the attribute value:", attr.nodeValue);
if (value) {
if (!gPromptService) {
gPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService");
}
var attrValue = { value: attr.nodeValue };
var dummy = { value: false };
var bundle = this.mPanel.panelset.stringBundle;
var msg = bundle.getString("enterAttrName.message");
var title = bundle.getString("editAttribute.title");
if (gPromptService.prompt(window, title, msg, attrValue, null, dummy)) {
this.subject = viewer.subject;
this.newValue = value;
this.newValue = attrValue.value;
this.previousValue = attr.nodeValue;
this.subject.setAttribute(attr.nodeName, value);
this.subject.setAttribute(attr.nodeName, attrValue.value);
this.attr = this.subject.getAttributeNode(attr.nodeName);
return false;
}

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

@ -47,19 +47,19 @@
</columns>
<rows>
<row>
<label value="Node Name:" />
<label value="&nodeName.label;" />
<textbox id="tx_nodeName" readonly="true"/>
</row>
<row>
<label value="Namespace URI:" />
<label value="&namespaceURI.label;" />
<textbox id="tx_namespace" readonly="true"/>
</row>
<row>
<label value="Node Type:" />
<label value="&nodeType.label;" />
<textbox id="tx_nodeType" readonly="true"/>
</row>
<row>
<label value="Node Value:" />
<label value="&nodeValue.label;" />
<textbox id="tx_nodeValue" readonly="true"/>
</row>
</rows>
@ -68,6 +68,7 @@
<tree id="olAttr" class="plain" flex="1" enableColumnDrag="true"
onselect="viewer.pane.panelset.updateAllCommands()">
<treecols>
<!-- These labels don't need to be localized since they are defined by DOM APIs -->
<treecol id="colNodeName" label="nodeName" persist="width,hidden,ordinal" flex="1"/>
<splitter class="tree-splitter"/>
<treecol id="colNodeValue" label="nodeValue" persist="width,hidden,ordinal" flex="1"/>

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

@ -3,6 +3,7 @@
<!DOCTYPE window [
<!ENTITY % dtd1 SYSTEM "chrome://inspector/locale/inspector.dtd"> %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://inspector/content/util.dtd"> %dtd2;
<!ENTITY % dtd3 SYSTEM "chrome://inspector/locale/viewers/jsObject.dtd"> %dtd3;
]>
<?xml-stylesheet href="chrome://communicator/skin"?>
@ -25,17 +26,16 @@
</keyset>
<vbox style="width: 350px;">
<description>Enter a javascript expression. The variable "target" is the object that is currently selected. Any value that you return will be displayed in the Javascript Object Viewer.</description>
<description>&jsEval.desc;</description>
<textbox id="txfExprInput" value=""/>
<checkbox id="cbxNewView" label="Inspect in new window"/>
<checkbox id="cbxNewView" label="&inspectNewWindow.label;"/>
</vbox>
<hbox>
<button label="Execute" observes="cmdExec" default="true"/>
<button label="Cancel" observes="cmdCancel"/>
<button label="&jsExecute.label;" observes="cmdExec" default="true"/>
<button label="&jsCancel.label;" observes="cmdCancel"/>
</hbox>
</window>

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

@ -3,6 +3,7 @@
<!DOCTYPE page [
<!ENTITY % dtd1 SYSTEM "chrome://inspector/locale/inspector.dtd"> %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://inspector/content/util.dtd"> %dtd2;
<!ENTITY % dtd3 SYSTEM "chrome://inspector/locale/viewers/jsObject.dtd"> %dtd3;
]>
<?xml-stylesheet href="chrome://inspector/skin/"?>
@ -24,20 +25,20 @@
<popupset>
<popup id="popupContext" onpopupshowing="return viewer.onpopupshowingContext(this)">
<menuitem label="Inspect in New Window" observes="cmdInspectInNewView"/>
<menuitem label="&inspectNewWindow.label;" observes="cmdInspectInNewView"/>
<menuseparator/>
<menuitem label="Copy Value" observes="cmdCopyValue"/>
<menuitem label="Evaluate Javascript..." observes="cmdEvalExpr"/>
<menuitem label="&jsCopyValue.label;" observes="cmdCopyValue"/>
<menuitem label="&jsEval.label;" observes="cmdEvalExpr"/>
</popup>
</popupset>
<tree id="treeJSObject" flex="1" context="popupContext">
<treecols>
<treecol id="colProp" flex="1" primary="true" label="Property"/>
<treecol id="colProp" flex="1" primary="true" label="&jsProperty.label;"/>
<splitter class="tree-splitter"/>
<treecol id="colVal" flex="1" label="Value"/>
<treecol id="colVal" flex="1" label="&jsValue.label;"/>
</treecols>
<treechildren id="trchJSObject"/>
</tree>

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

@ -49,11 +49,13 @@
//////////// global variables /////////////////////
var viewer;
var gPromptService;
//////////// global constants ////////////////////
var kCSSRuleDataSourceIID = "@mozilla.org/rdf/datasource;1?name=Inspector_CSSRules";
var kCSSDecDataSourceIID = "@mozilla.org/rdf/datasource;1?name=Inspector_CSSDec";
var kPromptServiceCID = "@mozilla.org/embedcomp/prompt-service;1";
var nsEventStateUnspecificed = 0;
var nsEventStateActive = 1;
@ -69,6 +71,8 @@ function StyleRulesViewer_initialize()
{
viewer = new StyleRulesViewer();
viewer.initialize(parent.FrameExchange.receiveData(window));
gPromptService = XPCU.getService(kPromptServiceCID, "nsIPromptService");
}
////////////////////////////////////////////////////////////////////////////
@ -94,12 +98,13 @@ StyleRulesViewer.prototype =
mRuleDS: null,
mDecDS: null,
mSubject: null,
mPanel: null,
////////////////////////////////////////////////////////////////////////////
//// interface inIViewer
get uid() { return "styleRules" },
get pane() { return this.mPane },
get pane() { return this.mPanel },
get selection() { return null },
@ -119,7 +124,7 @@ StyleRulesViewer.prototype =
initialize: function(aPane)
{
this.mPane = aPane;
this.mPanel = aPane;
aPane.notifyViewerReady(this);
},
@ -207,13 +212,25 @@ StyleRulesViewer.prototype =
cmdNewProperty: function()
{
var propname = prompt("Enter the property name:", "");
if (!propname) return;
var propval = prompt("Enter the property value:", "");
if (!propval) return;
var bundle = this.mPanel.panelset.stringBundle;
var msg = bundle.getString("styleRulePropertyName.message");
var title = bundle.getString("styleRuleNewProperty.title");
var propName = { value: "" };
var propValue = { value: "" };
var dummy = { value: false };
if (!gPromptService.prompt(window, title, msg, propName, false, dummy)) {
return;
}
msg = bundle.getString("styleRulePropertyValue.message");
if (!gPromptService.prompt(window, title, msg, propValue, false, dummy)) {
return;
}
var style = this.getSelectedRule().style;
style.setProperty(propname, propval, "");
style.setProperty(propName.value, propValue.value, "");
this.mPropsBoxObject.invalidate();
},
@ -224,11 +241,19 @@ StyleRulesViewer.prototype =
var propval = style.getPropertyValue(propname);
var priority = style.getPropertyPriority(propname);
propval = prompt("Enter the property value:", propval);
if (!propval) return;
var bundle = this.mPanel.panelset.stringBundle;
var msg = bundle.getString("styleRulePropertyValue.message");
var title = bundle.getString("styleRuleEditProperty.title");
var propValue = { value: propval };
var dummy = { value: false };
if (!gPromptService.prompt(window, title, msg, propValue, false, dummy)) {
return;
}
style.removeProperty(propname);
style.setProperty(propname, propval, priority);
style.setProperty(propname, propValue.value, priority);
this.mPropsBoxObject.invalidate();
},

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

@ -25,19 +25,19 @@
<popupset id="psPopups">
<popup id="ppStyleRuleContext" onpopupshowing="return viewer.onpopupshowingRulePopup()">
<menuitem label="New" oncommand="viewer.cmdNewRule()"/>
<menuitem label="Delete" oncommand="viewer.cmdDeleteSelectedRule()"/>
<menuitem label="Disable" oncommand="viewer.cmdToggleSelectedRule()"/>
<menuitem label="&newRules.label;" oncommand="viewer.cmdNewRule()"/>
<menuitem label="&deleteSelectedRules.label;" oncommand="viewer.cmdDeleteSelectedRule()"/>
<menuitem label="&disableSelectedRules.label;" oncommand="viewer.cmdToggleSelectedRule()"/>
<menuseparator/>
<menuitem label="Open File in Editor" oncommand="viewer.cmdOpenSelectedFileInEditor()"/>
<menuitem label="&openSelectedFileInEditor.label;" oncommand="viewer.cmdOpenSelectedFileInEditor()"/>
</popup>
<popup id="ppStylePropsContext">
<menuitem label="New Property" oncommand="viewer.cmdNewProperty()"/>
<menuitem label="Edit" oncommand="viewer.cmdEditSelectedProperty()"/>
<menuitem label="Delete" oncommand="viewer.cmdDeleteSelectedProperty()"/>
<menuitem label="&newProperty.label;" oncommand="viewer.cmdNewProperty()"/>
<menuitem label="&editSelectedProperty.label;" oncommand="viewer.cmdEditSelectedProperty()"/>
<menuitem label="&deleteSelectedProperty.label;" oncommand="viewer.cmdDeleteSelectedProperty()"/>
<menuseparator/>
<menuitem label="Toggle !important" oncommand="viewer.cmdToggleSelectedImportant()"/>
<menuitem label="&toggleSelectedImportant.label;" oncommand="viewer.cmdToggleSelectedImportant()"/>
</popup>
</popupset>
@ -46,13 +46,13 @@
<tree id="olStyleRules" class="plain" flex="1" persist="height"
onselect="viewer.onRuleSelect()">
<treecols>
<treecol id="olcRule" label="Rule" flex="1"/>
<treecol id="olcRule" label="&styleRule.label;" flex="1"/>
<splitter class="tree-splitter"/>
<treecol id="olcFileURL" label="File" flex="1"/>
<treecol id="olcFileURL" label="&styleRuleURI.label;" flex="1"/>
<splitter class="tree-splitter"/>
<treecol id="olcWeight" label="Weight"/>
<treecol id="olcWeight" label="&styleRuleWeight.label;"/>
<splitter class="tree-splitter"/>
<treecol id="olcLine" label="Line"/>
<treecol id="olcLine" label="&styleRuleLineNumber.label;"/>
</treecols>
<treechildren id="olbStyleRules"/>
</tree>
@ -64,11 +64,11 @@
<tree id="olStyleProps" class="plain" flex="1" persist="height"
context="ppStylePropsContext">
<treecols>
<treecol id="olcPropPriority" label="Priority" class="treecol-image"/>
<treecol id="olcPropPriority" label="&styleRulePropPriority.label;" class="treecol-image"/>
<splitter class="tree-splitter"/>
<treecol id="olcPropName" label="Style" flex="1"/>
<treecol id="olcPropName" label="&styleRulePropName.label;" flex="1"/>
<splitter class="tree-splitter"/>
<treecol id="olcPropValue" label="Value" flex="1"/>
<treecol id="olcPropValue" label="&styleRulePropValue.label;" flex="1"/>
</treecols>
<treechildren id="olbStyleProps"/>
</tree>

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

@ -3,6 +3,7 @@
<!DOCTYPE page [
<!ENTITY % dtd1 SYSTEM "chrome://inspector/locale/inspector.dtd"> %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://inspector/content/util.dtd"> %dtd2;
<!ENTITY % dtd3 SYSTEM "chrome://inspector/locale/viewers/stylesheets.dtd"> %dtd3;
]>
<?xml-stylesheet href="chrome://inspector/skin/"?>
@ -18,9 +19,9 @@
<tree id="olStyleSheets" class="plain" flex="1"
onselect="viewer.onItemSelected()">
<treecols>
<treecol id="olcHref" label="Stylesheet" primary="true" persist="width,hidden,ordinal" flex="1"/>
<treecol id="olcHref" label="&styleLocation.label;" primary="true" persist="width,hidden,ordinal" flex="1"/>
<splitter class="tree-splitter"/>
<treecol id="olcRules" label="Rules" persist="width,hidden,ordinal" style="width: 4em"/>
<treecol id="olcRules" label="&styleRules.label;" persist="width,hidden,ordinal" style="width: 4em"/>
</treecols>
<treechildren id="olbStyleSheets"/>
</tree>

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

@ -3,6 +3,7 @@
<!DOCTYPE page [
<!ENTITY % dtd1 SYSTEM "chrome://inspector/locale/inspector.dtd"> %dtd1;
<!ENTITY % dtd2 SYSTEM "chrome://inspector/content/util.dtd"> %dtd2;
<!ENTITY % dtd3 SYSTEM "chrome://inspector/locale/viewers/xblBindings.dtd"> %dtd3;
]>
<?xml-stylesheet href="chrome://inspector/skin/viewers/xblBindings/xblBindings.css"?>
@ -23,9 +24,10 @@
</menulist>
<multipanelset id="mpsBinding" flex="1">
<multipanel id="bxContent" label="Content" open="true" persist="open" onopen="if (viewer) {viewer.initContent();} else {gInitContent = true;}">
<multipanel id="bxContent" label="&bindingContent.label;" open="true" persist="open" onopen="if (viewer) {viewer.initContent();} else {gInitContent = true;}">
<tree id="olContent" flex="1" class="plain">
<treecols>
<!-- Don't localize these DOM API names -->
<treecol id="colNodeName" primary="true" label="nodeName" flex="1"/>
<splitter class="tree-splitter"/>
<treecol id="colNodeValue" label="nodeValue" flex="1"/>
@ -34,7 +36,7 @@
</tree>
</multipanel>
<multipanel id="bxMethods" label="Methods" open="true" persist="open">
<multipanel id="bxMethods" label="&bindingMethods.label;" open="true" persist="open">
<tree id="olMethods" class="tree-list plain" flex="1"
onselect="viewer.onMethodSelected()">
<treecols>
@ -44,23 +46,23 @@
</tree>
</multipanel>
<multipanel id="bxProps" label="Properties" open="true" persist="open">
<multipanel id="bxProps" label="&bindingProperties.label;" open="true" persist="open">
<vbox flex="1">
<radiogroup class="outset" orient="horizontal">
<radio id="raPropGetter" label="getter" selected="true" oncommand="viewer.onPropSelected()"/>
<radio id="raPropSetter" label="setter" oncommand="viewer.onPropSelected()"/>
<radio id="raPropGetter" label="&bindingGetter.label;" selected="true" oncommand="viewer.onPropSelected()"/>
<radio id="raPropSetter" label="&bindingSetter.label;" oncommand="viewer.onPropSelected()"/>
</radiogroup>
<tree id="olProps" class="tree-list plain" flex="1"
onselect="viewer.onPropSelected()">
<treecols>
<treecol id="olcPropName" label="Property" flex="1"/>
<treecol id="olcPropName" label="&bindingProperty.label;" flex="1"/>
</treecols>
<treechildren id="olbProps" context="ppDOMContext"/>
</tree>
</vbox>
</multipanel>
<multipanel id="bxHandlers" label="Handlers" persist="open">
<multipanel id="bxHandlers" label="&bindingHandlers.label;" persist="open">
<tree id="olHandlers" class="tree-list plain" flex="1"
onselect="viewer.onHandlerSelected()">
<treecols>
@ -71,7 +73,7 @@
</tree>
</multipanel>
<multipanel id="bxResources" label="Resources" persist="open">
<multipanel id="bxResources" label="&bindingResources.label;" persist="open">
<tree id="olResources" class="tree-list plain" flex="1">
<treecols>
<treecol id="olcResourceType" flex="1"/>
@ -81,7 +83,7 @@
</tree>
</multipanel>
<multipanel id="bxFunction" label="Source Code" open="true" persist="open">
<multipanel id="bxFunction" label="&bindingSourceCode.label;" open="true" persist="open">
<textbox id="txbFunction" class="plain" readonly="true" multiline="true" flex="1"/>
</multipanel>
</multipanelset>

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

@ -55,3 +55,7 @@
<!ENTITY cmdSaveSearchItemText.label "Save...">
<!ENTITY cmdClearSearch.label "Clear">
<!ENTITY cmdHideSearchItems.label "Hide">
<!ENTITY browserPanel.label "Browser">
<!ENTITY inspectNewWindow.label "Inspect in New Window">

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

@ -0,0 +1,68 @@
# ***** BEGIN LICENSE BLOCK *****
# 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 DOM Inspector.
#
# The Initial Developer of the Original Code is
# Netscape Communications Corporation.
# Portions created by the Initial Developer are Copyright (C) 2003
# the Initial Developer. All Rights Reserved.
#
# Contributor(s):
#
# 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 *****
inspectURL.title = Inspect URL
inspectURL.message = Enter a URL:
inspectWindow.error.message = Unable to switch to the requested window.
inspectWindow.error.title = Inspect Window Error
styleRuleNewProperty.title = New Style Rule
styleRuleEditProperty.title = Edit Style Rule
styleRulePropertyValue.message = Enter the property value:
styleRulePropertyName.message = Enter the property name:
sidebarInstalled = The sidebar is installed.
newAttribute.title = New Attribute
editAttribute.title = Edit Attribute
enterAttrName.message = Enter the attribute name:
enterAttrValue.message = Enter the attribute value:
findNodesDocumentEnd.message = End of document reached.
findNodesDocumentEnd.title = Find Nodes
# The following items correspond to the node types defined by the
# W3C DOM Core specification.
1 = Element
2 = Attribute
3 = Text
4 = CDATA Section
5 = Entity Reference
6 = Entity
7 = Processing Instruction
8 = Comment
9 = Document
10 = Document Type
11 = Document Fragment
12 = Notation

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

@ -1,2 +1,14 @@
<!ENTITY Inspector.label "DOM Inspector">
<!ENTITY Sidebar.label "Sidebar">
<!ENTITY elementBlinking.label "Element Blinking">
<!ENTITY blinkSelectedElement.label "Blink Selected Element">
<!ENTITY borderColor.label "Border Color">
<!ENTITY borderWidth.label "Border Width">
<!ENTITY px.label "(px)">
<!ENTITY blinkDuration.label "Blink Duration">
<!ENTITY ms.label "(ms)">
<!ENTITY blinkSpeed.label "Blink Speed">
<!ENTITY invertColors.label "Invert Colors">
<!ENTITY installHowTo.label "The DOM Inspector Sidebar is not currently installed. Click the 'Install' button to add it to your Sidebar.">
<!ENTITY install.label "Install">
<!ENTITY addNavigatorHooks.label "Add contextual menus to Navigator">

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

@ -0,0 +1,62 @@
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!ENTITY boxPosition.label "Position">
<!ENTITY boxDimension.label "Dimensions">
<!ENTITY boxMargin.label "Margin">
<!ENTITY boxBorder.label "Border">
<!ENTITY boxPadding.label "Padding">
<!ENTITY boxImage.label "Image">
<!ENTITY boxImageCapture.label "Capture">
<!ENTITY boxSaveImage.label "Save As...">
<!ENTITY boxShowOutlines.label "Show Boxes">
<!ENTITY boxFillOutlines.label "Fill Boxes">
<!ENTITY boxColorPicker.label "Pick Color...">
<!ENTITY boxColorPicker.title "Color Picker">
<!ENTITY boxStartPicking.label "Start">
<!ENTITY boxStopPicking.label "Stop">
<!ENTITY boxClosePicker.label "Close">
<!ENTITY zoom.label "Zoom">
<!ENTITY zoom1x.label "&zoom.label; 1x">
<!ENTITY zoom2x.label "&zoom.label; 2x">
<!ENTITY zoom4x.label "&zoom.label; 4x">
<!ENTITY zoom8x.label "&zoom.label; 8x">
<!ENTITY zoom16x.label "&zoom.label; 16x">
<!ENTITY zoom32x.label "&zoom.label; 32x">

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

@ -0,0 +1,38 @@
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!ENTITY propertyName.label "Property">
<!ENTITY propertyValue.label "Value">

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

@ -1,3 +1,39 @@
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!ENTITY cmdShowFindDialog.label "Find Nodes...">
<!ENTITY cmdShowFindDialog.accesskey "f">
<!ENTITY cmdShowFindDialog.accelkey "f">
@ -36,6 +72,14 @@
<!ENTITY pseudoClasses.title "Pseudo-classes">
<!ENTITY stateHover.label ":hover">
<!ENTITY stateActive.label ":active">
<!ENTITY stateFocus.label ":focus">
<!ENTITY findNodes.title "Find Nodes">
<!ENTITY findNodesById.label "Id">
<!ENTITY findNodesByTag.label "Tag">
<!ENTITY findNodesByAttr.label "Attr">
<!ENTITY findNodesByAttrValue.label "Value">
<!ENTITY findNodesSearchBy.label "Search By">
<!ENTITY findNodesDirection.label "Direction">
<!ENTITY findNodesDirectionUp.label "Up">
<!ENTITY findNodesDirectionDown.label "Down">
<!ENTITY findNodesFind.label "Find">
<!ENTITY findNodesCancel.label "Cancel">

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

@ -1 +1,40 @@
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!ENTITY nodeName.label "Node Name:">
<!ENTITY namespaceURI.label "Namespace URI:">
<!ENTITY nodeType.label "Node Type:">
<!ENTITY nodeValue.label "Node Value:">

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

@ -0,0 +1,46 @@
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!ENTITY jsCopyValue.label "Copy Value">
<!ENTITY jsEval.label "Evaluate Javascript...">
<!ENTITY jsProperty.label "Property">
<!ENTITY jsValue.label "Value">
<!ENTITY jsEval.desc "Enter a javascript expression. The variable &quot;target&quot; is the object that is currently selected. Any value that you return will be displayed in the Javascript Object Viewer.">
<!ENTITY jsExecute.label "Execute">
<!ENTITY jsCancel.label "Cancel">

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

@ -1,3 +1,58 @@
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!ENTITY miFindCSSRules.label "Find CSS Rules...">
<!ENTITY miFindCSSRules.accesskey "F">
<!ENTITY newRules.label "New">
<!ENTITY deleteSelectedRules.label "Delete">
<!ENTITY disableSelectedRules.label "Disable">
<!ENTITY openSelectedFileInEditor.label "Open File in Editor">
<!ENTITY newProperty.label "New Property">
<!ENTITY editSelectedProperty.label "Edit">
<!ENTITY deleteSelectedProperty.label "Delete">
<!-- LOCALIZATION NOTE: DO NOT LOCALIZE "!important" since it is a CSS API -->
<!ENTITY toggleSelectedImportant.label "Toggle !important">
<!ENTITY styleRule.label "Rule">
<!ENTITY styleRuleURI.label "File">
<!ENTITY styleRuleWeight.label "Weight">
<!ENTITY styleRuleLineNumber.label "Line">
<!ENTITY styleRulePropPriority.label "Priority">
<!ENTITY styleRulePropName.label "Property">
<!ENTITY styleRulePropValue.label "Value">

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

@ -0,0 +1,39 @@
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Netscape Communications Corporation.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!ENTITY styleLocation.label "Stylesheet">
<!ENTITY styleRules.label "Rules">

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

@ -0,0 +1,45 @@
<!-- ***** BEGIN LICENSE BLOCK *****
- 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 DOM Inspector.
-
- The Initial Developer of the Original Code is
- Christopher A. Aillon <christopher@aillon.com>.
- Portions created by the Initial Developer are Copyright (C) 2003
- the Initial Developer. All Rights Reserved.
-
- Contributor(s):
-
- 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 LGPL or the GPL. 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 ***** -->
<!ENTITY bindingContent.label "Content">
<!ENTITY bindingMethods.label "Methods">
<!ENTITY bindingProperties.label "Properties">
<!ENTITY bindingGetter.label "Getter">
<!ENTITY bindingSetter.label "Setter">
<!ENTITY bindingProperty.label "Property">
<!ENTITY bindingHandlers.label "Handlers">
<!ENTITY bindingResources.label "Resources">
<!ENTITY bindingSourceCode.label "Source Code">