mirror of
https://github.com/Novaloop-AG/healthchat-web.git
synced 2026-11-10 01:01:45 +00:00
Fixes more instances of double-translation (#7259)
This commit is contained in:
committed by
GitHub
parent
16a58ef2da
commit
675901f629
@@ -290,8 +290,8 @@ export default class ForgotPassword extends React.Component<IProps, IState> {
|
|||||||
<div className="mx_AuthBody_fieldRow">
|
<div className="mx_AuthBody_fieldRow">
|
||||||
<EmailField
|
<EmailField
|
||||||
name="reset_email" // define a name so browser's password autofill gets less confused
|
name="reset_email" // define a name so browser's password autofill gets less confused
|
||||||
labelRequired={_t('The email address linked to your account must be entered.')}
|
labelRequired={_td('The email address linked to your account must be entered.')}
|
||||||
labelInvalid={_t("The email address doesn't appear to be valid.")}
|
labelInvalid={_td("The email address doesn't appear to be valid.")}
|
||||||
value={this.state.email}
|
value={this.state.email}
|
||||||
fieldRef={field => this[ForgotPasswordField.Email] = field}
|
fieldRef={field => this[ForgotPasswordField.Email] = field}
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@ import { MatrixClient } from 'matrix-js-sdk/src/client';
|
|||||||
import * as Email from '../../../email';
|
import * as Email from '../../../email';
|
||||||
import { looksValid as phoneNumberLooksValid } from '../../../phonenumber';
|
import { looksValid as phoneNumberLooksValid } from '../../../phonenumber';
|
||||||
import Modal from '../../../Modal';
|
import Modal from '../../../Modal';
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t, _td } from '../../../languageHandler';
|
||||||
import SdkConfig from '../../../SdkConfig';
|
import SdkConfig from '../../../SdkConfig';
|
||||||
import { SAFE_LOCALPART_REGEX } from '../../../Registration';
|
import { SAFE_LOCALPART_REGEX } from '../../../Registration';
|
||||||
import withValidation, { IValidationResult } from '../elements/Validation';
|
import withValidation, { IValidationResult } from '../elements/Validation';
|
||||||
@@ -431,8 +431,8 @@ export default class RegistrationForm extends React.PureComponent<IProps, IState
|
|||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
const emailLabel = this.authStepIsRequired('m.login.email.identity') ?
|
const emailLabel = this.authStepIsRequired('m.login.email.identity') ?
|
||||||
_t("Email") :
|
_td("Email") :
|
||||||
_t("Email (optional)");
|
_td("Email (optional)");
|
||||||
return <EmailField
|
return <EmailField
|
||||||
fieldRef={field => this[RegistrationField.Email] = field}
|
fieldRef={field => this[RegistrationField.Email] = field}
|
||||||
label={emailLabel}
|
label={emailLabel}
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ limitations under the License.
|
|||||||
|
|
||||||
import * as React from "react";
|
import * as React from "react";
|
||||||
|
|
||||||
import { _t } from '../../../languageHandler';
|
import { _t, _td } from '../../../languageHandler';
|
||||||
import { IDialogProps } from "./IDialogProps";
|
import { IDialogProps } from "./IDialogProps";
|
||||||
import { useRef, useState } from "react";
|
import { useRef, useState } from "react";
|
||||||
import Field from "../elements/Field";
|
import Field from "../elements/Field";
|
||||||
@@ -64,7 +64,7 @@ const RegistrationEmailPromptDialog: React.FC<IProps> = ({ onFinished }) => {
|
|||||||
<EmailField
|
<EmailField
|
||||||
fieldRef={fieldRef}
|
fieldRef={fieldRef}
|
||||||
autoFocus={true}
|
autoFocus={true}
|
||||||
label={_t("Email (optional)")}
|
label={_td("Email (optional)")}
|
||||||
value={email}
|
value={email}
|
||||||
onChange={ev => {
|
onChange={ev => {
|
||||||
const target = ev.target as HTMLInputElement;
|
const target = ev.target as HTMLInputElement;
|
||||||
|
|||||||
Reference in New Issue
Block a user