1
0
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:
Philipp Fischbeck 2015-01-02 15:29:09 +01:00
parent 9b17745375
commit e8ab309c96
2 changed files with 4 additions and 2 deletions

View File

@ -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 }

View File

@ -4,4 +4,6 @@ de:
translations:
new:
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.