workgroups i18n
This commit is contained in:
parent
02f04be6e8
commit
c693f697ff
4 changed files with 15 additions and 5 deletions
|
@ -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
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
- title "Edit Workgroup"
|
||||
- title t('.title')
|
||||
- form_for @workgroup do |f|
|
||||
= f.error_messages
|
||||
%p
|
||||
|
@ -81,4 +81,4 @@
|
|||
= f.label :contact_address
|
||||
%br/
|
||||
= f.text_field :contact_address
|
||||
%p= f.submit "Submit"
|
||||
%p= f.submit t('ui.edit')
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
- title "Workgroups"
|
||||
- title t('.title')
|
||||
%table
|
||||
%tr
|
||||
%th Type
|
||||
|
@ -43,4 +43,4 @@
|
|||
%td= h workgroup.contact_person
|
||||
%td= h workgroup.contact_phone
|
||||
%td= h workgroup.contact_address
|
||||
%td= link_to "Edit", edit_workgroup_path(workgroup)
|
||||
%td= link_to t('ui.edit'), edit_workgroup_path(workgroup)
|
||||
|
|
10
config/locales/de/de.workgroups.yml
Normal file
10
config/locales/de/de.workgroups.yml
Normal file
|
@ -0,0 +1,10 @@
|
|||
de:
|
||||
workgroups:
|
||||
edit:
|
||||
title: 'Arbeitsgruppe bearbeiten'
|
||||
index:
|
||||
title: 'Arbeitsgruppen'
|
||||
|
||||
# used by controller
|
||||
update:
|
||||
notice: 'Arbeitsgruppe wurde aktualisiert'
|
Loading…
Reference in a new issue