mirror of
https://github.com/projekteuler/projekteuler.git
synced 2025-12-10 08:46:41 +01:00
Translate a notice
This commit is contained in:
parent
9b17745375
commit
e8ab309c96
@ -25,7 +25,7 @@ class TranslationsController < ApplicationController
|
||||
|
||||
respond_to do |format|
|
||||
if @translation.save
|
||||
format.html { redirect_to @translation, notice: 'Translation was successfully created.' }
|
||||
format.html { redirect_to @translation, notice: t('translations.notice.successfully_created') }
|
||||
format.json { render :show, status: :created, location: @translation }
|
||||
else
|
||||
format.html { render :new }
|
||||
|
||||
@ -5,3 +5,5 @@ de:
|
||||
new:
|
||||
back: Zurück
|
||||
new_translation: Neue Übersetzung für Problem %{id}
|
||||
notice:
|
||||
successfully_created: Übersetzung wurde erfolgreich erstellt.
|
||||
Loading…
Reference in New Issue
Block a user