diff --git a/app/views/finance/ordergroups/_ordergroups.html.haml b/app/views/finance/ordergroups/_ordergroups.html.haml index 253b1aea..a273979d 100644 --- a/app/views/finance/ordergroups/_ordergroups.html.haml +++ b/app/views/finance/ordergroups/_ordergroups.html.haml @@ -4,9 +4,9 @@ %table.table.table-striped %thead %tr - %th= sort_link_helper "Name", "name", :per_page => @per_page + %th= sort_link_helper t('.name'), "name", :per_page => @per_page %th Kontakt - %th.numeric= sort_link_helper "Kontostand", "account_balance", :per_page => @per_page + %th.numeric= sort_link_helper t('.account_balance'), "account_balance", :per_page => @per_page %th %tbody - for ordergroup in @ordergroups @@ -15,6 +15,6 @@ %td= ordergroup.contact %td.numeric= number_to_currency(ordergroup.account_balance) %td - = link_to "Neue Transaktion", new_finance_ordergroup_transaction_path(ordergroup), class: 'btn btn-mini' - = link_to "Kontoauszug", finance_ordergroup_transactions_path(ordergroup), class: 'btn btn-mini' + = link_to t('.new_transaction'), new_finance_ordergroup_transaction_path(ordergroup), class: 'btn btn-mini' + = link_to t('.account_statement'), finance_ordergroup_transactions_path(ordergroup), class: 'btn btn-mini' \ No newline at end of file diff --git a/app/views/finance/ordergroups/index.html.haml b/app/views/finance/ordergroups/index.html.haml index 7af84246..e9c73f21 100644 --- a/app/views/finance/ordergroups/index.html.haml +++ b/app/views/finance/ordergroups/index.html.haml @@ -1,13 +1,13 @@ -- title "Konten verwalten" +- title t('.title') - content_for :actionbar do - = link_to "Neue Überweisungen eingeben", finance_new_transaction_collection_path, class: 'btn btn-primary' + = link_to t('.new_transaction'), finance_new_transaction_collection_path, class: 'btn btn-primary' .well.well-small = form_tag finance_ordergroups_path, :method => :get, :remote => true, 'data-submit-onchange' => true, class: 'form-search' do = text_field_tag :query, params[:query], class: 'input-medium search-query', - placeholder: 'Suchen ...' + placeholder: t('.search_placeholder') #ordergroupsTable = render :partial => "ordergroups" \ No newline at end of file diff --git a/config/locales/de/de.finance.yml b/config/locales/de/de.finance.yml index aa010d61..67dc41bb 100644 --- a/config/locales/de/de.finance.yml +++ b/config/locales/de/de.finance.yml @@ -134,4 +134,14 @@ de: amount_change_for: 'Mengenänderung für %{article}' close: 'Schließen' save: "Speichern" + ordergroups: + ordergroups: + name: "Name" + account_balance: "Kontostand" + new_transaction: "Neue Transaktion" + account_statement: "Kontoauszug" + index: + title: "Konten verwalten" + new_transaction: "Neue Überweisungen eingeben" + search_placeholder: 'Suchen ...' \ No newline at end of file