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