Skip to content

Commit

Permalink
Improve process step date display
Browse files Browse the repository at this point in the history
Refs #404
  • Loading branch information
carlobeltrame committed Sep 27, 2023
1 parent c31d969 commit e51036f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ def step_dates(participatory_process_step)
dates = [participatory_process_step.start_date, participatory_process_step.end_date].compact

case dates.count
when 0 then "Kein Datum angegeben"
when 0 then I18n.t('decidim_zuerich.participatory_processes.participatory_process_helper.step_dates.no_dates')
when 1 then localize(dates.first.to_date, format: :default)
when 2 then "#{localize(dates.first.to_date, format: :default)} - #{localize(dates.second.to_date, format: :default)}"
else ""
Expand Down
4 changes: 4 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1077,6 +1077,10 @@ de:
didn_t_receive_confirmation_instructions: Haben Sie keine Bestätigungsmail erhalten?
didn_t_receive_unlock_instructions: Haben Sie keine Entsperrungsanweisungen erhalten?
decidim_zuerich:
participatory_processes:
participatory_process_helper:
step_dates:
no_dates: 'Kein Datum angegeben'
devise:
mitwirken:
devise:
Expand Down

0 comments on commit e51036f

Please sign in to comment.