diff --git a/src/app/datasets/components/results/results.component.ts b/src/app/datasets/components/results/results.component.ts index 1f8947e7728d22406865038787c8bbde6d940952..e81ed1d27ae1052e53ccd9be32b50acfb8ef2a88 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 2b5a33cb53a37628f4641462bc6e97bd3a7f1294..8472c1040746fb905bd75e02dc64142b081b41c3 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 eec1e462d80bf48d2cba5396722bd6cb79c1381b..1c8da4c11b40ff381d512fdcdecf8149721ead4c 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',