1
0
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:
Laurent Cozic
2020-09-21 16:16:28 +01:00
parent a9b26246e6
commit 9e05fa553c

View File

@@ -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>