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

fix translation (#6905)

* fix translation

* change Successful to xxx updated

* fix text
This commit is contained in:
Michael An
2024-10-16 14:09:14 +08:00
committed by GitHub
parent afa74aca89
commit 88cb2637d2
17 changed files with 25 additions and 26 deletions

View File

@@ -34,7 +34,7 @@ class AddAbuseReportDialog extends React.Component {
}
seafileAPI.addAbuseReport(this.props.sharedToken, this.state.abuseType, this.state.description, this.state.reporter, this.props.filePath).then((res) => {
this.props.toggleAddAbuseReportDialog();
toaster.success(gettext('Success'), { duration: 2 });
toaster.success(gettext('Abuse report added'), { duration: 2 });
}).catch((error) => {
if (error.response) {
this.setState({

View File

@@ -38,7 +38,7 @@ class RenameDepartmentDialog extends React.Component {
seafileAPI.orgAdminUpdateDepartGroup(orgID, groupID, this.state.departmentName.trim()).then((res) => {
this.props.toggle();
this.props.onDepartmentNameChanged(res.data);
toaster.success(gettext('Success'));
toaster.success(gettext('Name updated'));
}).catch(error => {
let errorMsg = Utils.getErrorMsg(error);
this.setState({ errMessage: errorMsg });

View File

@@ -61,7 +61,7 @@ class PublishWikiDialog extends React.Component {
let wiki_id = this.props.wiki.id;
wikiAPI.deletePublishWikiLink(wiki_id).then((res) => {
this.setState({ url: '' });
toaster.success(gettext('Successfully'));
toaster.success(gettext('Wiki custom URL deleted'));
}).catch((error) => {
if (error.response) {
let errorMsg = error.response.data.error_msg;

View File

@@ -33,7 +33,7 @@ class RenameDepartmentDialog extends React.Component {
seafileAPI.sysAdminRenameDepartment(this.props.groupID, this.state.departmentName.trim()).then((res) => {
this.props.toggle();
this.props.onDepartmentNameChanged(res.data);
toaster.success(gettext('Success'));
toaster.success(gettext('Department renamed'));
}).catch(error => {
let errorMsg = Utils.getErrorMsg(error);
this.setState({ errMessage: errorMsg });

View File

@@ -38,7 +38,7 @@ const UserSetPassword = ({ toggle }) => {
setErrorMessage('');
setCanSubmit(false);
userAPI.resetPassword(null, password).then(() => {
toaster.success('Password set');
toaster.success(gettext('Password set'));
location.reload();
toggle();
}).catch(error => {

View File

@@ -45,7 +45,7 @@ const UserUpdatePassword = ({ toggle }) => {
setErrorMessage('');
setCanSubmit(false);
userAPI.resetPassword(currentPassword, newPassword).then(() => {
toaster.success('Password updated');
toaster.success(gettext('Password updated'));
toggle();
}).catch(error => {
const errMessage = Utils.getErrorMsg(error);