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
|
help: helpMjmlGeneral
|
||||||
},
|
},
|
||||||
web_privacy_policy_notice: {
|
web_privacy_policy_notice: {
|
||||||
label: t('Privacy policy'),
|
label: t('privacyPolicy'),
|
||||||
mode: 'html',
|
mode: 'html',
|
||||||
help: helpMjmlGeneral
|
help: helpMjmlGeneral
|
||||||
}
|
}
|
||||||
|
@ -261,7 +261,7 @@ export default class CUD extends Component {
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
gdpr: {
|
gdpr: {
|
||||||
label: t('Data protection'),
|
label: t('dataProtection'),
|
||||||
options: [
|
options: [
|
||||||
'web_privacy_policy_notice'
|
'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')}/>);
|
saveButtons.push(<Button key="default" type="submit" className="btn-primary" icon="ok" label={t('saveAndEditSettings')}/>);
|
||||||
} else {
|
} else {
|
||||||
saveButtons.push(<Button key="default" type="submit" className="btn-primary" icon="ok" label={t('save')}/>);
|
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 (
|
return (
|
||||||
|
|
|
@ -3,7 +3,7 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import {DatePicker, Dropdown, InputField} from "../../lib/form";
|
import {DatePicker, Dropdown, InputField} from "../../lib/form";
|
||||||
import { parseDate, parseBirthday, formatDate, formatBirthday, DateFormat, birthdayYear, getDateFormatString, getBirthdayFormatString } from '../../../../shared/date';
|
import { parseDate, parseBirthday, formatDate, formatBirthday, DateFormat, birthdayYear, getDateFormatString, getBirthdayFormatString } from '../../../../shared/date';
|
||||||
|
import { tMark } from "../../lib/i18n";
|
||||||
|
|
||||||
export function getRuleHelpers(t, fields) {
|
export function getRuleHelpers(t, fields) {
|
||||||
|
|
||||||
|
@ -102,7 +102,7 @@ export function getRuleHelpers(t, fields) {
|
||||||
} else if (rule.value > 0) {
|
} else if (rule.value > 0) {
|
||||||
return t(variants[1], {colName: ruleHelpers.getColumnName(rule.column), value: rule.value});
|
return t(variants[1], {colName: ruleHelpers.getColumnName(rule.column), value: rule.value});
|
||||||
} else {
|
} 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 = [
|
const columns = [
|
||||||
{ data: 1, title: t('id'), render: data => <code>{data}</code> },
|
{ 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: 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() : '' }
|
{ data: 4, title: t('created'), render: data => data ? moment(data).fromNow() : '' }
|
||||||
];
|
];
|
||||||
|
|
|
@ -429,10 +429,12 @@
|
||||||
"mailUnsubscriptionConfirmedMjml": "Mail - Unsubscription Confirmed (MJML)",
|
"mailUnsubscriptionConfirmedMjml": "Mail - Unsubscription Confirmed (MJML)",
|
||||||
"mailUnsubscriptionConfirmedText": "Mail - Unsubscription Confirmed (Text)",
|
"mailUnsubscriptionConfirmedText": "Mail - Unsubscription Confirmed (Text)",
|
||||||
"webManualUnsubscribeNotice": "Web - Manual Unsubscribe Notice",
|
"webManualUnsubscribeNotice": "Web - Manual Unsubscribe Notice",
|
||||||
|
"privacyPolicy": "Privacy policy",
|
||||||
"general": "General",
|
"general": "General",
|
||||||
"subscribe": "Subscribe",
|
"subscribe": "Subscribe",
|
||||||
"manage": "Manage",
|
"manage": "Manage",
|
||||||
"unsubscribe": "Unsubscribe",
|
"unsubscribe": "Unsubscribe",
|
||||||
|
"dataProtection": "Data protection",
|
||||||
"listOfErrorsInTemplates": "List of errors in templates",
|
"listOfErrorsInTemplates": "List of errors in templates",
|
||||||
"formsSaved": "Forms saved",
|
"formsSaved": "Forms saved",
|
||||||
"deletingForm": "Deleting form ...",
|
"deletingForm": "Deleting form ...",
|
||||||
|
@ -457,6 +459,7 @@
|
||||||
"checkImportedEmails": "Check imported emails",
|
"checkImportedEmails": "Check imported emails",
|
||||||
"mapping": "Mapping",
|
"mapping": "Mapping",
|
||||||
"saveAndEditSettings": "Save and edit settings",
|
"saveAndEditSettings": "Save and edit settings",
|
||||||
|
"saveAndRun": "Save and Run",
|
||||||
"deletingImport": "Deleting import ...",
|
"deletingImport": "Deleting import ...",
|
||||||
"importDeleted": "Import deleted",
|
"importDeleted": "Import deleted",
|
||||||
"editImport": "Edit Import",
|
"editImport": "Edit Import",
|
||||||
|
@ -555,22 +558,17 @@
|
||||||
"afterOrOn": "After or on",
|
"afterOrOn": "After or on",
|
||||||
"dateInColumnColNameIsAfterOrOnValue": "Date in column \"{{colName}}\" is after or on {{value}}",
|
"dateInColumnColNameIsAfterOrOnValue": "Date in column \"{{colName}}\" is after or on {{value}}",
|
||||||
"onXthDayBeforeafterCurrentDate": "On x-th day before/after current date",
|
"onXthDayBeforeafterCurrentDate": "On x-th day before/after current date",
|
||||||
"dateInColumnIsTheCurrentDate": "Date in column is the current date",
|
|
||||||
"dateInColumnIsValuethDayAfterTheCurrent": "Date in column is {{value}}-th day after the current date",
|
"dateInColumnIsValuethDayAfterTheCurrent": "Date in column is {{value}}-th day after the current date",
|
||||||
"dateInColumnIsValuethDayBeforeTheCurrent": "Date in column is {{value}}-th day before the current date",
|
"dateInColumnIsValuethDayBeforeTheCurrent": "Date in column is {{value}}-th day before the current date",
|
||||||
"beforeXthDayBeforeafterCurrentDate": "Before x-th day before/after current date",
|
"beforeXthDayBeforeafterCurrentDate": "Before x-th day before/after current date",
|
||||||
"dateInColumnIsBeforeTheCurrentDate": "Date in column is before the current date",
|
|
||||||
"dateInColumnIsBeforeValuethDayAfterThe": "Date in column is before {{value}}-th day after the current date",
|
"dateInColumnIsBeforeValuethDayAfterThe": "Date in column is before {{value}}-th day after the current date",
|
||||||
"dateInColumnIsBeforeValuethDayBeforeThe": "Date in column is before {{value}}-th day before the current date",
|
"dateInColumnIsBeforeValuethDayBeforeThe": "Date in column is before {{value}}-th day before the current date",
|
||||||
"beforeOrOnXthDayBeforeafterCurrentDate": "Before or on x-th day before/after current date",
|
"beforeOrOnXthDayBeforeafterCurrentDate": "Before or on x-th day before/after current date",
|
||||||
"dateInColumnIsBeforeOrOnTheCurrentDate": "Date in column is before or on the current date",
|
|
||||||
"dateInColumnIsBeforeOrOnValuethDayAfter": "Date in column is before or on {{value}}-th day after the current date",
|
"dateInColumnIsBeforeOrOnValuethDayAfter": "Date in column is before or on {{value}}-th day after the current date",
|
||||||
"dateInColumnIsBeforeOrOnValuethDayBefore": "Date in column is before or on {{value}}-th day before the current date",
|
"dateInColumnIsBeforeOrOnValuethDayBefore": "Date in column is before or on {{value}}-th day before the current date",
|
||||||
"afterXthDayBeforeafterCurrentDate": "After x-th day before/after current date",
|
"afterXthDayBeforeafterCurrentDate": "After x-th day before/after current date",
|
||||||
"dateInColumnIsAfterTheCurrentDate": "Date in column is after the current date",
|
|
||||||
"dateInColumnIsAfterValuethDayAfterThe": "Date in column is after {{value}}-th day after the current date",
|
"dateInColumnIsAfterValuethDayAfterThe": "Date in column is after {{value}}-th day after the current date",
|
||||||
"afterOrOnXthDayBeforeafterCurrentDate": "After or on x-th day before/after current date",
|
"afterOrOnXthDayBeforeafterCurrentDate": "After or on x-th day before/after current date",
|
||||||
"dateInColumnIsAfterOrOnTheCurrentDate": "Date in column is after or on the current date",
|
|
||||||
"dateInColumnIsAfterOrOnValuethDayAfter": "Date in column is after or on {{value}}-th day after the current date",
|
"dateInColumnIsAfterOrOnValuethDayAfter": "Date in column is after or on {{value}}-th day after the current date",
|
||||||
"isSelected": "Is selected",
|
"isSelected": "Is selected",
|
||||||
"valueInColumnColNameIsSelected": "Value in column \"{{colName}}\" is selected",
|
"valueInColumnColNameIsSelected": "Value in column \"{{colName}}\" is selected",
|
||||||
|
@ -615,6 +613,7 @@
|
||||||
"subscriptionStatus": "Subscription status",
|
"subscriptionStatus": "Subscription status",
|
||||||
"testUser?": "Test user?",
|
"testUser?": "Test user?",
|
||||||
"ifCheckedThenThisSubscriptionCanBeUsed": "If checked then this subscription can be used for previewing campaign messages",
|
"ifCheckedThenThisSubscriptionCanBeUsed": "If checked then this subscription can be used for previewing campaign messages",
|
||||||
|
"erased": "[ERASED]",
|
||||||
"blacklisted": "Blacklisted",
|
"blacklisted": "Blacklisted",
|
||||||
"allSubscriptions": "All subscriptions",
|
"allSubscriptions": "All subscriptions",
|
||||||
"subscriptionForm": "Subscription Form",
|
"subscriptionForm": "Subscription Form",
|
||||||
|
|
Loading…
Reference in a new issue