Skip to content

Commit

Permalink
chore: replace translations for menuItems
Browse files Browse the repository at this point in the history
  • Loading branch information
sekiju committed Jan 31, 2025
1 parent d6a85f0 commit 61071a8
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 5 deletions.
4 changes: 0 additions & 4 deletions slide/Drawing/HtmlPage.js
Original file line number Diff line number Diff line change
Expand Up @@ -700,10 +700,6 @@ function CEditorPage(api)
this.reporterTranslates[1] = _translates[1];
this.reporterTranslates[2] = _translates[2];
this.reporterTranslates[3] = _translates[3];
this.reporterTranslates[4] = _translates[4];
this.reporterTranslates[5] = _translates[5];
this.reporterTranslates[6] = _translates[6];
this.reporterTranslates[7] = _translates[7];

if (_translates[3])
this.m_oApi.DemonstrationEndShowMessage(_translates[3]);
Expand Down
14 changes: 13 additions & 1 deletion slide/api.js
Original file line number Diff line number Diff line change
Expand Up @@ -8022,7 +8022,7 @@ background-repeat: no-repeat;\
data["translations"]["eraser"],
data["translations"]["eraseScreen"]
];

if (data["cryptoCurrentPassword"])
{
this.currentPassword = data["cryptoCurrentPassword"];
Expand All @@ -8049,6 +8049,11 @@ background-repeat: no-repeat;\

var _button1 = document.getElementById("dem_id_reset");
var _button2 = document.getElementById("dem_id_end");
var _miPen = document.querySelector("#dem_id_draw_menu > a[data-tool=\"pen\"]");
var _miHighlighter = document.querySelector("#dem_id_draw_menu > a[data-tool=\"highlighter\"]");
var _miInkColor = document.querySelector("#dem_id_draw_color_menu_trigger > a");
var _miEraser = document.querySelector("#dem_id_draw_menu > a[data-tool=\"eraser\"]");
var _miEraseAll = document.querySelector("#dem_id_draw_menu > a[data-tool=\"erase-all\"]");

if (_button1)
_button1.innerHTML = this.reporterTranslates[0];
Expand All @@ -8057,6 +8062,13 @@ background-repeat: no-repeat;\
_button2.innerHTML = this.reporterTranslates[2];
this.WordControl.OnResizeReporter();
}

if (_miPen) _miPen.textContent = this.reporterTranslates[4];
if (_miHighlighter) _miHighlighter.textContent = this.reporterTranslates[5];
if (_miInkColor) _miInkColor.textContent = this.reporterTranslates[6];
if (_miEraser) _miEraser.textContent = this.reporterTranslates[7];
if (_miEraseAll) _miEraseAll.textContent = this.reporterTranslates[8];

this.WordControl.UpdateBottomControlsParams();
};

Expand Down

0 comments on commit 61071a8

Please sign in to comment.