diff --git a/frontend/src/pages/markdown-editor/header-toolbar/file-info.js b/frontend/src/pages/markdown-editor/header-toolbar/file-info.js index 77de93b01f..1ef9e37719 100644 --- a/frontend/src/pages/markdown-editor/header-toolbar/file-info.js +++ b/frontend/src/pages/markdown-editor/header-toolbar/file-info.js @@ -9,7 +9,7 @@ class FileInfo extends React.PureComponent { render() { const { fileInfo, isPro, isLocked, mediaUrl } = this.props; - const starTitle = fileInfo.starred ? gettext('unstar') : gettext('star'); + const starTitle = fileInfo.starred ? gettext('starred') : gettext('unstarred'); const starIconClass = `iconfont ${fileInfo.starred ? 'icon-star1 star' : 'icon-star2'}`; const modifyTime = moment(fileInfo.mtime * 1000).format('YYYY-MM-DD HH:mm'); diff --git a/frontend/src/pages/markdown-editor/seafile-editor/index.js b/frontend/src/pages/markdown-editor/seafile-editor/index.js index 9b5bbc4e12..29f1be4125 100644 --- a/frontend/src/pages/markdown-editor/seafile-editor/index.js +++ b/frontend/src/pages/markdown-editor/seafile-editor/index.js @@ -98,7 +98,7 @@ class SeafileEditor extends React.Component { onUnload = (event) => { if (!this.props.contentChanged) return; - const confirmationMessage = 'Leave this page? The system may not save your changes.'; + const confirmationMessage = gettext('Leave this page? The system may not save your changes.'); this.props.clearTimer(); this.props.deleteDraft && this.props.deleteDraft(); event.returnValue = confirmationMessage; @@ -146,7 +146,7 @@ class SeafileEditor extends React.Component { // }); // } this.lastModifyTime = new Date(); - const message = gettext('File Saved'); + const message = gettext('Successfully saved'); toaster.success(message, {duration: 2,}); this.props.editorApi.getFileInfo().then((res) => { @@ -156,7 +156,7 @@ class SeafileEditor extends React.Component { this.addParticipants(); }, () => { this.props.onSaving(false); - const message = gettext('File failed to save'); + const message = gettext('Failed to save'); toaster.danger(message, {duration: 2}); }); };