Skip to content

Commit

Permalink
fix and add i18n keys (#31)
Browse files Browse the repository at this point in the history
  • Loading branch information
fwolfst committed Oct 10, 2020
1 parent 54cc16c commit 0f6ad71
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 3 deletions.
4 changes: 2 additions & 2 deletions app/controllers/admin/styles_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ def create

respond_to do |format|
if @style.save
format.html { redirect_to @style, notice: t('admin.styles.creation-succes') }
format.html { redirect_to @style, notice: t('admin.styles.creation-success') }
else
format.html { render :new }
end
Expand All @@ -39,7 +39,7 @@ def create
def update
respond_to do |format|
if @style.update(style_params)
format.html { redirect_to @style, notice: t('admin.styles.update-succes') }
format.html { redirect_to @style, notice: t('admin.styles.update-success') }
else
format.html { render :edit }
end
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/pages_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ def explanation
end

def courses_general
@html_title = t('courses_general')
@html_title = t('pages.courses_general')
render 'page', locals: {content: SiteSetting['courses_general'], site_setting: 'courses_general'}
end
end
3 changes: 3 additions & 0 deletions config/locales/admin.de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,12 @@ de:
times: Zeiten
items:
none: Keine
lessons:
edit: Video bearbeiten
place:
creation-success: Ort erstellt
deletion-success: Ort gelöscht
title: Ort
update-success: Ort aktualisiert
places:
add_course: Kurs hinzufügen
Expand Down
2 changes: 2 additions & 0 deletions config/locales/de.yml
Original file line number Diff line number Diff line change
Expand Up @@ -278,6 +278,8 @@ de:
videos: Videos
no-video-support: Dein Browser unterstützt keine Videos!
not authorized: Nicht authorisiert
pages:
courses_general: Allgemeines zu den Kursen
pagy:
showing_from_to_total: Zeige %{item_name} %{from}-%{to} von %{total} gesamt.
register:
Expand Down

0 comments on commit 0f6ad71

Please sign in to comment.