Skip to content
Snippets Groups Projects
Commit 165aa8d1 authored by ext.sopra.ncastejon's avatar ext.sopra.ncastejon
Browse files

Add translation for the 'url too long' message.

parent 936c1504
Branches
Tags
1 merge request!73Development
Pipeline #5237 passed
...@@ -3,7 +3,7 @@ import { Component, OnDestroy, OnInit } from '@angular/core'; ...@@ -3,7 +3,7 @@ import { Component, OnDestroy, OnInit } from '@angular/core';
import { Meta } from '@angular/platform-browser'; import { Meta } from '@angular/platform-browser';
import { ActivatedRoute } from '@angular/router'; import { ActivatedRoute } from '@angular/router';
import { Subscription } from 'rxjs'; import { Subscription } from 'rxjs';
import { metaDescription } from '../../../../i18n/traductions'; import { metaDescription, notificationMessages } from '../../../../i18n/traductions';
import { Notification } from '../../../core/models'; import { Notification } from '../../../core/models';
import { NotificationService } from '../../../core/services'; import { NotificationService } from '../../../core/services';
import { CMSContent } from '../../../editorialisation/models'; import { CMSContent } from '../../../editorialisation/models';
...@@ -55,7 +55,7 @@ export class ResultsComponent implements OnInit, OnDestroy { ...@@ -55,7 +55,7 @@ export class ResultsComponent implements OnInit, OnDestroy {
if (location.href.length > 2000) { if (location.href.length > 2000) {
this._researchUrlService.reset(); this._researchUrlService.reset();
this._notificationService.notify(new Notification({ this._notificationService.notify(new Notification({
message: 'The url was too long bro. Have a join to feel better.', message: notificationMessages.general.urlToolLong,
type: 'warning', type: 'warning',
})); }));
} else { } else {
......
...@@ -73,6 +73,7 @@ export const notificationMessages = { ...@@ -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 !', 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.', 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.', failedDownloadFileUnauthenticated: 'Vous devez être connecté pour accéder à ce fichier.',
urlToolLong: 'L\'url est trop longue, elle ne peut pas être utilisée.',
}, },
userPasswordForgotten: { userPasswordForgotten: {
failed: 'Une erreur s\'est produite lors du lancement de la procédure de réinitialisation du mot de passe.', failed: 'Une erreur s\'est produite lors du lancement de la procédure de réinitialisation du mot de passe.',
......
...@@ -74,6 +74,7 @@ export const notificationMessages = { ...@@ -74,6 +74,7 @@ export const notificationMessages = {
failedDownloadFile: 'Sorry, it was not possible to download the file. Try later !', failedDownloadFile: 'Sorry, it was not possible to download the file. Try later !',
failedDownloadFileUnauthorized: 'You don\'t have the necessary rights to download this file.', failedDownloadFileUnauthorized: 'You don\'t have the necessary rights to download this file.',
failedDownloadFileUnauthenticated: 'You need to be authenticated 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: { userPasswordForgotten: {
failed: 'An error occured while initiating the password reset procedure', failed: 'An error occured while initiating the password reset procedure',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment