Add event type and localization to cost object activity provider (#2250)

pull/6827/head
Till Breuer 11 years ago
parent ecfd329cda
commit 0e69f1e300
  1. 4
      app/models/activity/cost_object_activity_provider.rb
  2. 3
      config/locales/de.yml
  3. 3
      config/locales/en.yml

@ -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

@ -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."

@ -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."

Loading…
Cancel
Save