From 165aa8d16f6d20c56ac312721eb248887e16cdef Mon Sep 17 00:00:00 2001 From: "ext.sopra.ncastejon" <castejon.nicolas@gmail.com> Date: Mon, 11 May 2020 08:52:21 +0200 Subject: [PATCH] Add translation for the 'url too long' message. --- src/app/datasets/components/results/results.component.ts | 4 ++-- src/i18n/traductions.fr.ts | 1 + src/i18n/traductions.ts | 1 + 3 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/app/datasets/components/results/results.component.ts b/src/app/datasets/components/results/results.component.ts index 1f8947e7..e81ed1d2 100644 --- a/src/app/datasets/components/results/results.component.ts +++ b/src/app/datasets/components/results/results.component.ts @@ -3,7 +3,7 @@ import { Component, OnDestroy, OnInit } from '@angular/core'; import { Meta } from '@angular/platform-browser'; import { ActivatedRoute } from '@angular/router'; import { Subscription } from 'rxjs'; -import { metaDescription } from '../../../../i18n/traductions'; +import { metaDescription, notificationMessages } from '../../../../i18n/traductions'; import { Notification } from '../../../core/models'; import { NotificationService } from '../../../core/services'; import { CMSContent } from '../../../editorialisation/models'; @@ -55,7 +55,7 @@ export class ResultsComponent implements OnInit, OnDestroy { if (location.href.length > 2000) { this._researchUrlService.reset(); this._notificationService.notify(new Notification({ - message: 'The url was too long bro. Have a join to feel better.', + message: notificationMessages.general.urlToolLong, type: 'warning', })); } else { diff --git a/src/i18n/traductions.fr.ts b/src/i18n/traductions.fr.ts index 2b5a33cb..8472c104 100644 --- a/src/i18n/traductions.fr.ts +++ b/src/i18n/traductions.fr.ts @@ -73,6 +73,7 @@ export const notificationMessages = { failedDownloadFile: 'Désolé, il n\'a pas été possible de télécharger le fichier. Essayez plus tard !', failedDownloadFileUnauthorized: 'Vous n\'avez pas les droits nécéssaires pour télécharger ce fichier.', failedDownloadFileUnauthenticated: 'Vous devez être connecté pour accéder à ce fichier.', + urlToolLong: 'L\'url est trop longue, elle ne peut pas être utilisée.', }, userPasswordForgotten: { failed: 'Une erreur s\'est produite lors du lancement de la procédure de réinitialisation du mot de passe.', diff --git a/src/i18n/traductions.ts b/src/i18n/traductions.ts index eec1e462..1c8da4c1 100644 --- a/src/i18n/traductions.ts +++ b/src/i18n/traductions.ts @@ -74,6 +74,7 @@ export const notificationMessages = { failedDownloadFile: 'Sorry, it was not possible to download the file. Try later !', failedDownloadFileUnauthorized: 'You don\'t have the necessary rights to download this file.', failedDownloadFileUnauthenticated: 'You need to be authenticated to download this file.', + urlToolLong: 'The url is too long, it can not be used.', }, userPasswordForgotten: { failed: 'An error occured while initiating the password reset procedure', -- GitLab