mirror of
https://github.com/wassname/talk.git
synced 2026-08-19 12:40:16 +08:00
Correct keys and translations
This commit is contained in:
@@ -8,18 +8,18 @@ const AddOrganizationName = (props) => {
|
||||
const {handleSettingsChange, handleSettingsSubmit, install} = props;
|
||||
return (
|
||||
<div className={styles.step}>
|
||||
<p>{t('ADD_ORGANIZATION.DESCRIPTION')}</p>
|
||||
<p>{t('install.add_organization.description')}</p>
|
||||
<div className={styles.form}>
|
||||
<form onSubmit={handleSettingsSubmit}>
|
||||
<TextField
|
||||
className={styles.TextField}
|
||||
id="organizationName"
|
||||
type="text"
|
||||
label={t('ADD_ORGANIZATION.LABEL')}
|
||||
label={t('install.add_organization.label')}
|
||||
onChange={handleSettingsChange}
|
||||
showErrors={install.showErrors}
|
||||
errorMsg={install.errors.organizationName} />
|
||||
<Button type="submit" cStyle='black' full>{t('ADD_ORGANIZATION.SAVE')}</Button>
|
||||
<Button type="submit" cStyle='black' full>{t('install.add_organization.save')}</Button>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -14,7 +14,7 @@ const InitialStep = (props) => {
|
||||
className={styles.textField}
|
||||
id="email"
|
||||
type="email"
|
||||
label={t('CREATE.EMAIL')}
|
||||
label={t('install.create.email')}
|
||||
onChange={handleUserChange}
|
||||
showErrors={install.showErrors}
|
||||
errorMsg={install.errors.email}
|
||||
@@ -25,7 +25,7 @@ const InitialStep = (props) => {
|
||||
className={styles.textField}
|
||||
id="username"
|
||||
type="text"
|
||||
label={t('CREATE.USERNAME')}
|
||||
label={t('install.create.username')}
|
||||
onChange={handleUserChange}
|
||||
showErrors={install.showErrors}
|
||||
errorMsg={install.errors.username}
|
||||
@@ -35,7 +35,7 @@ const InitialStep = (props) => {
|
||||
className={styles.textField}
|
||||
id="password"
|
||||
type="password"
|
||||
label={t('CREATE.PASSWORD')}
|
||||
label={t('install.create.password')}
|
||||
onChange={handleUserChange}
|
||||
showErrors={install.showErrors}
|
||||
errorMsg={install.errors.password}
|
||||
@@ -45,7 +45,7 @@ const InitialStep = (props) => {
|
||||
className={styles.textField}
|
||||
id="confirmPassword"
|
||||
type="password"
|
||||
label={t('CREATE.CONFIRM_PASSWORD')}
|
||||
label={t('install.create.confirm_password')}
|
||||
onChange={handleUserChange}
|
||||
showErrors={install.showErrors}
|
||||
errorMsg={install.errors.confirm_password}
|
||||
@@ -53,7 +53,7 @@ const InitialStep = (props) => {
|
||||
|
||||
{
|
||||
!props.install.isLoading ?
|
||||
<Button cStyle='black' type="submit" full>{t('CREATE.SAVE')}</Button>
|
||||
<Button cStyle='black' type="submit" full>{t('install.create.save')}</Button>
|
||||
:
|
||||
<Spinner />
|
||||
}
|
||||
|
||||
@@ -8,9 +8,9 @@ import t from 'coral-framework/services/i18n';
|
||||
const InitialStep = () => {
|
||||
return (
|
||||
<div className={`${styles.step} ${styles.finalStep}`}>
|
||||
<p>{t('FINAL.DESCRIPTION')}</p>
|
||||
<Button raised><Link to='/admin'>{t('FINAL.LAUNCH')}</Link></Button>
|
||||
<Button cStyle='black' raised><a href="http://coralproject.net">{t('FINAL.CLOSE')}</a></Button>
|
||||
<p>{t('install.final.description')}</p>
|
||||
<Button raised><Link to='/admin'>{t('install.final.launch')}</Link></Button>
|
||||
<Button cStyle='black' raised><a href="http://coralproject.net">{t('install.final.close')}</a></Button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -8,8 +8,8 @@ const InitialStep = (props) => {
|
||||
const {nextStep} = props;
|
||||
return (
|
||||
<div className={styles.step}>
|
||||
<p>{t('INITIAL.DESCRIPTION')}</p>
|
||||
<Button cStyle='green' onClick={nextStep} raised>{t('INITIAL.SUBMIT')}</Button>
|
||||
<p>{t('install.initial.description')}</p>
|
||||
<Button cStyle='green' onClick={nextStep} raised>{t('install.initial.submit')}</Button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -10,9 +10,9 @@ const PermittedDomainsStep = (props) => {
|
||||
const domains = install.data.settings.domains.whitelist;
|
||||
return (
|
||||
<div className={styles.step}>
|
||||
<h3>{t('PERMITTED_DOMAINS.TITLE')}</h3>
|
||||
<h3>{t('install.permitted_domains.title')}</h3>
|
||||
<Card className={styles.card}>
|
||||
<p>{t('PERMITTED_DOMAINS.DESCRIPTION')}</p>
|
||||
<p>{t('install.permitted_domains.description')}</p>
|
||||
<TagsInput
|
||||
value={domains}
|
||||
inputProps={{placeholder: 'URL'}}
|
||||
@@ -21,7 +21,7 @@ const PermittedDomainsStep = (props) => {
|
||||
onChange={(tags) => handleDomainsChange(tags)}
|
||||
/>
|
||||
</Card>
|
||||
<Button cStyle='green' onClick={finishInstall} raised>{t('PERMITTED_DOMAINS.SUBMIT')}</Button>
|
||||
<Button cStyle='green' onClick={finishInstall} raised>{t('install.permitted_domains.submit')}</Button>
|
||||
</div>
|
||||
);
|
||||
};
|
||||
|
||||
@@ -33,7 +33,7 @@ class LoadMore extends React.Component {
|
||||
}
|
||||
|
||||
if (this.initialState) {
|
||||
return t('framework.view_all_repliesInitial', count);
|
||||
return t('framework.view_all_replies_initial', count);
|
||||
} else {
|
||||
return t('framework.view_all_replies', count);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user