Skip to content

Commit

Permalink
translations (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 14, 2020
1 parent 3c79d61 commit be5dced
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 12 deletions.
4 changes: 3 additions & 1 deletion app/controllers/admin/delayed_jobs/execution_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,9 @@ class Admin::DelayedJobs::ExecutionController < ApplicationController
def create
@job = Delayed::Job.find(params[:delayed_job_id])
@job.update(run_at: DateTime.current)
redirect_to admin_delayed_jobs_url, notice: ('admin.delayed_job.execution.triggered')

redirect_to admin_delayed_jobs_url,
notice: t('admin.delayed_job.execution.triggered')
end
end

4 changes: 4 additions & 0 deletions app/views/contacts/_form.html.haml
Original file line number Diff line number Diff line change
Expand Up @@ -17,18 +17,22 @@

- if !user_signed_in?
.field
-# i18n-tasks-use t('activemodel.attributes.contact.sender_email')
= f.label :sender_email, class: 'has-text-white'
= f.text_field :sender_email

.field
-# i18n-tasks-use t('activemodel.attributes.contact.phone_number')
= f.label :phone_number, class: 'has-text-white'
= f.text_field :phone_number

.field
-# i18n-tasks-use t('activemodel.attributes.contact.subject')
= f.label :subject, class: 'has-text-white'
= f.text_field :subject

.field
-# i18n-tasks-use t('activemodel.attributes.contact.message')
= f.label :message, class: 'has-text-white'
= f.text_area :message

Expand Down
4 changes: 4 additions & 0 deletions config/locales/admin.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,15 +25,19 @@ de:
destroy:
lesson-destroyed: Video gelöscht.
courses:
creation-succes: Kurs erstellt.
deletion-success: Kurs gelöscht.
edit: Kurs bearbeiten
new: Neuer Kurs
new_lesson_for: "Neues Video für %{style}"
order: Position
select_dow: Wochentag auswählen
select_place: Ort auswählen
select_style: Style auswählen
table:
order: Pos.
times: Zeiten
update-succes: Kurs aktualisiert.
delayed_job:
deleted: Job gelöscht.
execution:
Expand Down
11 changes: 0 additions & 11 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,23 +8,12 @@ de:
Customers: Kund*n
admin:
course:
lessons:
create:
edit:
edit:
title: Kurs bearbeiten
update:
lesson-updated: Video-Lektion aktualisiert.
new: Neu
courses:
cannot-delete-with-videos: Termin kann nicht gelöscht werden (hat noch Videos).
creation-succes: Kurs erstellt.
deletion-success: Kurs gelöscht.
name: Name
number_courses: Anzahl Kurse
number_lessons: Anzahl Videos
order: Position
update-succes: Kurs aktualisiert.
emails:
back_to_mails: Zurück zu E-Mails
mails_table:
Expand Down
2 changes: 2 additions & 0 deletions config/locales/models.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ de:
lesson:
date_end: End-Zeit
date_start: Start-Zeit
description: Beschreibung
name: Video-Name
preview_image: Vorschau-Bild
video: Video-Datei
Expand All @@ -50,6 +51,7 @@ de:
site_setting:
value: Wert
user:
email: E-Mail
read_privacy_terms: Stimme AGB zu
tos_agreement: Datenschutzhinweise gelesen
models:
Expand Down

0 comments on commit be5dced

Please sign in to comment.