Skip to content

Commit

Permalink
do not assemble localizable string from multiple parts
Browse files Browse the repository at this point in the history
Signed-off-by: Andras Timar <andras.timar@collabora.com>
Change-Id: I29245c0f05d530fdf32523a552d7af1cdeaf5d6f
  • Loading branch information
timar authored and vmiklos committed Nov 20, 2024
1 parent b8f1de4 commit 89341c3
Showing 1 changed file with 3 additions and 8 deletions.
11 changes: 3 additions & 8 deletions browser/src/slideshow/PresenterConsole.js
Original file line number Diff line number Diff line change
Expand Up @@ -991,14 +991,9 @@ class PresenterConsole {

let elem = this._proxyPresenter.document.querySelector('#title-current');
if (elem) {
elem.innerText =
_('Slide') +
' ' +
(e.slide + 1) +
' ' +
_('of') +
' ' +
this._previews.length;
elem.innerText = _('Slide {0} of {1}')
.replace('{0}', e.slide + 1)
.replace('{1}', this._previews.length);
}

if (this._notes) {
Expand Down

0 comments on commit 89341c3

Please sign in to comment.