Skip to content

Commit

Permalink
translate admin course form select prompts
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 9, 2020
1 parent 836ac9a commit 2f1afeb
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
6 changes: 3 additions & 3 deletions app/views/admin/courses/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
= f.text_field :description
.field
= f.label :place
= f.collection_select :place_id, @places, :id, :name, prompt: t('Select Place')
= f.collection_select :place_id, @places, :id, :name, prompt: t('admin.courses.select_place')
.field
= f.label :style
= f.collection_select :style_id, @styles, :id, :name, prompt: t('Select Style')
= f.collection_select :style_id, @styles, :id, :name, prompt: t('admin.courses.select_style')
.field
= f.label :dayofweek
= f.select :dayofweek, I18n.t(:'date.day_names').zip(0..7), prompt: t('Select Day of week')
= f.select :dayofweek, I18n.t(:'date.day_names').zip(0..7), prompt: t('admin.courses.select_dow')
.field
= f.label :start_time
= f.time_select :start_time, {minute_step: 5}
Expand Down
3 changes: 3 additions & 0 deletions config/locales/admin.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,9 @@ de:
courses:
edit: Kurs bearbeiten
new: Neuer Kurs
select_dow: Wochentag auswählen
select_place: Ort auswählen
select_style: Style auswählen
places:
add_course: Kurs hinzufügen
all: Alle Orte
Expand Down

0 comments on commit 2f1afeb

Please sign in to comment.