diff --git a/client/src/lib/page.js b/client/src/lib/page.js index 5bfccd3f..898c96cd 100644 --- a/client/src/lib/page.js +++ b/client/src/lib/page.js @@ -414,10 +414,11 @@ export class SectionContent extends Component { } componentDidMount() { + const t = this.props.t; const queryParams = this.props.location.search; - if (queryParams.indexOf('cas-login-success') > -1) this.setFlashMessage('success', 'Successful authentication'); - if (queryParams.indexOf('cas-logout-success') > -1) this.setFlashMessage('success', 'Successful logout'); - if (queryParams.indexOf('cas-login-error') > -1) this.setFlashMessage('danger', 'Fail authentication'); + if (queryParams.indexOf('cas-login-success') > -1) this.setFlashMessage('success', t('authenticationSuccessful')); + if (queryParams.indexOf('cas-logout-success') > -1) this.setFlashMessage('success', t('logoutSuccessful')); + if (queryParams.indexOf('cas-login-error') > -1) this.setFlashMessage('danger', t('authenticationFailed')); window.addEventListener('beforeunload', this.beforeUnloadHandler); this.historyUnblock = this.props.history.block('Changes you made may not be saved. Are you sure you want to leave this page?'); diff --git a/locales/de-DE/common.json b/locales/de-DE/common.json index 0802c0da..3498f472 100644 --- a/locales/de-DE/common.json +++ b/locales/de-DE/common.json @@ -1064,5 +1064,8 @@ "channelName": "Channel \"{{name}}\"", "cloneCampaign": "Clone Campaign", "next": "Next", - "selectCampaignToBeCloned": "Select campaign to be cloned." + "selectCampaignToBeCloned": "Select campaign to be cloned.", + "authenticationSuccessful": "Authentication successful", + "logoutSucessful": "Logout successful", + "authenticationFailed": "Authentication failed" } diff --git a/locales/en-US/common.json b/locales/en-US/common.json index 215b703a..cc08d156 100644 --- a/locales/en-US/common.json +++ b/locales/en-US/common.json @@ -1070,5 +1070,8 @@ "channelName": "Channel \"{{name}}\"", "cloneCampaign": "Clone Campaign", "next": "Next", - "selectCampaignToBeCloned": "Select campaign to be cloned." + "selectCampaignToBeCloned": "Select campaign to be cloned.", + "authenticationSuccessful": "Authentication successful", + "logoutSucessful": "Logout successful", + "authenticationFailed": "Authentication failed" } diff --git a/locales/es-ES/common.json b/locales/es-ES/common.json index a7fe842d..a59efeb9 100644 --- a/locales/es-ES/common.json +++ b/locales/es-ES/common.json @@ -1094,5 +1094,8 @@ "selectCampaignToBeCloned": "Elige la campaña que será clonada.", "tagLanguage": "Lenguaje de marcado", "tagLanguageMustBeSelected": "Debes seleccionar un lenguaje de marcado", - "helpText": "Texto de ayuda" + "helpText": "Texto de ayuda", + "authenticationSuccessful": "Autentificación completada con éxito", + "logoutSucessful": "Logout completado con éxito", + "authenticationFailed": "Autentificación fallida" } diff --git a/locales/fr-FR/common.json b/locales/fr-FR/common.json index a7dbe39f..33a4f3b3 100644 --- a/locales/fr-FR/common.json +++ b/locales/fr-FR/common.json @@ -1065,5 +1065,8 @@ "channelName": "Channel \"{{name}}\"", "cloneCampaign": "Clone Campaign", "next": "Next", - "selectCampaignToBeCloned": "Select campaign to be cloned." + "selectCampaignToBeCloned": "Select campaign to be cloned.", + "authenticationSuccessful": "Authentication successful", + "logoutSucessful": "Logout successful", + "authenticationFailed": "Authentication failed" } diff --git a/locales/pt-BR/common.json b/locales/pt-BR/common.json index 17d2d124..786366d4 100644 --- a/locales/pt-BR/common.json +++ b/locales/pt-BR/common.json @@ -1143,5 +1143,8 @@ "channelName": "Channel \"{{name}}\"", "cloneCampaign": "Clone Campaign", "next": "Next", - "selectCampaignToBeCloned": "Select campaign to be cloned." + "selectCampaignToBeCloned": "Select campaign to be cloned.", + "authenticationSuccessful": "Authentication successful", + "logoutSucessful": "Logout successful", + "authenticationFailed": "Authentication failed" }