Fix translations

This commit is contained in:
Chi Vinh Le
2018-02-13 15:33:50 +01:00
parent c54a8bdc4f
commit 87af05c0d9
16 changed files with 268 additions and 247 deletions
@@ -25,24 +25,28 @@ class SetUsernameDialog extends React.Component {
<Dialog className={styles.dialogusername} id="createUsernameDialog" open>
<div>
<div className={styles.header}>
<h1>{t('createdisplay.write_your_username')}</h1>
<h1>
{t('talk-plugin-auth.set_username_dialog.write_your_username')}
</h1>
</div>
<div>
<p className={styles.yourusername}>
{t('createdisplay.your_username')}
{t('talk-plugin-auth.set_username_dialog.your_username')}
</p>
<FakeComment
className={styles.fakeComment}
username={username}
created_at={new Date().toISOString()}
body={t('createdisplay.fake_comment_body')}
body={t('talk-plugin-auth.set_username_dialog.fake_comment_body')}
/>
{errorMessage && <Alert>{errorMessage}</Alert>}
<form id="saveUsername" onSubmit={this.handleSubmit}>
{usernameError && (
<span className={styles.hint}>
{' '}
{t('createdisplay.special_characters')}{' '}
{t(
'talk-plugin-auth.set_username_dialog.special_characters'
)}{' '}
</span>
)}
<div className={styles.saveusername}>
@@ -50,14 +54,14 @@ class SetUsernameDialog extends React.Component {
id="username"
style={{ fontSize: 16 }}
type="string"
label={t('createdisplay.username')}
label={t('talk-plugin-auth.set_username_dialog.username')}
value={username}
showErrors={!!usernameError}
errorMsg={usernameError}
onChange={this.handleUsernameChange}
/>
<Button id="save" type="submit" className={styles.saveButton}>
{t('createdisplay.save')}
{t('talk-plugin-auth.set_username_dialog.save')}
</Button>
</div>
</form>