From 0e69f1e300420e6d1e66e274df76e123a4ee18f5 Mon Sep 17 00:00:00 2001 From: Till Breuer Date: Mon, 13 Jan 2014 10:02:18 +0100 Subject: [PATCH] Add event type and localization to cost object activity provider (#2250) --- app/models/activity/cost_object_activity_provider.rb | 4 ++++ config/locales/de.yml | 3 +++ config/locales/en.yml | 3 +++ 3 files changed, 10 insertions(+) diff --git a/app/models/activity/cost_object_activity_provider.rb b/app/models/activity/cost_object_activity_provider.rb index f8ed58d7a8..77babbdb81 100644 --- a/app/models/activity/cost_object_activity_provider.rb +++ b/app/models/activity/cost_object_activity_provider.rb @@ -21,6 +21,10 @@ class Activity::CostObjectActivityProvider < Activity::BaseActivityProvider ] end + def event_type(event, activity) + 'cost_object' + end + def event_title(event, activity) "#{l(:label_cost_object)} ##{event['journable_id']}: #{event['cost_object_subject']}" end diff --git a/config/locales/de.yml b/config/locales/de.yml index 2d8034797f..17c78e2e4d 100644 --- a/config/locales/de.yml +++ b/config/locales/de.yml @@ -92,6 +92,9 @@ de: description_date_for_new_rate: "Datum für neuen Satz" + events: + cost_object: "Budget editiert" + group_by_others: "In keiner der Gruppen" help_click_to_edit: "Hier Klicken zum bearbeiten." diff --git a/config/locales/en.yml b/config/locales/en.yml index 4bfdb935fc..80b0cc9fb6 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -92,6 +92,9 @@ en: description_date_for_new_rate: "Date for new rate" + events: + cost_object: "Budget edited" + group_by_others: "not in any group" help_click_to_edit: "Click here to edit."