From bf2a4c00dcf346a8911f7a5ef2b650c8e3fec9f0 Mon Sep 17 00:00:00 2001 From: Roman Roelofsen Date: Mon, 27 Mar 2017 13:57:10 +0200 Subject: [PATCH] Timeline, added i18n labels in context menu --- config/locales/js-en.yml | 2 ++ .../context-menu-helper/wp-context-menu-helper.service.ts | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/config/locales/js-en.yml b/config/locales/js-en.yml index 4086076b3b..82bad61925 100644 --- a/config/locales/js-en.yml +++ b/config/locales/js-en.yml @@ -297,6 +297,8 @@ en: remove_child: "Remove child" add_new_relation: "Create new relation" update_description: "Set or update description of this relation" + add_follower: "Add follower" + add_predecessor: "Add predecessor" remove: "Remove relation" save: "Save relation" abort: "Abort" diff --git a/frontend/app/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts b/frontend/app/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts index 116413164b..6fa10b29c2 100644 --- a/frontend/app/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts +++ b/frontend/app/components/wp-table/context-menu-helper/wp-context-menu-helper.service.ts @@ -114,12 +114,12 @@ function WorkPackageContextMenuHelper( if (states.table.timelineVisible.getCurrentValue()) { allowedActions.push({ icon: "timeline-relation-add-predecessor", - text: "add-predecessor", + text: I18n.t("js.relation_buttons.add_predecessor"), link: "addRelation" }); allowedActions.push({ icon: "timeline-relation-add-follower", - text: "add-follower", + text: I18n.t("js.relation_buttons.add_follower"), link: "addRelation" }); }