From 3606e742be1ec98a092cd7efa1371deec3ad0384 Mon Sep 17 00:00:00 2001 From: "cmanske%netscape.com" Date: Fri, 9 Aug 2002 01:44:23 +0000 Subject: [PATCH] Allow different prompt message when prompting to publish file. b=149741, r=brade, sr=alecf --- editor/ui/composer/content/editor.js | 2 +- editor/ui/composer/locale/en-US/editor.properties | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/editor/ui/composer/content/editor.js b/editor/ui/composer/content/editor.js index 90e057eb070..a71a76b5e52 100644 --- a/editor/ui/composer/content/editor.js +++ b/editor/ui/composer/content/editor.js @@ -579,7 +579,7 @@ function CheckAndSaveDocument(command, allowDontSave) title = GetString("untitled"); var dialogTitle = GetString(doPublish ? "PublishPage" : "SaveDocument"); - var dialogMsg = GetString("SaveFilePrompt"); + var dialogMsg = GetString(doPublish ? "PublishPrompt" : "SaveFilePrompt"); dialogMsg = (dialogMsg.replace(/%title%/,title)).replace(/%reason%/,reasonToSave); var promptService = GetPromptService(); diff --git a/editor/ui/composer/locale/en-US/editor.properties b/editor/ui/composer/locale/en-US/editor.properties index ba0fbffe32e..312bd399439 100644 --- a/editor/ui/composer/locale/en-US/editor.properties +++ b/editor/ui/composer/locale/en-US/editor.properties @@ -51,8 +51,9 @@ AllFiles=All Files BeforeClosing=before closing BeforePreview=before viewing in Navigator BeforeValidate=before validating the document -# LOCALIZATION NOTE (SaveFilePrompt): Don't translate %title% and %reason% (this is the reason for asking user to close, such as "before closing") +# LOCALIZATION NOTE (SaveFilePrompt, PublishPrompt): Don't translate %title% and %reason% (this is the reason for asking user to close, such as "before closing") SaveFilePrompt=Save changes to "%title%" %reason%? +PublishPrompt=Save changes to "%title%" %reason%? SaveFileFailed=Saving file failed! # Publishing error strings: