зеркало из https://github.com/mozilla/pjs.git
Allow different prompt message when prompting to publish file. b=149741, r=brade, sr=alecf
This commit is contained in:
Родитель
84848f1167
Коммит
3606e742be
|
@ -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();
|
||||
|
|
|
@ -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:
|
||||
|
|
Загрузка…
Ссылка в новой задаче