зеркало из https://github.com/mozilla/pjs.git
Bugzilla Bug 83017 Frame Info dialog has title 'View Page Info'
patch by db48x@yahoo.com r=fabian sr=jst
This commit is contained in:
Родитель
0df4e1127a
Коммит
825c1703f0
|
@ -53,11 +53,23 @@ var onLoadRegistry = [ ];
|
|||
*/
|
||||
function onLoadPageInfo()
|
||||
{
|
||||
var strbundle = document.getElementById("pageinfobundle");
|
||||
|
||||
var page;
|
||||
var docTitle;
|
||||
if ((window.arguments.length >= 1) && window.arguments[0])
|
||||
{
|
||||
page = window.arguments[0];
|
||||
docTitle = strbundle.getString("frameInfo.title");
|
||||
}
|
||||
else
|
||||
{
|
||||
page = window.opener.frames[0].document;
|
||||
docTitle = strbundle.getString("pageInfo.title");
|
||||
}
|
||||
|
||||
window.document.title = docTitle;
|
||||
|
||||
var root = document.getElementById("cont");
|
||||
|
||||
makeDocument(page, root);
|
||||
|
@ -128,7 +140,7 @@ function makeDocument(page, root)
|
|||
}
|
||||
} else {
|
||||
try {
|
||||
var pageInfoBundle = document.getElementById("bundle_pageInfo");
|
||||
var pageInfoBundle = document.getElementById("pageinfobundle");
|
||||
lastModified = pageInfoBundle.getString("unknown");
|
||||
} catch(e) {
|
||||
lastModified = "Unknown";
|
||||
|
|
|
@ -36,7 +36,6 @@
|
|||
|
||||
<window id="main-window"
|
||||
xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"
|
||||
title="&pageInfo.title;"
|
||||
titlemodifier="&mainWindow.titlemodifier;"
|
||||
titlepreface="&mainWindow.preface;"
|
||||
titlemenuseparator ="&mainWindow.titlemodifierseperator;"
|
||||
|
@ -47,7 +46,7 @@
|
|||
persist="screenX screenY width height sizemode">
|
||||
|
||||
<script type="application/x-javascript" src="chrome://navigator/content/pageInfo.js"/>
|
||||
<stringbundle src="chrome://navigator/locale/pageInfo.properties" id="bundle_pageInfo"/>
|
||||
<stringbundle id="pageinfobundle" src="chrome://navigator/locale/pageInfo.properties"/>
|
||||
|
||||
<vbox id="cont" flex="1">
|
||||
<label class="header" value="&pageInfo.description;"/>
|
||||
|
@ -62,7 +61,6 @@
|
|||
|
||||
<!-- General page information -->
|
||||
<vbox>
|
||||
<label class="header label" value="&pageInfo.description;"/>
|
||||
<vbox class="inset" id="documentinfo">
|
||||
<grid>
|
||||
<columns>
|
||||
|
|
|
@ -4,23 +4,20 @@
|
|||
<!ENTITY mainWindow.titlemodifierseperator " - ">
|
||||
<!ENTITY mainWindow.preface "Info for: ">
|
||||
|
||||
<!ENTITY pageInfo.title "Page Info">
|
||||
<!ENTITY pageInfo.description "Information about the current page">
|
||||
<!ENTITY pageInfo.generalTab "General">
|
||||
<!ENTITY pageInfo.pageTitle "Title:">
|
||||
<!ENTITY pageInfo.URL "URL:">
|
||||
<!ENTITY pageInfo.lastModified "Last Modified:">
|
||||
|
||||
<!ENTITY pageInfo.generalTab "General">
|
||||
<!ENTITY pageInfo.pageTitle "Title:">
|
||||
<!ENTITY pageInfo.URL "URL:">
|
||||
<!ENTITY pageInfo.lastModified "Last Modified:">
|
||||
<!ENTITY pageInfo.formsTab "Forms">
|
||||
<!ENTITY pageInfo.formHeader "Forms on this page">
|
||||
<!ENTITY pageInfo.formAction "Form Action">
|
||||
<!ENTITY pageInfo.formMethod "Method">
|
||||
<!ENTITY pageInfo.formName "Name">
|
||||
|
||||
<!ENTITY pageInfo.formsTab "Forms">
|
||||
<!ENTITY pageInfo.formHeader "Forms on this page">
|
||||
<!ENTITY pageInfo.formAction "Form Action">
|
||||
<!ENTITY pageInfo.formMethod "Method">
|
||||
<!ENTITY pageInfo.formName "Name">
|
||||
|
||||
<!ENTITY pageInfo.imagesTab "Images">
|
||||
<!ENTITY pageInfo.imageHeader "Images on this page">
|
||||
<!ENTITY pageInfo.imageURL "Image URL">
|
||||
<!ENTITY pageInfo.imageWidth "Width">
|
||||
<!ENTITY pageInfo.imageHeight "Height">
|
||||
<!ENTITY pageInfo.imageAltText "Alt Text">
|
||||
<!ENTITY pageInfo.imagesTab "Images">
|
||||
<!ENTITY pageInfo.imageHeader "Images on this page">
|
||||
<!ENTITY pageInfo.imageURL "Image URL">
|
||||
<!ENTITY pageInfo.imageWidth "Width">
|
||||
<!ENTITY pageInfo.imageHeight "Height">
|
||||
<!ENTITY pageInfo.imageAltText "Alt Text">
|
||||
|
|
|
@ -20,3 +20,5 @@
|
|||
#
|
||||
|
||||
unknown=Unknown
|
||||
pageInfo.title=Page Info
|
||||
frameInfo.title=Frame Info
|
||||
|
|
Загрузка…
Ссылка в новой задаче