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
...
@@ -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
...
...
config/locales/de.yml
View file @
88b1f70c
...
@@ -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
:
...
...
Write
Preview
Supports
Markdown
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