diff --git a/apps/common/main/lib/view/AutoCorrectDialog.js b/apps/common/main/lib/view/AutoCorrectDialog.js index 9e50b9825..0cea0bf82 100644 --- a/apps/common/main/lib/view/AutoCorrectDialog.js +++ b/apps/common/main/lib/view/AutoCorrectDialog.js @@ -335,7 +335,6 @@ define([ 'text!common/main/lib/template/AutoCorrectDialog.template', Common.Utils.InternalSettings.set(me.appPrefix + "settings-autoformat-double-space", checked); me.api.asc_SetAutoCorrectDoubleSpaceWithPeriod(checked); }); - this.chDoubleSpaces.setVisible(this.appPrefix=='de-'); // AutoCorrect this.chFLSentence = new Common.UI.CheckBox({ el: $window.find('#id-autocorrect-dialog-chk-fl-sentence'), diff --git a/apps/presentationeditor/main/app/controller/Main.js b/apps/presentationeditor/main/app/controller/Main.js index 672c06ff9..5df6928e3 100644 --- a/apps/presentationeditor/main/app/controller/Main.js +++ b/apps/presentationeditor/main/app/controller/Main.js @@ -2271,6 +2271,10 @@ define([ value = Common.localStorage.getBool("pe-settings-autoformat-fl-cells", true); Common.Utils.InternalSettings.set("pe-settings-autoformat-fl-cells", value); me.api.asc_SetAutoCorrectFirstLetterOfCells && me.api.asc_SetAutoCorrectFirstLetterOfCells(value); + + value = Common.localStorage.getBool("pe-settings-autoformat-double-space", Common.Utils.isMac); // add period with double-space in MacOs by default + Common.Utils.InternalSettings.set("pe-settings-autoformat-double-space", value); + me.api.asc_SetAutoCorrectDoubleSpaceWithPeriod(value); }, showRenameUserDialog: function() { diff --git a/apps/presentationeditor/main/locale/en.json b/apps/presentationeditor/main/locale/en.json index d34ce7e77..df3295d47 100644 --- a/apps/presentationeditor/main/locale/en.json +++ b/apps/presentationeditor/main/locale/en.json @@ -316,6 +316,7 @@ "Common.Views.AutoCorrectDialog.warnReplace": "The autocorrect entry for %1 already exists. Do you want to replace it?", "Common.Views.AutoCorrectDialog.warnReset": "Any autocorrect you added will be removed and the changed ones will be restored to their original values. Do you want to continue?", "Common.Views.AutoCorrectDialog.warnRestore": "The autocorrect entry for %1 will be reset to its original value. Do you want to continue?", + "Common.Views.AutoCorrectDialog.textDoubleSpaces": "Add period with double-space", "Common.Views.Chat.textSend": "Send", "Common.Views.Comments.mniAuthorAsc": "Author A to Z", "Common.Views.Comments.mniAuthorDesc": "Author Z to A",