From a8fa2dbb3e1a7bbc005c6e67551a96d6b7e27a76 Mon Sep 17 00:00:00 2001 From: "blakeross%telocity.com" Date: Thu, 22 Feb 2001 23:32:13 +0000 Subject: [PATCH] Using xul in mailnews instead of including strres.js everywhere. Patch by Mark Olson (maolson@earthlink.net). r=jag sr=bienvenu --- .../resources/content/abCardOverlay.js | 17 ++++---- .../resources/content/abCardOverlay.xul | 7 ++-- .../resources/content/abCardViewOverlay.js | 41 ++++++++++++------- .../resources/content/abCardViewOverlay.xul | 5 +-- .../resources/content/abEditCardDialog.xul | 2 + .../resources/content/abEditListDialog.xul | 3 +- .../resources/content/abListOverlay.xul | 5 ++- .../resources/content/abMailListDialog.js | 13 +++--- .../resources/content/abMailListDialog.xul | 3 +- .../resources/content/abNewCardDialog.xul | 3 +- .../content/abSelectAddressesDialog.js | 16 +++++--- .../content/abSelectAddressesDialog.xul | 11 ++--- .../addrbook/resources/content/addressbook.js | 8 ++-- .../resources/content/addressbook.xul | 4 ++ .../prefs/resources/content/AccountManager.js | 9 ++-- .../resources/content/AccountManager.xul | 6 +-- .../prefs/resources/content/AccountWizard.js | 10 ++--- .../prefs/resources/content/AccountWizard.xul | 4 +- .../prefs/resources/content/SmtpServerList.js | 7 ++-- .../resources/content/SmtpServerList.xul | 2 +- .../prefs/resources/content/am-copies.xul | 8 ++-- .../content/am-identity-advanced.xul | 1 - .../base/prefs/resources/content/am-main.xul | 1 + .../base/prefs/resources/content/am-server.js | 4 +- .../prefs/resources/content/aw-accname.js | 5 ++- .../prefs/resources/content/aw-accname.xul | 2 +- .../base/prefs/resources/content/aw-done.js | 5 ++- .../base/prefs/resources/content/aw-done.xul | 2 +- .../prefs/resources/content/aw-identity.js | 17 ++++---- .../prefs/resources/content/aw-identity.xul | 2 +- .../base/prefs/resources/content/aw-login.js | 7 ++-- .../base/prefs/resources/content/aw-login.xul | 2 +- .../prefs/resources/content/aw-newsserver.xul | 2 +- .../base/prefs/resources/content/aw-server.js | 8 ++-- .../prefs/resources/content/aw-server.xul | 2 +- .../prefs/resources/content/pref-mailnews.xul | 1 + .../content/pref-viewing_messages.xul | 3 +- .../base/resources/content/commandglue.js | 31 +++++++------- .../resources/content/imapFolderProps.xul | 1 - .../content/mail3PaneWindowVertLayout.xul | 8 ++-- .../resources/content/mailContextMenus.js | 24 +++++------ mailnews/base/resources/content/mailWindow.js | 12 +++--- .../resources/content/mailWindowOverlay.js | 21 ++++++---- .../base/resources/content/messageWindow.xul | 7 ++-- mailnews/base/resources/content/messenger.xul | 8 ++-- .../resources/content/msgAccountCentral.js | 18 ++++---- .../resources/content/msgAccountCentral.xul | 4 +- .../content/msgFolderPickerOverlay.js | 8 ++-- .../content/msgFolderPickerOverlay.xul | 8 ++-- .../resources/content/msgHdrViewOverlay.js | 6 ++- .../base/resources/content/msgPrintEngine.xul | 1 + .../resources/content/msgViewNavigation.js | 9 ++-- .../resources/content/newFolderDialog.xul | 2 +- 53 files changed, 236 insertions(+), 180 deletions(-) diff --git a/mailnews/addrbook/resources/content/abCardOverlay.js b/mailnews/addrbook/resources/content/abCardOverlay.js index b70dad8747a..a0880aebca8 100644 --- a/mailnews/addrbook/resources/content/abCardOverlay.js +++ b/mailnews/addrbook/resources/content/abCardOverlay.js @@ -23,7 +23,7 @@ var editCard; var gOnSaveListeners = new Array; -var Bundle = srGetStrBundle("chrome://messenger/locale/addressbook/addressBook.properties"); +var gAddressBookBundle; function OnLoadNewCard() { @@ -121,9 +121,9 @@ function OnLoadEditCard() GetCardValues(editCard.card, document); - var displayName = editCard.card.displayName; - top.window.title = Bundle.formatStringFromName(editCard.titleProperty, - [ displayName ], 1); + var displayName = editCard.card.displayName; + top.window.title = gAddressBookBundle.getFormattedString(editCard.titleProperty, + [ displayName ]); } function RegisterSaveListener(func) @@ -140,6 +140,7 @@ function CallSaveListeners() function InitEditCard() { + gAddressBookBundle = document.getElementById("bundle_addressBook"); // create editCard object that contains global variables for editCard.js editCard = new Object; @@ -364,8 +365,8 @@ function GenerateDisplayName() displayName = firstNameField.value + separator + lastNameField.value; displayNameField.value = displayName; - top.window.title = Bundle.formatStringFromName(editCard.titleProperty, - [ displayName ], 1); + top.window.title = gAddressBookBundle.getFormattedString(editCard.titleProperty, + [ displayName ]); } } @@ -375,8 +376,8 @@ function DisplayNameChanged() editCard.generateDisplayName = false; var displayName = document.getElementById('DisplayName').value; - var title = Bundle.formatStringFromName(editCard.titleProperty, - [ displayName ], 1); + var title = gAddressBookBundle.getFormattedString(editCard.titleProperty, + [ displayName ]); if ( top.window.title != title ) top.window.title = title; } diff --git a/mailnews/addrbook/resources/content/abCardOverlay.xul b/mailnews/addrbook/resources/content/abCardOverlay.xul index 65a554aa4c2..8b445d6afc2 100644 --- a/mailnews/addrbook/resources/content/abCardOverlay.xul +++ b/mailnews/addrbook/resources/content/abCardOverlay.xul @@ -21,13 +21,14 @@ Rights Reserved. - - + - + + - diff --git a/mailnews/base/resources/content/mail3PaneWindowVertLayout.xul b/mailnews/base/resources/content/mail3PaneWindowVertLayout.xul index 00af19fccd9..a34de686806 100644 --- a/mailnews/base/resources/content/mail3PaneWindowVertLayout.xul +++ b/mailnews/base/resources/content/mail3PaneWindowVertLayout.xul @@ -50,8 +50,10 @@ Rights Reserved. persist="width height screenX screenY sizemode" windowtype="mail:3pane"> - -