finish article_categories controllers i18n + translation

This commit is contained in:
wvengen 2013-04-04 02:10:52 +02:00
parent 8c8778459e
commit 4aa40b387a
5 changed files with 19 additions and 11 deletions

View file

@ -5,17 +5,17 @@ class ArticleCategoriesController < ApplicationController
before_filter :authenticate_article_meta
def create
create!(:notice => "Die Kategorie wurde gespeichert") { article_categories_path }
create!(:notice => I18n.t('controllers.create.notice')) { article_categories_path }
end
def update
update!(:notice => "Die Kategorie wurde aktualisiert") { article_categories_path }
update!(:notice => I18n.t('controllers.update.notice')) { article_categories_path }
end
def destroy
destroy!
rescue => error
redirect_to article_categories_path, alert: t('controller.article_categories.destroy.error', message: error.message)
redirect_to article_categories_path, alert: I18n.t('controllers.destroy.error', message: error.message)
end
protected