From e8ab309c9655a88d856f6d95988ea0148e864ba7 Mon Sep 17 00:00:00 2001 From: Philipp Fischbeck Date: Fri, 2 Jan 2015 15:29:09 +0100 Subject: [PATCH] Translate a notice --- app/controllers/translations_controller.rb | 2 +- config/locales/views/translations/de.yml | 4 +++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/app/controllers/translations_controller.rb b/app/controllers/translations_controller.rb index 3134b7b..dafd0e3 100644 --- a/app/controllers/translations_controller.rb +++ b/app/controllers/translations_controller.rb @@ -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 } diff --git a/config/locales/views/translations/de.yml b/config/locales/views/translations/de.yml index 121d2c1..4e10690 100644 --- a/config/locales/views/translations/de.yml +++ b/config/locales/views/translations/de.yml @@ -4,4 +4,6 @@ de: translations: new: back: Zurück - new_translation: Neue Übersetzung für Problem %{id} \ No newline at end of file + new_translation: Neue Übersetzung für Problem %{id} + notice: + successfully_created: Übersetzung wurde erfolgreich erstellt. \ No newline at end of file