Migrate more strings to translation keys (#11574)
This commit is contained in:
parent
3201ae3534
commit
36a7a96e0e
72 changed files with 6593 additions and 6152 deletions
|
@ -90,14 +90,7 @@ export default class VerificationPanel extends React.PureComponent<IProps, IStat
|
|||
const brand = SdkConfig.get().brand;
|
||||
|
||||
const noCommonMethodError: JSX.Element | null =
|
||||
!showSAS && !showQR ? (
|
||||
<p>
|
||||
{_t(
|
||||
"The device you are trying to verify doesn't support scanning a QR code or emoji verification, which is what %(brand)s supports. Try with a different client.",
|
||||
{ brand },
|
||||
)}
|
||||
</p>
|
||||
) : null;
|
||||
!showSAS && !showQR ? <p>{_t("encryption|verification|no_support_qr_emoji", { brand })}</p> : null;
|
||||
|
||||
if (this.props.layout === "dialog") {
|
||||
// HACK: This is a terrible idea.
|
||||
|
@ -106,7 +99,7 @@ export default class VerificationPanel extends React.PureComponent<IProps, IStat
|
|||
if (showQR) {
|
||||
qrBlockDialog = (
|
||||
<div className="mx_VerificationPanel_QRPhase_startOption">
|
||||
<p>{_t("Scan this unique code")}</p>
|
||||
<p>{_t("encryption|verification|qr_prompt")}</p>
|
||||
<VerificationQRCode qrCodeBytes={this.state.qrCodeBytes} />
|
||||
</div>
|
||||
);
|
||||
|
@ -114,9 +107,9 @@ export default class VerificationPanel extends React.PureComponent<IProps, IStat
|
|||
if (showSAS) {
|
||||
sasBlockDialog = (
|
||||
<div className="mx_VerificationPanel_QRPhase_startOption">
|
||||
<p>{_t("Compare unique emoji")}</p>
|
||||
<p>{_t("encryption|verification|sas_prompt")}</p>
|
||||
<span className="mx_VerificationPanel_QRPhase_helpText">
|
||||
{_t("Compare a unique set of emoji if you don't have a camera on either device")}
|
||||
{_t("encryption|verification|sas_description")}
|
||||
</span>
|
||||
<AccessibleButton
|
||||
disabled={this.state.emojiButtonClicked}
|
||||
|
@ -131,7 +124,7 @@ export default class VerificationPanel extends React.PureComponent<IProps, IStat
|
|||
const or =
|
||||
qrBlockDialog && sasBlockDialog ? (
|
||||
<div className="mx_VerificationPanel_QRPhase_betweenText">
|
||||
{_t("%(qrCode)s or %(emojiCompare)s", {
|
||||
{_t("encryption|verification|qr_or_sas", {
|
||||
emojiCompare: "",
|
||||
qrCode: "",
|
||||
})}
|
||||
|
@ -139,7 +132,7 @@ export default class VerificationPanel extends React.PureComponent<IProps, IStat
|
|||
) : null;
|
||||
return (
|
||||
<div>
|
||||
{_t("Verify this device by completing one of the following:")}
|
||||
{_t("encryption|verification|qr_or_sas_header")}
|
||||
<div className="mx_VerificationPanel_QRPhase_startOptions">
|
||||
{qrBlockDialog}
|
||||
{or}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue