Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
open-source
aoz-003
Commits
88b1f70c
Verified
Commit
88b1f70c
authored
Jul 07, 2017
by
Kaspar Vollenweider
👻
Browse files
german is a language that is not nice to code. had to fix this quickly
parent
1c7b50ad
Changes
2
Hide whitespace changes
Inline
Side-by-side
app/controllers/volunteers_controller.rb
View file @
88b1f70c
...
...
@@ -27,7 +27,7 @@ class VolunteersController < ApplicationController
@volunteer
.
registrar
=
current_user
authorize
@volunteer
if
@volunteer
.
save
redirect_to
@volunteer
,
make_
notice
redirect_to
@volunteer
,
notice
:
t
(
'volunteer_created'
)
else
render
:new
end
...
...
@@ -40,13 +40,13 @@ class VolunteersController < ApplicationController
redirect_to
volunteers_path
,
notice:
t
(
'invite_sent'
,
email:
@volunteer
.
contact
.
primary_email
)
else
redirect_to
@volunteer
,
make_
notice
redirect_to
@volunteer
,
notice
:
t
(
'volunteer_updated'
)
end
end
def
destroy
@volunteer
.
destroy
redirect_to
volunteers_url
,
make_
notice
redirect_to
volunteers_url
,
notice
:
t
(
'volunteer_destroyed'
)
end
private
...
...
config/locales/de.yml
View file @
88b1f70c
...
...
@@ -186,7 +186,7 @@ de:
relative
:
Verwante/r
schedule
:
Zeitplan
user
:
Benutzer/in
volunteer
:
Freiwillige/
r
volunteer
:
Freiwillige/
n
volunteer_application
:
Freiwilligen Bewerbung
volunteer_email
:
Bestätigungsmail
add_language
:
Sprache hinzufügen
...
...
@@ -208,6 +208,7 @@ de:
client_destroyed
:
Klient/in wurde erfolgreich gelöscht.
client_updated
:
Klient/in wurde erfolgreich aktualisiert.
clients
:
Klienten/innen
profile_updated
:
Der Login wurde erfolgreich geändert.
contact_info
:
Kontakt Informationen
contacts
:
fields
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment