From 7b2c9545bb01d05feb0f8cb729b737f014795f78 Mon Sep 17 00:00:00 2001 From: Andreas Stephanides Date: Tue, 27 Aug 2013 22:09:43 +0200 Subject: [PATCH] neuigkeit.publish local --- app/controllers/neuigkeiten_controller.rb | 2 +- config/locales/neuigkeiten.de.yml | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/app/controllers/neuigkeiten_controller.rb b/app/controllers/neuigkeiten_controller.rb index a1d357f..af0f647 100755 --- a/app/controllers/neuigkeiten_controller.rb +++ b/app/controllers/neuigkeiten_controller.rb @@ -9,7 +9,7 @@ class NeuigkeitenController < ApplicationController def show @neuigkeit = Neuigkeit.find(params[:id]) if params[:verwalten] - @toolbar_elements << {:hicon=>'icon-plus', :text=> "publish",:path => publish_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit),:confirm=>"Sure?" } if can? :publish, @neuigkeit + @toolbar_elements << {:hicon=>'icon-plus', :text=> I18n.t('neuigkeit.publish'),:path => publish_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit),:confirm=>"Sure?" } if can? :publish, @neuigkeit @toolbar_elements << {:text=>I18n.t('common.edit'),:path=>edit_rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit),:icon=>:pencil} if can? :edit, @neuigkeit @toolbar_elements << {:hicon=>'icon-remove-circle', :text=> I18n.t('common.delete'),:path => rubrik_neuigkeit_path(@neuigkeit.rubrik,@neuigkeit), :method=> :delete,:confirm=>"Sure?" } if can? :delete, @neuigkeit diff --git a/config/locales/neuigkeiten.de.yml b/config/locales/neuigkeiten.de.yml index 3e1aca0..171d8b3 100644 --- a/config/locales/neuigkeiten.de.yml +++ b/config/locales/neuigkeiten.de.yml @@ -1,6 +1,7 @@ de: neuigkeit: + publish: "Neuigkeit veröffentlichen" new: title: "Neue Neuigkeit" rubriken: