Skip to content
This repository was archived by the owner on Sep 11, 2024. It is now read-only.

Commit cbbed3f

Browse files
committed
Fixes to i18n code
1 parent 4bc252a commit cbbed3f

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/components/structures/login/Registration.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -267,7 +267,7 @@ module.exports = React.createClass({
267267
errMsg = _t('Passwords don\'t match.');
268268
break;
269269
case "RegistrationForm.ERR_PASSWORD_LENGTH":
270-
errMsg = _t('Password too short (min %(MIN_PASSWORD_LENGTH)s).', {MIN_PASSWORD_LENGTH: $MIN_PASSWORD_LENGTH})
270+
errMsg = _t('Password too short (min %(MIN_PASSWORD_LENGTH)s).', {MIN_PASSWORD_LENGTH: MIN_PASSWORD_LENGTH});
271271
break;
272272
case "RegistrationForm.ERR_EMAIL_INVALID":
273273
errMsg = _t('This doesn\'t look like a valid email address.');

src/components/views/dialogs/SetDisplayNameDialog.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ import React from 'react';
1818
import sdk from '../../../index';
1919
import MatrixClientPeg from '../../../MatrixClientPeg';
2020

21+
import { _t } from '../../../languageHandler';
22+
2123
/**
2224
* Prompt the user to set a display name.
2325
*

0 commit comments

Comments
 (0)