From b84697a53483c1f54da478c2b68fa4a8cee99f59 Mon Sep 17 00:00:00 2001 From: SergeyEzhin Date: Thu, 18 May 2023 14:05:55 +0300 Subject: [PATCH] [DE PE SSE mobile] Fix Bug 52823 --- apps/documenteditor/mobile/locale/en.json | 6 ++++-- apps/documenteditor/mobile/src/controller/Main.jsx | 2 +- apps/documenteditor/mobile/src/controller/Search.jsx | 6 +++--- apps/presentationeditor/mobile/locale/en.json | 9 ++++++--- apps/presentationeditor/mobile/src/controller/Main.jsx | 2 +- apps/presentationeditor/mobile/src/controller/Search.jsx | 6 +++--- apps/spreadsheeteditor/mobile/locale/en.json | 6 ++++-- apps/spreadsheeteditor/mobile/src/controller/Main.jsx | 2 +- apps/spreadsheeteditor/mobile/src/controller/Search.jsx | 6 +++--- 9 files changed, 26 insertions(+), 19 deletions(-) diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 1034785623..7dbcf833bb 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -554,7 +554,8 @@ "textHasMacros": "The file contains automatic macros.
Do you want to run macros?", "textNo": "No", "textNoLicenseTitle": "License limit reached", - "textNoTextFound": "Text not found", + "del_textNoTextFound": "Text not found", + "textNoMatches": "No Matches", "textOk": "Ok", "textPaidFeature": "Paid feature", "textRemember": "Remember my choice", @@ -650,7 +651,8 @@ "textNo": "No", "textNoChanges": "No changes (Read only)", "textNoCharacters": "Nonprinting Characters", - "textNoTextFound": "Text not found", + "del_textNoTextFound": "Text not found", + "textNoMatches": "No Matches", "textOk": "Ok", "textOpenFile": "Enter a password to open the file", "textOrientation": "Orientation", diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index e3db3d7420..ff253f8f08 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -879,7 +879,7 @@ class MainController extends Component { if (found) { f7.dialog.alert(null, !(found - replaced > 0) ? t('Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`)); } else { - f7.dialog.alert(null, t('Main.textNoTextFound')); + f7.dialog.alert(null, t('Main.textNoMatches')); } } diff --git a/apps/documenteditor/mobile/src/controller/Search.jsx b/apps/documenteditor/mobile/src/controller/Search.jsx index a72eb65863..0535d6290b 100644 --- a/apps/documenteditor/mobile/src/controller/Search.jsx +++ b/apps/documenteditor/mobile/src/controller/Search.jsx @@ -107,7 +107,7 @@ const Search = withTranslation()(props => { if (params.highlight) api.asc_selectSearchingResults(true); api.asc_findText(options, params.forward, function (resultCount) { - !resultCount && f7.dialog.alert(null, _t.textNoTextFound); + !resultCount && f7.dialog.alert(null, t('Settings.textNoMatches')); }); }; @@ -126,7 +126,7 @@ const Search = withTranslation()(props => { api.asc_findText(options, params.forward, function (resultCount) { if(!resultCount) { - f7.dialog.alert(null, _t.textNoTextFound); + f7.dialog.alert(null, t('Settings.textNoMatches')); return; } @@ -143,7 +143,7 @@ const Search = withTranslation()(props => { api.asc_findText(options, params.forward, function (resultCount) { if(!resultCount) { - f7.dialog.alert(null, _t.textNoTextFound); + f7.dialog.alert(null, t('Settings.textNoMatches')); return; } diff --git a/apps/presentationeditor/mobile/locale/en.json b/apps/presentationeditor/mobile/locale/en.json index a5bcef3224..764e8d63b2 100644 --- a/apps/presentationeditor/mobile/locale/en.json +++ b/apps/presentationeditor/mobile/locale/en.json @@ -112,7 +112,8 @@ "textHasMacros": "The file contains automatic macros.
Do you want to run macros?", "textNo": "No", "textNoLicenseTitle": "License limit reached", - "textNoTextFound": "Text not found", + "del_textNoTextFound": "Text not found", + "textNoMatches": "No Matches", "textOpenFile": "Enter a password to open the file", "textPaidFeature": "Paid feature", "textRemember": "Remember my choice", @@ -364,7 +365,8 @@ "textNextSlide": "Next Slide", "textNone": "None", "textNoStyles": "No styles for this type of chart.", - "textNoTextFound": "Text not found", + "del_textNoTextFound": "Text not found", + "textNoMatches": "No Matches", "textNotUrl": "This field should be a URL in the format \"http://www.example.com\"", "textNumbers": "Numbers", "textOk": "Ok", @@ -460,7 +462,8 @@ "textLoading": "Loading...", "textLocation": "Location", "textMacrosSettings": "Macros Settings", - "textNoTextFound": "Text not found", + "del_textNoTextFound": "Text not found", + "textNoMatches": "No Matches", "textOk": "Ok", "textOwner": "Owner", "textPoint": "Point", diff --git a/apps/presentationeditor/mobile/src/controller/Main.jsx b/apps/presentationeditor/mobile/src/controller/Main.jsx index 5c61e79446..8882652caa 100644 --- a/apps/presentationeditor/mobile/src/controller/Main.jsx +++ b/apps/presentationeditor/mobile/src/controller/Main.jsx @@ -468,7 +468,7 @@ class MainController extends Component { if (found) { f7.dialog.alert(null, !(found - replaced > 0) ? t('Controller.Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Controller.Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`)); } else { - f7.dialog.alert(null, t('Controller.Main.textNoTextFound')); + f7.dialog.alert(null, t('Controller.Main.textNoMatches')); } } diff --git a/apps/presentationeditor/mobile/src/controller/Search.jsx b/apps/presentationeditor/mobile/src/controller/Search.jsx index b14145a7e1..e7773bfbe2 100644 --- a/apps/presentationeditor/mobile/src/controller/Search.jsx +++ b/apps/presentationeditor/mobile/src/controller/Search.jsx @@ -85,7 +85,7 @@ const Search = withTranslation()(props => { options.put_MatchCase(params.caseSensitive); api.asc_findText(options, params.forward, function(resultCount) { - !resultCount && f7.dialog.alert(null, _t.textNoTextFound); + !resultCount && f7.dialog.alert(null, t('View.Settings.textNoMatches')); }); // } @@ -107,7 +107,7 @@ const Search = withTranslation()(props => { api.asc_findText(options, params.forward, function(resultCount) { if(!resultCount) { - f7.dialog.alert(null, _t.textNoTextFound); + f7.dialog.alert(null, t('View.Settings.textNoMatches')); return; } @@ -126,7 +126,7 @@ const Search = withTranslation()(props => { api.asc_findText(options, params.forward, function(resultCount) { if(!resultCount) { - f7.dialog.alert(null, _t.textNoTextFound); + f7.dialog.alert(null, t('View.Settings.textNoMatches')); return; } diff --git a/apps/spreadsheeteditor/mobile/locale/en.json b/apps/spreadsheeteditor/mobile/locale/en.json index eb3c7012b2..a776cbd8b4 100644 --- a/apps/spreadsheeteditor/mobile/locale/en.json +++ b/apps/spreadsheeteditor/mobile/locale/en.json @@ -151,7 +151,8 @@ "textNo": "No", "textNoChoices": "There are no choices for filling the cell.
Only text values from the column can be selected for replacement.", "textNoLicenseTitle": "License limit reached", - "textNoTextFound": "Text not found", + "del_textNoTextFound": "Text not found", + "textNoMatches": "No Matches", "textOk": "Ok", "textPaidFeature": "Paid feature", "textRemember": "Remember my choice", @@ -651,7 +652,8 @@ "textMargins": "Margins", "textMatchCase": "Match Case", "textMatchCell": "Match Cell", - "textNoTextFound": "Text not found", + "del_textNoTextFound": "Text not found", + "textNoMatches": "No Matches", "textOk": "Ok", "textOpenFile": "Enter a password to open the file", "textOrientation": "Orientation", diff --git a/apps/spreadsheeteditor/mobile/src/controller/Main.jsx b/apps/spreadsheeteditor/mobile/src/controller/Main.jsx index d1664367a4..0d57ded72f 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Main.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Main.jsx @@ -587,7 +587,7 @@ class MainController extends Component { const { t } = this.props; if (this.api.isReplaceAll) { - f7.dialog.alert(null, (found) ? ((!found - replaced) ? t('Controller.Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Controller.Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`)) : t('Controller.Main.textNoTextFound')); + f7.dialog.alert(null, (found) ? ((!found - replaced) ? t('Controller.Main.textReplaceSuccess').replace(/\{0\}/, `${replaced}`) : t('Controller.Main.textReplaceSkipped').replace(/\{0\}/, `${found - replaced}`)) : t('Controller.Main.textNoMatches')); } } diff --git a/apps/spreadsheeteditor/mobile/src/controller/Search.jsx b/apps/spreadsheeteditor/mobile/src/controller/Search.jsx index 011003b330..fc9327ca27 100644 --- a/apps/spreadsheeteditor/mobile/src/controller/Search.jsx +++ b/apps/spreadsheeteditor/mobile/src/controller/Search.jsx @@ -165,7 +165,7 @@ const Search = withTranslation()(props => { if (params.highlight) api.asc_selectSearchingResults(true); api.asc_findText(options, function(resultCount) { - !resultCount && f7.dialog.alert(null, _t.textNoTextFound); + !resultCount && f7.dialog.alert(null, t('View.Settings.textNoMatches')); }); }; @@ -197,7 +197,7 @@ const Search = withTranslation()(props => { api.asc_findText(options, function(resultCount) { if(!resultCount) { - f7.dialog.alert(null, _t.textNoTextFound); + f7.dialog.alert(null, t('View.Settings.textNoMatches')); return; } @@ -227,7 +227,7 @@ const Search = withTranslation()(props => { api.asc_findText(options, function(resultCount) { if(!resultCount) { - f7.dialog.alert(null, _t.textNoTextFound); + f7.dialog.alert(null, t('View.Settings.textNoMatches')); return; }