diff --git a/browser/components/bookmarks/content/bookmarks.js b/browser/components/bookmarks/content/bookmarks.js index 8eb1e63a874e..d0d619749123 100644 --- a/browser/components/bookmarks/content/bookmarks.js +++ b/browser/components/bookmarks/content/bookmarks.js @@ -737,17 +737,19 @@ var BookmarksCommand = { // default to true: if it were false, we wouldn't get this far var warnOnOpen = { value: true }; - var messageKey = "tabs.openWarningMultiple"; + var messageKey = "tabs.openWarningMultipleBranded"; var openKey = "tabs.openButtonMultiple"; var buttonPressed = promptService.confirmEx(window, BookmarksUtils.getLocaleString("tabs.openWarningTitle"), - BookmarksUtils.getLocaleString(messageKey, [numTabsToOpen]), + BookmarksUtils.getLocaleString(messageKey, + [numTabsToOpen, BookmarksUtils._brandShortName]), (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_0) + (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1), BookmarksUtils.getLocaleString(openKey), null, null, - BookmarksUtils.getLocaleString("tabs.openWarningPromptMe"), + BookmarksUtils.getLocaleString("tabs.openWarningPromptMeBranded", + [BookmarksUtils._brandShortName]), warnOnOpen); reallyOpen = (buttonPressed == 0); diff --git a/browser/components/places/content/controller.js b/browser/components/places/content/controller.js index 3ef091fa2778..4c4e7a59d6ad 100755 --- a/browser/components/places/content/controller.js +++ b/browser/components/places/content/controller.js @@ -1338,18 +1338,22 @@ var PlacesController = { // default to true: if it were false, we wouldn't get this far var warnOnOpen = { value: true }; - var messageKey = "tabs.openWarningMultiple"; + var messageKey = "tabs.openWarningMultipleBranded"; var openKey = "tabs.openButtonMultiple"; var strings = document.getElementById("placeBundle"); + var brandBundle = document.getElementById("bundle_brand"); + var brandShortName = brandBundle.getString("brandShortName"); var buttonPressed = promptService.confirmEx(window, strings.getString("tabs.openWarningTitle"), - strings.getFormattedString(messageKey, [numTabsToOpen]), + strings.getFormattedString(messageKey, + [numTabsToOpen, brandShortName]), (promptService.BUTTON_TITLE_IS_STRING * promptService.BUTTON_POS_0) + (promptService.BUTTON_TITLE_CANCEL * promptService.BUTTON_POS_1), strings.getString(openKey), null, null, - strings.getString("tabs.openWarningPromptMe"), + strings.getFormattedString("tabs.openWarningPromptMeBranded", + [brandShortName]), warnOnOpen); reallyOpen = (buttonPressed == 0); diff --git a/browser/components/places/content/places.xul b/browser/components/places/content/places.xul index 8a7db60a96d0..2be831a72e40 100755 --- a/browser/components/places/content/places.xul +++ b/browser/components/places/content/places.xul @@ -68,7 +68,7 @@ - + - - - - + + - - + + diff --git a/toolkit/content/widgets/tabbrowser.xml b/toolkit/content/widgets/tabbrowser.xml index f8e1750f48ac..b75eb359c0ac 100644 --- a/toolkit/content/widgets/tabbrowser.xml +++ b/toolkit/content/widgets/tabbrowser.xml @@ -1275,7 +1275,7 @@ if (!aAll) --tabsToClose; - var messageKey = (tabsToClose == 1) ? "tabs.closeWarningOne" : "tabs.closeWarningMultiple"; + var messageKey = (tabsToClose == 1) ? "tabs.closeWarningOneTab" : "tabs.closeWarningMultipleTabs"; var closeKey = (tabsToClose == 1) ? "tabs.closeButtonOne" : "tabs.closeButtonMultiple"; // focus the window before prompting. // this will raise any minimized window, which will diff --git a/toolkit/locales/en-US/chrome/global/tabbrowser.properties b/toolkit/locales/en-US/chrome/global/tabbrowser.properties index 780e0b7469e6..c73ed3775a51 100644 --- a/toolkit/locales/en-US/chrome/global/tabbrowser.properties +++ b/toolkit/locales/en-US/chrome/global/tabbrowser.properties @@ -7,8 +7,8 @@ browsewithcaret.checkWindowTitle=Caret Browsing browsewithcaret.checkLabel=Pressing F7 turns Caret Browsing on or off. This feature places a moveable cursor in web pages, allowing you to select text with the keyboard. Do you want to turn Caret Browsing on? browsewithcaret.checkButtonLabel=Yes tabs.closeWarningTitle=Confirm close -tabs.closeWarningOne=You are about to close %S open tab. Are you sure you want to continue? -tabs.closeWarningMultiple=You are about to close %S open tabs. Are you sure you want to continue? +tabs.closeWarningOneTab=You are about to close %S tab. Are you sure you want to continue? +tabs.closeWarningMultipleTabs=You are about to close %S tabs. Are you sure you want to continue? tabs.closeButtonOne=Close tab tabs.closeButtonMultiple=Close tabs -tabs.closeWarningPromptMe=Warn me when I attempt to close multiple tabs \ No newline at end of file +tabs.closeWarningPromptMe=Warn me when I attempt to close multiple tabs