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:
@@ -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',
|
||||
|
@@ -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;
|
||||
|
Reference in New Issue
Block a user