diff --git a/app/models/activity.rb b/app/models/activity.rb index dfd6661c1..89483e07f 100644 --- a/app/models/activity.rb +++ b/app/models/activity.rb @@ -399,13 +399,7 @@ def google_event(loc = nil) return nil if start.nil? || self.end.nil? loc = I18n.locale if loc.nil? - - disclaimer_en = "[Data on this activity may be outdated, as it was addes as a one-time copy of the information " \ - "given at that time]" - disclaimer_nl = "[Gegevens in deze afspraak kunnen outdated zijn, omdat deze waren toegevoegd als een eenmalig " \ - "kopie van wat toen bekend was]" - disclaimer = loc == :nl ? disclaimer_nl : disclaimer_en - + disclaimer = "[#{ I18n.t('activerecord.attributes.activity.disclaimer') }]" description = "#{ activity_url }\n\n#{ description_localised(loc) }\n\n#{ disclaimer }" uri_name = URI.encode_www_form_component(name) uri_description = URI.encode_www_form_component(description) diff --git a/config/locales/en.yml b/config/locales/en.yml index 019c8f609..e6760b3ca 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -33,6 +33,7 @@ en: description: Description description_en: English description description_nl: Dutch description + disclaimer: Data on this activity may be outdated, as it was addes as a one-time copy of the information given at that time. Up-to-date info can be found on Koala. end_date: Enddate end_time: Endtime google_event: Copy once to calendar diff --git a/config/locales/nl.yml b/config/locales/nl.yml index 8dd5d2baf..d8d03d38d 100644 --- a/config/locales/nl.yml +++ b/config/locales/nl.yml @@ -33,6 +33,7 @@ nl: description: Beschrijving description_en: Engelse beschrijving description_nl: Nederlandse beschrijving + disclaimer: Gegevens in deze afspraak kunnen outdated zijn, omdat deze waren toegevoegd als een eenmalig kopie van wat toen bekend was. Up-to-date informatie staat op Koala. end_date: Einddatum end_time: Eindtijd google_event: Kopiƫer eenmalig naar agenda