workgroups i18n

This commit is contained in:
wvengen 2013-02-13 01:32:48 +01:00
parent 02f04be6e8
commit c693f697ff
4 changed files with 15 additions and 5 deletions

View file

@ -14,7 +14,7 @@ class Foodcoop::WorkgroupsController < ApplicationController
def update
@workgroup = Workgroup.find(params[:id])
if @workgroup.update_attributes(params[:workgroup])
redirect_to foodcoop_workgroups_url, :notice => "Arbeitsgruppe wurde aktualisiert"
redirect_to foodcoop_workgroups_url, :notice => I18n.t('workgroups.update.notice')
else
render :action => 'edit'
end