1
0
mirror of https://github.com/haiwen/seahub.git synced 2025-09-01 23:20:51 +00:00

optimize translate code (#4465)

This commit is contained in:
杨顺强
2020-03-02 17:47:34 +08:00
committed by GitHub
parent 8e58fb5b07
commit 1737228bab
2 changed files with 3 additions and 3 deletions

View File

@@ -15,8 +15,8 @@ class CopyMoveDirentProgressDialog extends React.Component {
render() {
let { type , asyncOperationProgress, asyncOperatedFilesLength } = this.props;
let title = type === 'move' ? gettext('Move {files_length} items') : gettext('Copy {files_length} items');
title = title.replace('{files_length}', asyncOperatedFilesLength);
let title = type === 'move' ? gettext('Move {num} items') : gettext('Copy {num} items');
title = title.replace('{num}', asyncOperatedFilesLength);
let progressStyle = {
width: asyncOperationProgress + '%',
lineHeight: '40px',

View File

@@ -601,7 +601,7 @@ class LibContentView extends React.Component {
this.setState({isCopyMoveProgressDialogShow: false});
let message = gettext('Successfully moved files to another library.');
if (asyncOperationType === 'copy') {
message = gettext('Successfully copyed files to another library.');
message = gettext('Successfully copied files to another library.');
}
toaster.success(message);
return;