From 7cb1c0a12239bcf99f2be74304151e2fd00b01da Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Tue, 21 Jun 2016 10:34:56 +0200 Subject: [PATCH] i18n for internal error --- config/locales/js-en.yml | 2 ++ frontend/app/components/wp-edit/wp-notification.service.ts | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml index 6e8203850c..9f703c86f8 100644 --- a/config/locales/js-en.yml +++ b/config/locales/js-en.yml @@ -63,6 +63,8 @@ en: description_select_work_package: "Select work package #%{id}" description_selected_columns: "Selected Columns" description_subwork_package: "Child of work package #%{id}" + error: + internal: "An internal error has occcurred." filter: description: text_open_filter: "Open this filter with 'ALT' and arrow keys." diff --git a/frontend/app/components/wp-edit/wp-notification.service.ts b/frontend/app/components/wp-edit/wp-notification.service.ts index 9c6a71f817..af00967c6a 100644 --- a/frontend/app/components/wp-edit/wp-notification.service.ts +++ b/frontend/app/components/wp-edit/wp-notification.service.ts @@ -53,7 +53,7 @@ export class WorkPackageNotificationService { } public showGeneralError() { - this.NotificationsService.addError("An internal error has occcurred."); + this.NotificationsService.addError(I18n.t('js.error.internal')); } private showCustomError(errorResource, workPackage) {