[DE] Warning when saving to rtf format
This commit is contained in:
parent
e7cfb6909b
commit
9e0473b8ea
|
@ -286,11 +286,11 @@ define([
|
||||||
|
|
||||||
clickSaveAsFormat: function(menu, format) {
|
clickSaveAsFormat: function(menu, format) {
|
||||||
if (menu) {
|
if (menu) {
|
||||||
if (format == Asc.c_oAscFileType.TXT) {
|
if (format == Asc.c_oAscFileType.TXT || format == Asc.c_oAscFileType.RTF) {
|
||||||
Common.UI.warning({
|
Common.UI.warning({
|
||||||
closable: false,
|
closable: false,
|
||||||
title: this.notcriticalErrorTitle,
|
title: this.notcriticalErrorTitle,
|
||||||
msg: this.warnDownloadAs,
|
msg: (format == Asc.c_oAscFileType.TXT) ? this.warnDownloadAs : this.warnDownloadAsRTF,
|
||||||
buttons: ['ok', 'cancel'],
|
buttons: ['ok', 'cancel'],
|
||||||
callback: _.bind(function(btn){
|
callback: _.bind(function(btn){
|
||||||
if (btn == 'ok') {
|
if (btn == 'ok') {
|
||||||
|
@ -731,6 +731,7 @@ define([
|
||||||
textLoadHistory : 'Loading versions history...',
|
textLoadHistory : 'Loading versions history...',
|
||||||
notcriticalErrorTitle: 'Warning',
|
notcriticalErrorTitle: 'Warning',
|
||||||
leavePageText: 'All unsaved changes in this document will be lost.<br> Click \'Cancel\' then \'Save\' to save them. Click \'OK\' to discard all the unsaved changes.',
|
leavePageText: 'All unsaved changes in this document will be lost.<br> Click \'Cancel\' then \'Save\' to save them. Click \'OK\' to discard all the unsaved changes.',
|
||||||
warnDownloadAs : 'If you continue saving in this format all features except the text will be lost.<br>Are you sure you want to continue?'
|
warnDownloadAs : 'If you continue saving in this format all features except the text will be lost.<br>Are you sure you want to continue?',
|
||||||
|
warnDownloadAsRTF : 'If you continue saving in this format some of the formatting might be lost.<br>Are you sure you want to continue?'
|
||||||
}, DE.Controllers.LeftMenu || {}));
|
}, DE.Controllers.LeftMenu || {}));
|
||||||
});
|
});
|
|
@ -302,6 +302,7 @@
|
||||||
"DE.Controllers.LeftMenu.textReplaceSkipped": "The replacement has been made. {0} occurrences were skipped.",
|
"DE.Controllers.LeftMenu.textReplaceSkipped": "The replacement has been made. {0} occurrences were skipped.",
|
||||||
"DE.Controllers.LeftMenu.textReplaceSuccess": "The search has been done. Occurrences replaced: {0}",
|
"DE.Controllers.LeftMenu.textReplaceSuccess": "The search has been done. Occurrences replaced: {0}",
|
||||||
"DE.Controllers.LeftMenu.warnDownloadAs": "If you continue saving in this format all features except the text will be lost.<br>Are you sure you want to continue?",
|
"DE.Controllers.LeftMenu.warnDownloadAs": "If you continue saving in this format all features except the text will be lost.<br>Are you sure you want to continue?",
|
||||||
|
"DE.Controllers.LeftMenu.warnDownloadAsRTF": "If you continue saving in this format some of the formatting might be lost.<br>Are you sure you want to continue?",
|
||||||
"DE.Controllers.Main.applyChangesTextText": "Loading the changes...",
|
"DE.Controllers.Main.applyChangesTextText": "Loading the changes...",
|
||||||
"DE.Controllers.Main.applyChangesTitleText": "Loading the Changes",
|
"DE.Controllers.Main.applyChangesTitleText": "Loading the Changes",
|
||||||
"DE.Controllers.Main.convertationTimeoutText": "Conversion timeout exceeded.",
|
"DE.Controllers.Main.convertationTimeoutText": "Conversion timeout exceeded.",
|
||||||
|
|
Loading…
Reference in a new issue