You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-11-06 09:19:22 +02:00
Desktop: Fixes #3684: Allow Read Time label to be translated
This commit is contained in:
@@ -152,6 +152,8 @@ export default function NoteContentPropertiesDialog(props:NoteContentPropertiesD
|
|||||||
textAlign: 'center',
|
textAlign: 'center',
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const readTimeLabel = _('Read time: %s min', formatReadTime(strippedReadTime));
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div style={theme.dialogModalLayer}>
|
<div style={theme.dialogModalLayer}>
|
||||||
<div style={theme.dialogBox}>
|
<div style={theme.dialogBox}>
|
||||||
@@ -164,8 +166,8 @@ export default function NoteContentPropertiesDialog(props:NoteContentPropertiesD
|
|||||||
{tableBodyComps}
|
{tableBodyComps}
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
<div style={labelCompStyle}>
|
<div style={{ ...labelCompStyle, marginTop: 10 }}>
|
||||||
{_('Read time: %s min', formatReadTime(strippedReadTime))}
|
{readTimeLabel}
|
||||||
</div>
|
</div>
|
||||||
<DialogButtonRow themeId={props.themeId} onClick={buttonRow_click} okButtonShow={false} cancelButtonLabel={_('Close')}/>
|
<DialogButtonRow themeId={props.themeId} onClick={buttonRow_click} okButtonShow={false} cancelButtonLabel={_('Close')}/>
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
Reference in New Issue
Block a user