diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json index 52bb88ea4f..5c0e3ada9a 100644 --- a/apps/documenteditor/mobile/locale/en.json +++ b/apps/documenteditor/mobile/locale/en.json @@ -219,7 +219,7 @@ "textBefore": "Before", "textBehind": "Behind Text", "textBorder": "Border", - "textBringToForeground": "Bring to foreground", + "textBringToForeground": "Bring to Foreground", "textBullets": "Bullets", "textBulletsAndNumbers": "Bullets & Numbers", "textCellMargins": "Cell Margins", diff --git a/apps/documenteditor/mobile/src/controller/Main.jsx b/apps/documenteditor/mobile/src/controller/Main.jsx index c9ba77dfeb..aa1f50825c 100644 --- a/apps/documenteditor/mobile/src/controller/Main.jsx +++ b/apps/documenteditor/mobile/src/controller/Main.jsx @@ -283,10 +283,18 @@ class MainController extends Component { .then ( result => { window["flat_desine"] = true; const {t} = this.props; + let _translate = t('Main.SDK', {returnObjects:true}); + for (let item in _translate) { + if (_translate.hasOwnProperty(item)) { + const str = _translate[item]; + if (item[item.length-1]===' ' && str[str.length-1]!==' ') + _translate[item] += ' '; + } + } this.api = new Asc.asc_docs_api({ 'id-view' : 'editor_sdk', 'mobile' : true, - 'translate': t('Main.SDK', {returnObjects:true}) + 'translate': _translate }); Common.Notifications.trigger('engineCreated', this.api);