Verified Commit 88b1f70c authored by Kaspar Vollenweider's avatar Kaspar Vollenweider 👻
Browse files

german is a language that is not nice to code. had to fix this quickly

parent 1c7b50ad
...@@ -27,7 +27,7 @@ class VolunteersController < ApplicationController ...@@ -27,7 +27,7 @@ class VolunteersController < ApplicationController
@volunteer.registrar = current_user @volunteer.registrar = current_user
authorize @volunteer authorize @volunteer
if @volunteer.save if @volunteer.save
redirect_to @volunteer, make_notice redirect_to @volunteer, notice: t('volunteer_created')
else else
render :new render :new
end end
...@@ -40,13 +40,13 @@ class VolunteersController < ApplicationController ...@@ -40,13 +40,13 @@ class VolunteersController < ApplicationController
redirect_to volunteers_path, redirect_to volunteers_path,
notice: t('invite_sent', email: @volunteer.contact.primary_email) notice: t('invite_sent', email: @volunteer.contact.primary_email)
else else
redirect_to @volunteer, make_notice redirect_to @volunteer, notice: t('volunteer_updated')
end end
end end
def destroy def destroy
@volunteer.destroy @volunteer.destroy
redirect_to volunteers_url, make_notice redirect_to volunteers_url, notice: t('volunteer_destroyed')
end end
private private
......
...@@ -186,7 +186,7 @@ de: ...@@ -186,7 +186,7 @@ de:
relative: Verwante/r relative: Verwante/r
schedule: Zeitplan schedule: Zeitplan
user: Benutzer/in user: Benutzer/in
volunteer: Freiwillige/r volunteer: Freiwillige/n
volunteer_application: Freiwilligen Bewerbung volunteer_application: Freiwilligen Bewerbung
volunteer_email: Bestätigungsmail volunteer_email: Bestätigungsmail
add_language: Sprache hinzufügen add_language: Sprache hinzufügen
...@@ -208,6 +208,7 @@ de: ...@@ -208,6 +208,7 @@ de:
client_destroyed: Klient/in wurde erfolgreich gelöscht. client_destroyed: Klient/in wurde erfolgreich gelöscht.
client_updated: Klient/in wurde erfolgreich aktualisiert. client_updated: Klient/in wurde erfolgreich aktualisiert.
clients: Klienten/innen clients: Klienten/innen
profile_updated: Der Login wurde erfolgreich geändert.
contact_info: Kontakt Informationen contact_info: Kontakt Informationen
contacts: contacts:
fields: fields:
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment