From 9e05fa553ce3aead27ca19e1cc5a99608ac6530e Mon Sep 17 00:00:00 2001 From: Laurent Cozic Date: Mon, 21 Sep 2020 16:16:28 +0100 Subject: [PATCH] Desktop: Fixes #3684: Allow Read Time label to be translated --- ElectronClient/gui/NoteContentPropertiesDialog.tsx | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/ElectronClient/gui/NoteContentPropertiesDialog.tsx b/ElectronClient/gui/NoteContentPropertiesDialog.tsx index 2a48216c6c..c473b9a460 100644 --- a/ElectronClient/gui/NoteContentPropertiesDialog.tsx +++ b/ElectronClient/gui/NoteContentPropertiesDialog.tsx @@ -152,6 +152,8 @@ export default function NoteContentPropertiesDialog(props:NoteContentPropertiesD textAlign: 'center', }; + const readTimeLabel = _('Read time: %s min', formatReadTime(strippedReadTime)); + return (
@@ -164,8 +166,8 @@ export default function NoteContentPropertiesDialog(props:NoteContentPropertiesD {tableBodyComps} -
- {_('Read time: %s min', formatReadTime(strippedReadTime))} +
+ {readTimeLabel}