diff --git a/apps/documenteditor/main/app/controller/Main.js b/apps/documenteditor/main/app/controller/Main.js
index e98115287..ae8095000 100644
--- a/apps/documenteditor/main/app/controller/Main.js
+++ b/apps/documenteditor/main/app/controller/Main.js
@@ -125,8 +125,7 @@ define([
window["flat_desine"] = true;
var styleNames = ['Normal', 'No Spacing', 'Heading 1', 'Heading 2', 'Heading 3', 'Heading 4', 'Heading 5',
- 'Heading 6', 'Heading 7', 'Heading 8', 'Heading 9', 'Title', 'Subtitle',
- 'Quote', 'Intense Quote', 'List Paragraph'],
+ 'Heading 6', 'Heading 7', 'Heading 8', 'Heading 9', 'Title', 'Subtitle', 'Quote', 'Intense Quote', 'List Paragraph'],
translate = {
'Series': this.txtSeries,
'Diagram Title': this.txtDiagramTitle,
@@ -135,9 +134,7 @@ define([
'Your text here': this.txtArt
};
styleNames.forEach(function(item){
- var translate_name = 'txtStyle_' + item.replace(/ /g, '_');
- me.translationTable[item] = me[translate_name] || item;
- translate[item] = me.translationTable[item];
+ translate[item] = me.translationTable[item] = me['txtStyle_' + item.replace(/ /g, '_')] || item;
});
this.api = new Asc.asc_docs_api({
diff --git a/apps/documenteditor/mobile/app/controller/Main.js b/apps/documenteditor/mobile/app/controller/Main.js
index 08471f948..48cb17f9e 100644
--- a/apps/documenteditor/mobile/app/controller/Main.js
+++ b/apps/documenteditor/mobile/app/controller/Main.js
@@ -101,16 +101,23 @@ define([
window["flat_desine"] = true;
+ var styleNames = ['Normal', 'No Spacing', 'Heading 1', 'Heading 2', 'Heading 3', 'Heading 4', 'Heading 5',
+ 'Heading 6', 'Heading 7', 'Heading 8', 'Heading 9', 'Title', 'Subtitle', 'Quote', 'Intense Quote', 'List Paragraph'],
+ translate = {
+ 'Series': this.txtSeries,
+ 'Diagram Title': this.txtDiagramTitle,
+ 'X Axis': this.txtXAxis,
+ 'Y Axis': this.txtYAxis,
+ 'Your text here': this.txtArt
+ };
+ styleNames.forEach(function(item){
+ translate[item] = me['txtStyle_' + item.replace(/ /g, '_')] || item;
+ });
+
me.api = new Asc.asc_docs_api({
'id-view' : 'editor_sdk',
'mobile' : true,
- 'translate': {
- 'Series': me.txtSeries,
- 'Diagram Title': me.txtDiagramTitle,
- 'X Axis': me.txtXAxis,
- 'Y Axis': me.txtYAxis,
- 'Your text here': me.txtArt
- }
+ 'translate': translate
});
// Localization uiApp params
@@ -1210,7 +1217,23 @@ define([
textDone: 'Done',
titleServerVersion: 'Editor updated',
errorServerVersion: 'The editor version has been updated. The page will be reloaded to apply the changes.',
- errorBadImageUrl: 'Image url is incorrect'
+ errorBadImageUrl: 'Image url is incorrect',
+ txtStyle_Normal: 'Normal',
+ txtStyle_No_Spacing: 'No Spacing',
+ txtStyle_Heading_1: 'Heading 1',
+ txtStyle_Heading_2: 'Heading 2',
+ txtStyle_Heading_3: 'Heading 3',
+ txtStyle_Heading_4: 'Heading 4',
+ txtStyle_Heading_5: 'Heading 5',
+ txtStyle_Heading_6: 'Heading 6',
+ txtStyle_Heading_7: 'Heading 7',
+ txtStyle_Heading_8: 'Heading 8',
+ txtStyle_Heading_9: 'Heading 9',
+ txtStyle_Title: 'Title',
+ txtStyle_Subtitle: 'Subtitle',
+ txtStyle_Quote: 'Quote',
+ txtStyle_Intense_Quote: 'Intense Quote',
+ txtStyle_List_Paragraph: 'List Paragraph'
}
})(), DE.Controllers.Main || {}))
});
\ No newline at end of file
diff --git a/apps/documenteditor/mobile/locale/en.json b/apps/documenteditor/mobile/locale/en.json
index 7dd9371f4..053d1ea34 100644
--- a/apps/documenteditor/mobile/locale/en.json
+++ b/apps/documenteditor/mobile/locale/en.json
@@ -132,6 +132,22 @@
"DE.Controllers.Main.warnLicenseExp": "Your license has expired.
Please update your license and refresh the page.",
"DE.Controllers.Main.warnNoLicense": "You are using an open source version of ONLYOFFICE. The version has limitations for concurrent connections to the document server (20 connections at a time).
If you need more please consider purchasing a commercial license.",
"DE.Controllers.Main.warnProcessRightsChange": "You have been denied the right to edit the file.",
+ "DE.Controllers.Main.txtStyle_Normal": "Normal",
+ "DE.Controllers.Main.txtStyle_No_Spacing": "No Spacing",
+ "DE.Controllers.Main.txtStyle_Heading_1": "Heading 1",
+ "DE.Controllers.Main.txtStyle_Heading_2": "Heading 2",
+ "DE.Controllers.Main.txtStyle_Heading_3": "Heading 3",
+ "DE.Controllers.Main.txtStyle_Heading_4": "Heading 4",
+ "DE.Controllers.Main.txtStyle_Heading_5": "Heading 5",
+ "DE.Controllers.Main.txtStyle_Heading_6": "Heading 6",
+ "DE.Controllers.Main.txtStyle_Heading_7": "Heading 7",
+ "DE.Controllers.Main.txtStyle_Heading_8": "Heading 8",
+ "DE.Controllers.Main.txtStyle_Heading_9": "Heading 9",
+ "DE.Controllers.Main.txtStyle_Title": "Title",
+ "DE.Controllers.Main.txtStyle_Subtitle": "Subtitle",
+ "DE.Controllers.Main.txtStyle_Quote": "Quote",
+ "DE.Controllers.Main.txtStyle_Intense_Quote": "Intense Quote",
+ "DE.Controllers.Main.txtStyle_List_Paragraph": "List Paragraph",
"DE.Controllers.Search.textNoTextFound": "Text not Found",
"DE.Controllers.Search.textReplaceAll": "Replace All",
"DE.Controllers.Settings.notcriticalErrorTitle": "Warning",
diff --git a/apps/documenteditor/mobile/locale/ru.json b/apps/documenteditor/mobile/locale/ru.json
index efac5c8f2..b13874dbe 100644
--- a/apps/documenteditor/mobile/locale/ru.json
+++ b/apps/documenteditor/mobile/locale/ru.json
@@ -132,6 +132,22 @@
"DE.Controllers.Main.warnLicenseExp": "Истек срок действия лицензии.
Обновите лицензию, а затем обновите страницу.",
"DE.Controllers.Main.warnNoLicense": "Вы используете open source версию ONLYOFFICE. Эта версия имеет ограничения по количеству одновременных подключений к серверу документов (20 подключений одновременно).
Если требуется больше, рассмотрите вопрос о покупке коммерческой лицензии.",
"DE.Controllers.Main.warnProcessRightsChange": "Вам было отказано в праве на редактирование этого файла.",
+ "DE.Controllers.Main.txtStyle_Normal": "Обычный",
+ "DE.Controllers.Main.txtStyle_No_Spacing": "Без интервала",
+ "DE.Controllers.Main.txtStyle_Heading_1": "Заголовок 1",
+ "DE.Controllers.Main.txtStyle_Heading_2": "Заголовок 2",
+ "DE.Controllers.Main.txtStyle_Heading_3": "Заголовок 3",
+ "DE.Controllers.Main.txtStyle_Heading_4": "Заголовок 4",
+ "DE.Controllers.Main.txtStyle_Heading_5": "Заголовок 5",
+ "DE.Controllers.Main.txtStyle_Heading_6": "Заголовок 6",
+ "DE.Controllers.Main.txtStyle_Heading_7": "Заголовок 7",
+ "DE.Controllers.Main.txtStyle_Heading_8": "Заголовок 8",
+ "DE.Controllers.Main.txtStyle_Heading_9": "Заголовок 9",
+ "DE.Controllers.Main.txtStyle_Title": "Название",
+ "DE.Controllers.Main.txtStyle_Subtitle": "Подзаголовок",
+ "DE.Controllers.Main.txtStyle_Quote": "Цитата",
+ "DE.Controllers.Main.txtStyle_Intense_Quote": "Выделенная цитата",
+ "DE.Controllers.Main.txtStyle_List_Paragraph": "Абзац списка",
"DE.Controllers.Search.textNoTextFound": "Текст не найден",
"DE.Controllers.Search.textReplaceAll": "Заменить все",
"DE.Controllers.Settings.notcriticalErrorTitle": "Внимание",