From e8c44dc400454585a414f6b717170c1c4210d7f3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafa=C5=82=20Dzi=C4=99giel?= Date: Mon, 6 Sep 2021 20:21:18 +0200 Subject: [PATCH] Make end time label translatable --- po/POTFILES | 1 + src/revealers.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/po/POTFILES b/po/POTFILES index eef4d882..606e04e2 100644 --- a/po/POTFILES +++ b/po/POTFILES @@ -6,4 +6,5 @@ ui/preferences-window.ui src/buttons.js src/dialogs.js +src/revealers.js src/widget.js diff --git a/src/revealers.js b/src/revealers.js index 70b6c2c4..bfab15df 100644 --- a/src/revealers.js +++ b/src/revealers.js @@ -167,7 +167,7 @@ class ClapperRevealerTop extends CustomRevealer ? endTime.format(this.timeFormat) : 'unknown'; - this.endTime.label = `Ends at: ${end}`; + this.endTime.label = _('Ends at: %s').format(end); /* Make sure that next timeout is always run after clock changes, * by delaying it for additional few milliseconds */