Updates in locale

This commit is contained in:
Tomas Bures 2018-11-18 21:34:28 +01:00
parent dc7789c17b
commit ec299053ba
3 changed files with 18 additions and 12 deletions

View file

@ -119,6 +119,7 @@
"editRssCampaign": "Edit RSS Campaign",
"editTriggeredCampaign": "Edit Triggered Campaign",
"template": "Template",
"template_plural": "Templates",
"customContentClonedFromTemplate": "Custom content cloned from template",
"customContentClonedFromAnotherCampaign": "Custom content cloned from another campaign",
"customContent": "Custom content",
@ -140,11 +141,13 @@
"subscribers": "Subscribers",
"description": "Description",
"namespace": "Namespace",
"namespace_plural": "Namespaces",
"remove": "Remove",
"insertNewEntryBeforeThisOne": "Insert new entry before this one",
"moveUp": "Move up",
"moveDown": "Move down",
"list": "List",
"list_plural": "Lists",
"segment": "Segment",
"useAParticularSegment": "Use a particular segment",
"lists": "Lists",
@ -160,6 +163,7 @@
"contentSource": "Content source",
"selectingATemplateCreatesACampaign": "Selecting a template creates a campaign specific copy from it.",
"campaign": "Campaign",
"campaign_plural": "Campaigns",
"contentOfTheSelectedCampaignWillBeCopied": "Content of the selected campaign will be copied into this campaign.",
"renderUrl": "Render URL",
"ifAMessageIsSentThenThisUrlWillBePosTed": "If a message is sent then this URL will be POSTed to using Merge Tags as POST body. Use this if you want to generate the HTML message yourself.",
@ -171,6 +175,7 @@
"formCannotBeEditedBecauseTheCampaignIs": "Form cannot be edited because the campaign is currently being sent out. Wait till the sending is finished and refresh.",
"thisIsTheCampaignIdDisplayedToThe": "This is the campaign ID displayed to the subscribers",
"sendConfiguration": "Send configuration",
"sendConfiguration_plural": "Send configurations",
"customUnsubscribeUrl": "Custom unsubscribe URL",
"disableOpenedTracking": "Disable opened tracking",
"disableClickedTracking": "Disable clicked tracking",
@ -296,12 +301,7 @@
"someoneElseHasIntroducedModificationIn": "Someone else has introduced modification in the meantime. Refresh your page to start anew with fresh data. Please note that your changes will be lost.",
"itSeemsThatSomeoneElseHasDeletedThe": "It seems that someone else has deleted the target namespace in the meantime. Refresh your page to start anew with fresh data. Please note that your changes will be lost.",
"itSeemsThatSomeoneElseHasDeletedThe-1": "It seems that someone else has deleted the entity in the meantime.",
"namespace_plural": "Namespaces",
"list_plural": "Lists",
"customForms": "Custom forms",
"campaign_plural": "Campaigns",
"template_plural": "Templates",
"sendConfiguration_plural": "Send configurations",
"report": "Report",
"report_plural": "Reports",
"reportTemplate": "Report template",
@ -860,6 +860,12 @@
"foundAddedMessagesNewCampaignMessages": "Found {{addedMessages}} new campaign messages from feed {{campaignId}}",
"foundNothingNewFromTheFeed": "Found nothing new from the feed",
"missingEmail": "Missing email",
"en": "EN",
"english": "English",
"es": "ES",
"spanish": "Spanish",
"fake": "FAKE",
"fake-1": "Fake",
"thePasswordMustBeAtLeastMinLength": "The password must be at least {{ minLength }} characters long",
"thePasswordMustBeFewerThanMaxLength": "The password must be fewer than {{ maxLength }} characters",
"thePasswordMayNotContainSequencesOfThree": "The password may not contain sequences of three or more repeated characters",

View file

@ -14,7 +14,7 @@ const camelCase = require('camelcase');
const slugify = require('slugify');
const readline = require('readline');
const localeFile = 'common/en.json';
const localeFile = 'en/common.json';
const searchDirs = [
'../client/src',
'../server',

View file

@ -41,20 +41,20 @@ function convertToFake(dict) {
const langCodes = {
en_US: {
getShortLabel: t => t('EN'),
getLabel: t => t('English'),
getShortLabel: t => t('en'),
getLabel: t => t('english'),
shortCode: 'en',
longCode: 'en_US'
},
es: {
getShortLabel: t => t('ES'),
getLabel: t => t('Spanish'),
getShortLabel: t => t('es'),
getLabel: t => t('spanish'),
shortCode: 'es',
longCode: 'es'
},
fake: {
getShortLabel: t => t('FAKE'),
getLabel: t => t('Fake'),
getShortLabel: t => t('fake'),
getLabel: t => t('fake-1'),
shortCode: 'fake',
longCode: 'fake'
}