Skip to content

Commit

Permalink
[desktop] fix translations
Browse files Browse the repository at this point in the history
  • Loading branch information
maxkadushkin committed Aug 23, 2023
1 parent 00f102f commit 8a6461c
Show file tree
Hide file tree
Showing 7 changed files with 15 additions and 1 deletion.
6 changes: 5 additions & 1 deletion apps/common/main/lib/controller/Desktop.js
Original file line number Diff line number Diff line change
Expand Up @@ -445,7 +445,7 @@ define([
const miNewFromTemplate = new Common.UI.MenuItem({
el: $(`<li id="fm-btn-create-fromtpl" class="fm-btn"></li>`),
action: 'create:fromtemplate',
caption: 'Create from template',
caption: _tr('itemCreateFromTemplate', 'Create from template'),
canFocused: false,
dataHint: 1,
dataHintDirection: 'left-top',
Expand All @@ -458,6 +458,10 @@ define([
}
}

const _tr = function (id, defvalue) {
return Common.Locale.get(id, {name:"Common.Controllers.Desktop", default: defvalue});
}

return {
init: function (opts) {
_.extend(config, opts);
Expand Down
1 change: 1 addition & 0 deletions apps/documenteditor/main/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"Common.Controllers.Chat.notcriticalErrorTitle": "Warning",
"Common.Controllers.Chat.textEnterMessage": "Enter your message here",
"Common.Controllers.Desktop.hintBtnHome": "Show Main window",
"Common.Controllers.Desktop.itemCreateFromTemplate": "Create from template",
"Common.Controllers.ExternalDiagramEditor.textAnonymous": "Anonymous",
"Common.Controllers.ExternalDiagramEditor.textClose": "Close",
"Common.Controllers.ExternalDiagramEditor.warningText": "The object is disabled because it is being edited by another user.",
Expand Down
1 change: 1 addition & 0 deletions apps/documenteditor/main/locale/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
"Common.Controllers.Chat.notcriticalErrorTitle": "Предупреждение",
"Common.Controllers.Chat.textEnterMessage": "Введите здесь своё сообщение",
"Common.Controllers.Desktop.hintBtnHome": "Показать главное окно",
"Common.Controllers.Desktop.itemCreateFromTemplate": "Создать из шаблона",
"Common.Controllers.ExternalDiagramEditor.textAnonymous": "Аноним",
"Common.Controllers.ExternalDiagramEditor.textClose": "Закрыть",
"Common.Controllers.ExternalDiagramEditor.warningText": "Объект недоступен, так как редактируется другим пользователем.",
Expand Down
2 changes: 2 additions & 0 deletions apps/presentationeditor/main/locale/en.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"Common.Controllers.Chat.notcriticalErrorTitle": "Warning",
"Common.Controllers.Chat.textEnterMessage": "Enter your message here",
"Common.Controllers.Desktop.hintBtnHome": "Show Main window",
"Common.Controllers.Desktop.itemCreateFromTemplate": "Create from template",
"Common.Controllers.ExternalDiagramEditor.textAnonymous": "Anonymous",
"Common.Controllers.ExternalDiagramEditor.textClose": "Close",
"Common.Controllers.ExternalDiagramEditor.warningText": "The object is disabled because it is being edited by another user.",
Expand Down
2 changes: 2 additions & 0 deletions apps/presentationeditor/main/locale/ru.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
{
"Common.Controllers.Chat.notcriticalErrorTitle": "Предупреждение",
"Common.Controllers.Chat.textEnterMessage": "Введите здесь своё сообщение",
"Common.Controllers.Desktop.hintBtnHome": "Показать главное окно",
"Common.Controllers.Desktop.itemCreateFromTemplate": "Создать из шаблона",
"Common.Controllers.ExternalDiagramEditor.textAnonymous": "Аноним",
"Common.Controllers.ExternalDiagramEditor.textClose": "Закрыть",
"Common.Controllers.ExternalDiagramEditor.warningText": "Объект недоступен, так как редактируется другим пользователем.",
Expand Down
2 changes: 2 additions & 0 deletions apps/spreadsheeteditor/main/locale/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"cancelButtonText": "Cancel",
"Common.Controllers.Chat.notcriticalErrorTitle": "Warning",
"Common.Controllers.Chat.textEnterMessage": "Enter your message here",
"Common.Controllers.Desktop.hintBtnHome": "Show Main window",
"Common.Controllers.Desktop.itemCreateFromTemplate": "Create from template",
"Common.Controllers.History.notcriticalErrorTitle": "Warning",
"Common.define.chartData.textArea": "Area",
"Common.define.chartData.textAreaStacked": "Stacked area",
Expand Down
2 changes: 2 additions & 0 deletions apps/spreadsheeteditor/main/locale/ru.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@
"cancelButtonText": "Отмена",
"Common.Controllers.Chat.notcriticalErrorTitle": "Предупреждение",
"Common.Controllers.Chat.textEnterMessage": "Введите здесь своё сообщение",
"Common.Controllers.Desktop.hintBtnHome": "Показать главное окно",
"Common.Controllers.Desktop.itemCreateFromTemplate": "Создать из шаблона",
"Common.Controllers.History.notcriticalErrorTitle": "Внимание",
"Common.define.chartData.textArea": "С областями",
"Common.define.chartData.textAreaStacked": "Диаграмма с областями с накоплением",
Expand Down

0 comments on commit 8a6461c

Please sign in to comment.