i18n cleanups (affects #137)

This commit is contained in:
wvengen 2013-11-23 12:05:29 +01:00
parent ad2822dd9e
commit 135e938d3d
10 changed files with 41 additions and 63 deletions

View file

@ -4,10 +4,10 @@
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%td= sort_link_helper t('.date'), "date" %th= sort_link_helper heading_helper(FinancialTransaction, :created_on), "date"
%td= t('.who') %th= heading_helper FinancialTransaction, :user
%td= sort_link_helper t('.note'), "note" %th= sort_link_helper heading_helper(FinancialTransaction, :note), "note"
%td= sort_link_helper t('.amount'), "amount" %th= sort_link_helper heading_helper(FinancialTransaction, :amount), "amount"
%tbody %tbody
- @financial_transactions.each do |t| - @financial_transactions.each do |t|
%tr %tr

View file

@ -21,13 +21,13 @@
= form_tag finance_create_transaction_collection_path do = form_tag finance_create_transaction_collection_path do
%p %p
%b= t('.note') %b= heading_helper FinancialTransaction, :note
= text_field_tag :note, params[:note], class: 'input-xlarge', required: 'required' = text_field_tag :note, params[:note], class: 'input-xlarge', required: 'required'
%p %p
%table#ordergroups{:style => "width:20em"} %table#ordergroups{:style => "width:20em"}
%tr %tr
%th= t('.ordergroup') %th= heading_helper FinancialTransaction, :ordergroup
%th= t('.amount') %th= heading_helper FinancialTransaction, :amount
= render :partial => 'ordergroup', :collection => [1, 2, 3] = render :partial => 'ordergroup', :collection => [1, 2, 3]
%p %p
= link_to t('.new_ordergroup'), '#', 'data-add-transaction' => true, class: 'btn' = link_to t('.new_ordergroup'), '#', 'data-add-transaction' => true, class: 'btn'

View file

@ -50,10 +50,10 @@
%h3= t '.my_ordergroup.transactions.title' %h3= t '.my_ordergroup.transactions.title'
%table.table.table-striped %table.table.table-striped
%tr %tr
%th= t '.my_ordergroup.transactions.when' %th= heading_helper FinancialTransaction, :created_on
%th= t '.my_ordergroup.transactions.where' %th= heading_helper FinancialTransaction, :user
%th= t '.my_ordergroup.transactions.note' %th= heading_helper FinancialTransaction, :note
%th= t '.my_ordergroup.transactions.amount' %th= heading_helper FinancialTransaction, :amount
- for ft in current_user.ordergroup.financial_transactions.limit(5).order('created_on DESC') - for ft in current_user.ordergroup.financial_transactions.limit(5).order('created_on DESC')
%tr %tr
%td= format_time(ft.created_on) %td= format_time(ft.created_on)

View file

@ -7,10 +7,10 @@
- unless @ordergroup.description.blank? - unless @ordergroup.description.blank?
%p= @ordergroup.description %p= @ordergroup.description
%p %p
%b= Ordergroup.human_attribute_name(:available_funds) + ':' %b= heading_helper(Ordergroup, :available_funds) + ':'
= number_to_currency(@ordergroup.get_available_funds()) = number_to_currency(@ordergroup.get_available_funds())
%p %p
%b= Ordergroup.human_attribute_name(:user_tokens) + ':' %b= heading_helper(Ordergroup, :user_tokens) + ':'
= @ordergroup.memberships.map{|m| show_user m.user}.join(', ') = @ordergroup.memberships.map{|m| show_user m.user}.join(', ')
= link_to t('.invite'), new_invite_path(:id => @ordergroup), :remote => true, class: 'btn btn-primary' = link_to t('.invite'), new_invite_path(:id => @ordergroup), :remote => true, class: 'btn btn-primary'
.span8 .span8

View file

@ -1,8 +1,8 @@
%table.table.table-hover %table.table.table-hover
%thead %thead
%tr %tr
%th= t '.name' %th= heading_helper Article, :name
%th= t '.unit_quantity' %th= heading_helper Article, :unit_quantity
%th= t '.prices' %th= t '.prices'
%th= t '.units_ordered' %th= t '.units_ordered'
- unless order.stockit? - unless order.stockit?

View file

@ -11,14 +11,14 @@
%table.table.table-hover#articleList %table.table.table-hover#articleList
%tr %tr
%th= check_box_tag 'checkall', "1", false, { 'data-check-all' => '#articleList' } %th= check_box_tag 'checkall', "1", false, { 'data-check-all' => '#articleList' }
%th= t '.name' %th= heading_helper Article, :name
%th= t '.note' %th= heading_helper Article, :note
- if @order.stockit? - if @order.stockit?
%th= t '.stockit' %th= t '.stockit'
- else - else
%th= t '.origin' %th= heading_helper Article, :origin
%th= t '.supplier' %th= heading_helper Article, :manufacturer
%th= t '.unit_quantity' %th= heading_helper Article, :unit_quantity
%th= t '.prices' %th= t '.prices'
- for category_name, articles in @order.articles_for_ordering - for category_name, articles in @order.articles_for_ordering
%tr.article-category %tr.article-category

View file

@ -2,10 +2,10 @@
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th= sort_link_helper t('.supplier'), "supplier" %th= sort_link_helper heading_helper(Order, :supplier), "supplier"
%th= t '.start' %th= heading_helper Order, :starts
%th= sort_link_helper t('.ending'), "ends" %th= sort_link_helper heading_helper(Order, :ends), "ends"
%th= t '.status' %th= heading_helper Order, :status
%th{:colspan => "2"} %th{:colspan => "2"}
%tbody %tbody
- @orders.each do |order| - @orders.each do |order|

View file

@ -15,9 +15,9 @@
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th= t '.supplier' %th= heading_helper Order, :name
%th= t '.ending' %th= heading_helper Order, :ends
%th= t '.note' %th= heading_helper Order, :note
%th{colspan: "2"} %th{colspan: "2"}
%tbody %tbody
- for order in @open_orders - for order in @open_orders

View file

@ -7,16 +7,16 @@
// Order summary // Order summary
.well .well
%dl.dl-horizontal %dl.dl-horizontal
%dt= t '.supplier' %dt= heading_helper(Order, :name) + ':'
%dd= @order.name %dd= @order.name
- if @note.present? - if @note.present?
%dt= t '.note' %dt= heading_helper(Order, :note) + ':'
%dd= @order.note %dd= @order.note
%dt= t '.created_by' %dt= heading_helper(Order, :created_by) + ':'
%dd= show_user_link(@order.created_by) %dd= show_user_link(@order.created_by)
%dt= t '.begin' %dt= heading_helper(Order, :starts) + ':'
%dd= format_time(@order.starts) %dd= format_time(@order.starts)
%dt= t '.ending' %dt= heading_helper(Order, :ends) + ':'
%dd= format_time(@order.ends) %dd= format_time(@order.ends)
%dt= t '.group_orders' %dt= t '.group_orders'
%dd #{@order.group_orders.count} (#{@order.group_orders.includes(:ordergroup).all.map {|g| g.ordergroup.name}.join(', ')}) %dd #{@order.group_orders.count} (#{@order.group_orders.includes(:ordergroup).all.map {|g| g.ordergroup.name}.join(', ')})

View file

@ -30,8 +30,11 @@ en:
note: Note note: Note
supplier: Supplier supplier: Supplier
financial_transaction: financial_transaction:
amount: amount amount: Amount
note: note created_on: Date
note: Note
ordergroup: Ordergroup
user: Entered by
group_order_article: group_order_article:
ordergroup_id: Ordergroup ordergroup_id: Ordergroup
result: Amount result: Amount
@ -54,9 +57,12 @@ en:
sent_to_all: Send to all members sent_to_all: Send to all members
subject: Subject subject: Subject
order: order:
created_by: Created by
ends: Ends at ends: Ends at
name: Supplier
note: Note note: Note
starts: Starts at starts: Starts at
status: Status
order_article: order_article:
units_to_order: Amount of units units_to_order: Amount of units
update_current_price: Globally update current price update_current_price: Globally update current price
@ -592,21 +598,13 @@ en:
paragraph: Here you can credit and debit money for the order group <b>%{name}</b>. paragraph: Here you can credit and debit money for the order group <b>%{name}</b>.
title: New transaction title: New transaction
new_collection: new_collection:
amount: Amount
new_ordergroup: Add new order group new_ordergroup: Add new order group
note: Note
ordergroup: Order group
save: Save transaction save: Save transaction
sidebar: Here you can update more accounts at the same time. For example all transfers of the order group from one account statement sidebar: Here you can update more accounts at the same time. For example all transfers of the order group from one account statement.
title: Updating more accounts title: Updating more accounts
ordergroup: ordergroup:
remove: Remove remove: Remove
remove_group: Remove group remove_group: Remove group
transactions:
amount: Amount
date: Date
note: Note
who: Who
group_order_articles: group_order_articles:
form: form:
amount_change_for: Change amount for %{article} amount_change_for: Change amount for %{article}
@ -1159,10 +1157,8 @@ en:
orders: orders:
articles: articles:
article_count: ! 'Ordered articles:' article_count: ! 'Ordered articles:'
name: Name
prices: Net/gross price prices: Net/gross price
prices_sum: ! 'Sum (net/gross price):' prices_sum: ! 'Sum (net/gross price):'
unit_quantity: Unit quantity
units_full: Full units units_full: Full units
units_ordered: Units ordered units_ordered: Units ordered
create: create:
@ -1181,26 +1177,18 @@ en:
notice: The order has been closed. notice: The order has been closed.
form: form:
ignore_warnings: Ignore warnings ignore_warnings: Ignore warnings
name: Name
note: Note
origin: Origin
prices: Prices (net/FC) prices: Prices (net/FC)
select_all: Select all select_all: Select all
stockit: In stock stockit: In stock
supplier: Producer
title: Article title: Article
unit_quantity: Unit quantity
index: index:
action_end: Close action_end: Close
confirm_delete: Do you really want to delete the order? confirm_delete: Do you really want to delete the order?
confirm_end: Do you really want to close the order %{order}? There is no going back. confirm_end: Do you really want to close the order %{order}? There is no going back.
ended_orders: Closed orders ended_orders: Closed orders
ending: End
new_order: Create new order new_order: Create new order
no_open_orders: There are currently no open orders. no_open_orders: There are currently no open orders.
note: Note
open_orders: Current orders open_orders: Current orders
supplier: Supplier
title: Manage orders title: Manage orders
model: model:
error_closed: Order was already settled error_closed: Order was already settled
@ -1212,17 +1200,11 @@ en:
warning_ordered_stock: ! 'Warning: Articles marked red have already been ordered/ purchased within this open stock order. If you uncheck them here, all existing orders/ purchases of these articles will be deleted and it will not be accounted for them.' warning_ordered_stock: ! 'Warning: Articles marked red have already been ordered/ purchased within this open stock order. If you uncheck them here, all existing orders/ purchases of these articles will be deleted and it will not be accounted for them.'
new: new:
title: Create new order title: Create new order
orders:
ending: End
start: Start
status: Status
supplier: Supplier
show: show:
action_end: Close! action_end: Close!
amounts: ! 'Net/gross sum:' amounts: ! 'Net/gross sum:'
articles: Article overview articles: Article overview
articles_ordered: ! 'Ordered articles:' articles_ordered: ! 'Ordered articles:'
begin: ! 'Begin:'
comments: comments:
title: Comments title: Comments
comments_link: Comments comments_link: Comments
@ -1230,7 +1212,6 @@ en:
confirm_end: ! 'Do you really want to close the order %{order}? confirm_end: ! 'Do you really want to close the order %{order}?
There is no going back.' There is no going back.'
created_by: ! 'Created by:'
download: download:
article_pdf: Article PDF article_pdf: Article PDF
download_file: Download file download_file: Download file
@ -1239,12 +1220,9 @@ en:
group_pdf: Group PDF group_pdf: Group PDF
matrix_pdf: Matrix PDF matrix_pdf: Matrix PDF
title: Download title: Download
ending: ! 'End:'
group_orders: ! 'Group orders:' group_orders: ! 'Group orders:'
note: ! 'Note:'
sort_article: Sorted in articles sort_article: Sorted in articles
sort_group: Sorted in groups sort_group: Sorted in groups
supplier: ! 'Supplier:'
title: ! 'Order: %{name}' title: ! 'Order: %{name}'
warn_not_closed: Warning, order is not yet settled. warn_not_closed: Warning, order is not yet settled.
state: state: