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|
|
respond_to do |format|
|
||||||
if @translation.save
|
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 }
|
format.json { render :show, status: :created, location: @translation }
|
||||||
else
|
else
|
||||||
format.html { render :new }
|
format.html { render :new }
|
||||||
|
|||||||
@ -4,4 +4,6 @@ de:
|
|||||||
translations:
|
translations:
|
||||||
new:
|
new:
|
||||||
back: Zurück
|
back: Zurück
|
||||||
new_translation: Neue Übersetzung für Problem %{id}
|
new_translation: Neue Übersetzung für Problem %{id}
|
||||||
|
notice:
|
||||||
|
successfully_created: Übersetzung wurde erfolgreich erstellt.
|
||||||
Loading…
Reference in New Issue
Block a user