mirror of
https://github.com/scm-manager/scm-manager.git
synced 2025-11-14 17:26:22 +01:00
Fixed i18n
This commit is contained in:
@@ -42,7 +42,7 @@ class PasswordConfirmation extends React.Component<Props, State> {
|
|||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<InputField
|
<InputField
|
||||||
label={t("password.label")}
|
label={t("password.newPassword")}
|
||||||
type="password"
|
type="password"
|
||||||
onChange={this.handlePasswordChange}
|
onChange={this.handlePasswordChange}
|
||||||
value={this.state.password ? this.state.password : ""}
|
value={this.state.password ? this.state.password : ""}
|
||||||
|
|||||||
@@ -52,10 +52,15 @@
|
|||||||
},
|
},
|
||||||
"password": {
|
"password": {
|
||||||
"label": "Password",
|
"label": "Password",
|
||||||
|
"newPassword": "New password",
|
||||||
"passwordHelpText": "Plain text password of the user.",
|
"passwordHelpText": "Plain text password of the user.",
|
||||||
"passwordConfirmHelpText": "Repeat the password for confirmation.",
|
"passwordConfirmHelpText": "Repeat the password for confirmation.",
|
||||||
|
"currentPassword": "Current password",
|
||||||
|
"currentPasswordHelpText": "The password currently in use",
|
||||||
"confirmPassword": "Confirm password",
|
"confirmPassword": "Confirm password",
|
||||||
"passwordInvalid": "Password has to be between 6 and 32 characters",
|
"passwordInvalid": "Password has to be between 6 and 32 characters",
|
||||||
"passwordConfirmFailed": "Passwords have to be identical"
|
"passwordConfirmFailed": "Passwords have to be identical",
|
||||||
|
"submit": "Submit",
|
||||||
|
"changedSuccessfully": "Pasword successfully changed"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -93,7 +93,7 @@ class ChangeUserPassword extends React.Component<Props, State> {
|
|||||||
message = (
|
message = (
|
||||||
<Notification
|
<Notification
|
||||||
type={"success"}
|
type={"success"}
|
||||||
children={t("password.set-password-successful")}
|
children={t("password.changedSuccessfully")}
|
||||||
onClose={() => this.onClose()}
|
onClose={() => this.onClose()}
|
||||||
/>
|
/>
|
||||||
);
|
);
|
||||||
@@ -105,13 +105,13 @@ class ChangeUserPassword extends React.Component<Props, State> {
|
|||||||
<form onSubmit={this.submit}>
|
<form onSubmit={this.submit}>
|
||||||
{message}
|
{message}
|
||||||
<InputField
|
<InputField
|
||||||
label={t("password.current-password")}
|
label={t("password.currentPassword")}
|
||||||
type="password"
|
type="password"
|
||||||
onChange={oldPassword =>
|
onChange={oldPassword =>
|
||||||
this.setState({ ...this.state, oldPassword })
|
this.setState({ ...this.state, oldPassword })
|
||||||
}
|
}
|
||||||
value={this.state.oldPassword ? this.state.oldPassword : ""}
|
value={this.state.oldPassword ? this.state.oldPassword : ""}
|
||||||
helpText={t("help.currentPasswordHelpText")}
|
helpText={t("password.currentPasswordHelpText")}
|
||||||
/>
|
/>
|
||||||
<PasswordConfirmation
|
<PasswordConfirmation
|
||||||
passwordChanged={this.passwordChanged}
|
passwordChanged={this.passwordChanged}
|
||||||
@@ -120,7 +120,7 @@ class ChangeUserPassword extends React.Component<Props, State> {
|
|||||||
<SubmitButton
|
<SubmitButton
|
||||||
disabled={!this.state.password}
|
disabled={!this.state.password}
|
||||||
loading={loading}
|
loading={loading}
|
||||||
label={t("user-form.submit")}
|
label={t("password.submit")}
|
||||||
/>
|
/>
|
||||||
</form>
|
</form>
|
||||||
);
|
);
|
||||||
@@ -138,4 +138,4 @@ class ChangeUserPassword extends React.Component<Props, State> {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
export default translate("users")(ChangeUserPassword);
|
export default translate("commons")(ChangeUserPassword);
|
||||||
|
|||||||
Reference in New Issue
Block a user