Skip to content

Commit

Permalink
[i18n] fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
llj committed Oct 8, 2023
1 parent 89a6dfe commit a407d43
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ class ConfirmApplyFolderPropertiesDialog extends React.Component {
const { repoID, path } = this.props;
this.setState({ submitting: true });
seafileAPI.applyFolderExtendedProperties(repoID, path).then(() => {
toaster.success('Applied folder properties');
toaster.success(gettext('Successfully applied the properties.'));
this.props.toggle();
}).catch(error => {
let errorMsg = Utils.getErrorMsg(error);
Expand All @@ -47,7 +47,7 @@ class ConfirmApplyFolderPropertiesDialog extends React.Component {
</ModalHeader>
<ModalBody>
<p>
{gettext('Are you sure to apply properties to all files inside the folder?')}
{gettext('Are you sure you want to apply the properties to all the files inside the folder?')}
</p>
</ModalBody>
<ModalFooter>
Expand Down
4 changes: 2 additions & 2 deletions frontend/src/pages/lib-content-view/lib-content-view.js
Original file line number Diff line number Diff line change
Expand Up @@ -1254,15 +1254,15 @@ class LibContentView extends React.Component {

this.addDirent(newFileName, 'file', res.data.size);
this.setState({isConvertLoading: false});
let message = gettext('Successfully converted file.');
let message = gettext('Successfully converted the file.');
toaster.success(message);

}).catch((error) => {
let errMessage = Utils.getErrorMsg(error);
this.setState({isConvertLoading: false});
if (errMessage === gettext('Error')) {
let name = Utils.getFileName(path);
errMessage = gettext('Convert {name} failed').replace('{name}', name);
errMessage = gettext('Failed to convert {name}.').replace('{name}', name);
}
toaster.danger(errMessage);
});
Expand Down

0 comments on commit a407d43

Please sign in to comment.