Updates in translation
This commit is contained in:
parent
92ca1c0f28
commit
c784d2fbb6
6 changed files with 13 additions and 11 deletions
|
@ -93,3 +93,6 @@ export function withTranslation(opts) {
|
|||
}
|
||||
}
|
||||
|
||||
export function tMark(key) {
|
||||
return key;
|
||||
}
|
|
@ -209,7 +209,7 @@ export default class CUD extends Component {
|
|||
help: helpMjmlGeneral
|
||||
},
|
||||
web_privacy_policy_notice: {
|
||||
label: t('Privacy policy'),
|
||||
label: t('privacyPolicy'),
|
||||
mode: 'html',
|
||||
help: helpMjmlGeneral
|
||||
}
|
||||
|
@ -261,7 +261,7 @@ export default class CUD extends Component {
|
|||
]
|
||||
},
|
||||
gdpr: {
|
||||
label: t('Data protection'),
|
||||
label: t('dataProtection'),
|
||||
options: [
|
||||
'web_privacy_policy_notice'
|
||||
]
|
||||
|
|
|
@ -410,7 +410,7 @@ export default class CUD extends Component {
|
|||
saveButtons.push(<Button key="default" type="submit" className="btn-primary" icon="ok" label={t('saveAndEditSettings')}/>);
|
||||
} else {
|
||||
saveButtons.push(<Button key="default" type="submit" className="btn-primary" icon="ok" label={t('save')}/>);
|
||||
saveButtons.push(<Button key="saveAndRun" className="btn-primary" icon="ok" label={t('Save and Run')} onClickAsync={async () => await this.save(true)}/>);
|
||||
saveButtons.push(<Button key="saveAndRun" className="btn-primary" icon="ok" label={t('saveAndRun')} onClickAsync={async () => await this.save(true)}/>);
|
||||
}
|
||||
|
||||
return (
|
||||
|
|
|
@ -3,7 +3,7 @@
|
|||
import React from 'react';
|
||||
import {DatePicker, Dropdown, InputField} from "../../lib/form";
|
||||
import { parseDate, parseBirthday, formatDate, formatBirthday, DateFormat, birthdayYear, getDateFormatString, getBirthdayFormatString } from '../../../../shared/date';
|
||||
|
||||
import { tMark } from "../../lib/i18n";
|
||||
|
||||
export function getRuleHelpers(t, fields) {
|
||||
|
||||
|
@ -102,7 +102,7 @@ export function getRuleHelpers(t, fields) {
|
|||
} else if (rule.value > 0) {
|
||||
return t(variants[1], {colName: ruleHelpers.getColumnName(rule.column), value: rule.value});
|
||||
} else {
|
||||
return t(variants[2], {colName: ruleHelpers.getColumnName(rule.column), value: rule.value});
|
||||
return t(variants[2], {colName: ruleHelpers.getColumnName(rule.column), value: -rule.value});
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -91,7 +91,7 @@ export default class List extends Component {
|
|||
|
||||
const columns = [
|
||||
{ data: 1, title: t('id'), render: data => <code>{data}</code> },
|
||||
{ data: 2, title: t('email'), render: data => data === null ? <span className={listStyles.erased}>{t('[ERASED]')}</span> : data },
|
||||
{ data: 2, title: t('email'), render: data => data === null ? <span className={listStyles.erased}>{t('erased')}</span> : data },
|
||||
{ data: 3, title: t('status'), render: (data, display, rowData) => this.subscriptionStatusLabels[data] + (rowData[5] ? ', ' + t('blacklisted') : '') },
|
||||
{ data: 4, title: t('created'), render: data => data ? moment(data).fromNow() : '' }
|
||||
];
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue