i18n cleanup (affects foodcoops#137)

This commit is contained in:
wvengen 2013-12-12 00:13:19 +01:00
parent b53cb36714
commit d448707b1a
16 changed files with 64 additions and 124 deletions

View file

@ -4,11 +4,11 @@
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th= t '.name' %th= heading_helper Ordergroup, :name
%th= t '.contact' %th= heading_helper Ordergroup, :contact
%th= t '.address' %th= heading_helper Ordergroup, :contact_address
%th= t '.members' %th= heading_helper Ordergroup, :user_tokens
%th= t 'admin.actions' %th= t 'ui.actions'
%tbody %tbody
- for ordergroup in @ordergroups - for ordergroup in @ordergroups
%tr{:class => cycle('even','odd', :name => 'groups')} %tr{:class => cycle('even','odd', :name => 'groups')}

View file

@ -5,12 +5,12 @@
%thead %thead
%tr %tr
- if FoodsoftConfig[:use_nick] - if FoodsoftConfig[:use_nick]
%th= t '.login' %th= heading_helper User, :nick
%th= t '.name' %th= heading_helper User, :name
%th= t '.email' %th= heading_helper User, :email
%th= t 'admin.access_to' %th= t 'admin.access_to'
%th= t '.last_login' %th= heading_helper User, :last_login
%th(colspan="2")= t 'admin.actions' %th(colspan="2")= t 'ui.actions'
%tbody %tbody
- for user in @users - for user in @users
%tr %tr

View file

@ -7,13 +7,13 @@
%p= t '.member_since', time: distance_of_time_in_words(Time.now, @user.created_on) %p= t '.member_since', time: distance_of_time_in_words(Time.now, @user.created_on)
%dl %dl
- if FoodsoftConfig[:use_nick] - if FoodsoftConfig[:use_nick]
%dt= t '.nick' %dt= heading_helper User, :nick
%dd= @user.nick %dd= @user.nick
%dt= t '.name' %dt= heading_helper User, :name
%dd= h @user.name %dd= h @user.name
%dt= t '.email' %dt= heading_helper User, :email
%dd= @user.email %dd= @user.email
%dt= t '.phone' %dt= heading_helper User, :phone
%dd= @user.phone %dd= @user.phone
%dt= t 'admin.access_to' %dt= t 'admin.access_to'
%dd= format_roles(@user) %dd= format_roles(@user)

View file

@ -7,7 +7,7 @@
%th= t '.name' %th= t '.name'
%th= t '.members' %th= t '.members'
%th= t 'admin.access_to' %th= t 'admin.access_to'
%th= t 'admin.actions' %th= t 'ui.actions'
%tbody %tbody
- for workgroup in @workgroups - for workgroup in @workgroups
%tr %tr

View file

@ -87,11 +87,11 @@
%table#stock_articles_for_adding.table.table-hover.stupidtable %table#stock_articles_for_adding.table.table-hover.stupidtable
%thead %thead
%tr %tr
%th.default-sort{:data => {:sort => 'string'}}= t '.article' %th.default-sort{:data => {:sort => 'string'}}= Article.model_name.human
%th= t '.price' %th= heading_helper StockArticle, :price
%th= t '.unit' %th= heading_helper StockArticle, :unit
%th= t '.category' %th= heading_helper StockArticle, :article_category
%th= t '.actions' %th= t 'ui.actions'
%tfoot %tfoot
%tr %tr
%th{:colspan => 5} %th{:colspan => 5}
@ -108,10 +108,10 @@
%thead %thead
%tr %tr
%th.default-sort{:data => {:sort => 'string'}}= t '.article' %th.default-sort{:data => {:sort => 'string'}}= t '.article'
%th= t '.price' %th= heading_helper StockArticle, :price
%th= t '.unit' %th= heading_helper StockArticle, :unit
%th= t '.quantity' %th= heading_helper StockChange, :quantity
%th= t '.actions' %th= t 'ui.actions'
%tbody %tbody
= f.simple_fields_for :stock_changes do |stock_change_form| = f.simple_fields_for :stock_changes do |stock_change_form|
= render :partial => 'stock_change_fields', :locals => {:f => stock_change_form} = render :partial => 'stock_change_fields', :locals => {:f => stock_change_form}

View file

@ -17,10 +17,10 @@
%table.table.table-striped(style="width:500px") %table.table.table-striped(style="width:500px")
%thead %thead
%tr %tr
%th= t '.article' %th= Article.model_name.human
%th= t '.unit' %th= heading_helper StockArticle, :unit
%th.numeric= t '.amount' %th.numeric= heading_helper StockChange, :quantity
%th.numeric= t '.price' %th.numeric= heading_helper Article, :price
%th.numeric= t '.sum' %th.numeric= t '.sum'
%tbody %tbody
- total_net, total_gross = 0,0 - total_net, total_gross = 0,0

View file

@ -1,14 +1,14 @@
%table.ordered-articles.table.table-striped %table.ordered-articles.table.table-striped
%thead %thead
%tr %tr
%th= sort_link_helper t('.article'), "name" %th= sort_link_helper Article.model_name.human, "name"
%th= sort_link_helper t('.number'), "order_number" %th= sort_link_helper Article.human_attribute_name(:order_number_short), "order_number"
%th= t('.amount') %th= t('.amount')
%th= t('.amount_per_unit') %th= heading_helper Article, :units
%th= t('.net') %th= t('.net')
%th= t('.gross') %th= t('.gross')
%th= t('.tax') %th= heading_helper Article, :tax
%th= t('.refund') %th= heading_helper Article, :deposit
%th{:colspan => "2"} %th{:colspan => "2"}
= link_to t('.add_article'), new_finance_order_order_article_path(@order), remote: true, = link_to t('.add_article'), new_finance_order_order_article_path(@order), remote: true,
class: 'btn btn-small' class: 'btn btn-small'

View file

@ -3,7 +3,7 @@
%thead %thead
%tr %tr
%td %td
%td{:style => "width:8em"}= t('.group') %td{:style => "width:8em"}= Ordergroup.model_name.human
%td= t('.units') %td= t('.units')
%td= t('.total') %td= t('.total')
%td{:colspan => "3",:style => "width:14em"} %td{:colspan => "3",:style => "width:14em"}

View file

@ -5,7 +5,7 @@
= order_article.units_to_order = order_article.units_to_order
- unless order_article.ordered_quantities_equal_to_group_orders? - unless order_article.ordered_quantities_equal_to_group_orders?
%span{:style => "color:red;font-weight: bold"} ! %span{:style => "color:red;font-weight: bold"} !
%td= order_article.price.unit_quantity.to_s + ' * ' + order_article.article.unit.to_s %td #{order_article.price.unit_quantity} × #{order_article.article.unit}
%td %td
= number_to_currency(order_article.price.price, :unit => "") = number_to_currency(order_article.price.price, :unit => "")
:plain :plain
@ -16,7 +16,7 @@
:plain :plain
/ /
= number_to_currency(order_article.total_gross_price, :unit => "") = number_to_currency(order_article.total_gross_price, :unit => "")
%td= order_article.price.tax %td #{order_article.price.tax}%
%td= order_article.price.deposit %td= order_article.price.deposit
%td %td
= link_to t('ui.edit'), edit_finance_order_order_article_path(order_article.order, order_article), remote: true, = link_to t('ui.edit'), edit_finance_order_order_article_path(order_article.order, order_article), remote: true,

View file

@ -8,9 +8,9 @@
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th= t('.date') %th= heading_helper Invoice, :date
%th.numeric= t('.amount') %th.numeric= heading_helper Invoice, :amount
%th= t('.supplier') %th= heading_helper Invoice, :supplier
%th %th
%tbody %tbody
- for invoice in @unpaid_invoices - for invoice in @unpaid_invoices
@ -26,10 +26,10 @@
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th= t('.date') %th= heading_helper FinancialTransaction, :created_on
%th= t('.group') %th= heading_helper FinancialTransaction, :ordergroup
%th= t('.note') %th= heading_helper FinancialTransaction, :note
%th.numeric= t('.amount') %th.numeric= heading_helper FinancialTransaction, :amount
%tbody %tbody
- @financial_transactions.each do |ft| - @financial_transactions.each do |ft|
%tr %tr
@ -45,8 +45,8 @@
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th= t('.supplier') %th= heading_helper Order, :name
%th= t('.end') %th= t '.end'
%th.numeric= t('.amount_fc') %th.numeric= t('.amount_fc')
%th %th
%tbody %tbody
@ -55,6 +55,6 @@
%td= order.name %td= order.name
%td= format_date(order.ends) %td= format_date(order.ends)
%td.numeric= number_to_currency(order.sum(:fc)) %td.numeric= number_to_currency(order.sum(:fc))
%td= link_to t('.clear'), new_finance_order_path(order_id: order.id), class: 'btn btn-mini' %td= link_to t('finance.balancing.orders.clear'), new_finance_order_path(order_id: order.id), class: 'btn btn-mini'
- else - else
= t('.everything_cleared') = t('.everything_cleared')

View file

@ -23,7 +23,7 @@
%td= format_date invoice.date %td= format_date invoice.date
%td= format_date invoice.paid_on %td= format_date invoice.paid_on
%td= number_to_currency invoice.amount %td= number_to_currency invoice.amount
%td= link_to t('.delivery'), [invoice.supplier,invoice.delivery] if invoice.delivery %td= link_to Delivery.model_name.human, [invoice.supplier,invoice.delivery] if invoice.delivery
%td= link_to format_date(invoice.order.ends), new_finance_order_path(order_id: invoice.order_id) if invoice.order %td= link_to format_date(invoice.order.ends), new_finance_order_path(order_id: invoice.order_id) if invoice.order
%td= truncate(invoice.note) %td= truncate(invoice.note)
%td= link_to t('ui.edit'), edit_finance_invoice_path(invoice), class: 'btn btn-mini' %td= link_to t('ui.edit'), edit_finance_invoice_path(invoice), class: 'btn btn-mini'

View file

@ -4,9 +4,9 @@
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th= sort_link_helper t('.name'), "name", :per_page => @per_page %th= sort_link_helper heading_helper(Ordergroup, :name), "name", :per_page => @per_page
%th= t '.contact' %th= heading_helper Ordergroup, :contact
%th.numeric= sort_link_helper t('.account_balance'), "account_balance", :per_page => @per_page %th.numeric= sort_link_helper heading_helper(Ordergroup, :account_balance), "account_balance", :per_page => @per_page
%th %th
%tbody %tbody
- for ordergroup in @ordergroups - for ordergroup in @ordergroups

View file

@ -5,9 +5,9 @@
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th= t '.name' %th= heading_helper Ordergroup, :name
%th= t '.user' %th= heading_helper Ordergroup, :user_tokens
%th= t '.last_ordered' %th= heading_helper Ordergroup, :last_ordered
%tbody %tbody
- for ordergroup in @ordergroups - for ordergroup in @ordergroups

View file

@ -1,7 +1,7 @@
%table.table.table-hover %table.table.table-hover
%thead %thead
%tr %tr
%th{:style => "width:40%"}= t '.name' %th{:style => "width:40%"}= heading_helper Article, :name
%th %th
%acronym{:title => t('shared.articles.ordered_desc')}= t 'shared.articles.ordered' %acronym{:title => t('shared.articles.ordered_desc')}= t 'shared.articles.ordered'
%th %th
@ -10,7 +10,7 @@
%acronym{:title => t('.fc_price_desc')}= t '.fc_price' %acronym{:title => t('.fc_price_desc')}= t '.fc_price'
%th %th
%acronym{:title => t('.unit_quantity_desc')}= t '.unit_quantity' %acronym{:title => t('.unit_quantity_desc')}= t '.unit_quantity'
%th= t '.unit' %th= heading_helper Article, :unit
%th= t '.price' %th= t '.price'
- for group_order in order.group_orders.ordered - for group_order in order.group_orders.ordered

View file

@ -1,14 +1,14 @@
%dl %dl
%dt= t('.description') + ':' %dt= heading_helper(Ordergroup, :description) + ':'
%dd=h group.description %dd=h group.description
- if group.is_a?(Ordergroup) and (@current_user.role_admin? or @current_user.role_finance?) - if group.is_a?(Ordergroup) and (@current_user.role_admin? or @current_user.role_finance?)
%dt= t('.contact') + ':' %dt= heading_helper(Ordergroup, :contact) + ':'
%dd=h group.contact %dd=h group.contact
%dt= t('.address') + ':' %dt= heading_helper(Ordergroup, :contact_address) + ':'
%dd= link_to_gmaps group.contact_address %dd= link_to_gmaps group.contact_address
%dt= t('.access') + ':' %dt= t('.access') + ':'
%dd= format_roles(group) %dd= format_roles(group)
%dt= t('.members') + ':' %dt= heading_helper(Ordergroup, :user_tokens) + ':'
%dd %dd
- members = group.users - members = group.users
= "(#{members.size})" = "(#{members.size})"

View file

@ -15,6 +15,7 @@ en:
name: Name name: Name
note: Note note: Note
order_number: Order number order_number: Order number
order_number_short: Nr.
origin: Origin origin: Origin
price: Price (net) price: Price (net)
supplier: Supplier supplier: Supplier
@ -81,6 +82,7 @@ en:
ordergroup: ordergroup:
account_balance: Account balance account_balance: Account balance
available_funds: Available credit available_funds: Available credit
contact: Contact
contact_address: Address contact_address: Address
contact_person: Contact person contact_person: Contact person
contact_phone: Phone contact_phone: Phone
@ -131,6 +133,7 @@ en:
user: user:
email: Email email: Email
first_name: First name first_name: First name
last_login: Last login
last_name: Last name last_name: Last name
name: Name name: Name
nick: Username nick: Username
@ -177,7 +180,6 @@ en:
workgroup: Workgroup workgroup: Workgroup
admin: admin:
access_to: access to access_to: access to
actions: Actions
base: base:
index: index:
all_ordergroups: All ordergroups all_ordergroups: All ordergroups
@ -215,11 +217,6 @@ en:
workgroup: workgroup workgroup: workgroup
new: new:
title: Create ordergroup title: Create ordergroup
ordergroups:
address: Address
contact: Contact
members: Members
name: Name
show: show:
confirm: Are you sure? confirm: Are you sure?
edit: Edit group/members edit: Edit group/members
@ -238,20 +235,11 @@ en:
title: Create new user title: Create new user
show: show:
confirm: Do you really want to kick out %{user}? confirm: Do you really want to kick out %{user}?
email: Email
groupabos: Group subscriptions groupabos: Group subscriptions
member_since: Member since %{time} member_since: Member since %{time}
name: Name
nick: Nick
person: Person person: Person
phone: Phone
preference: Preferences preference: Preferences
send_message: Send message send_message: Send message
users:
email: email
last_login: last login
login: login
name: name
workgroups: workgroups:
destroy: destroy:
error: ! 'Workgroup could not be deleted: %{error}' error: ! 'Workgroup could not be deleted: %{error}'
@ -339,15 +327,6 @@ en:
submit: Update all articles submit: Update all articles
title: Edit all articles from %{supplier} title: Edit all articles from %{supplier}
warning: ! 'Warning: all articles will be updated!' warning: ! 'Warning: all articles will be updated!'
edit_all_table:
available_desc: available
available_short: avail
order_number_desc: Order number
order_number_short: Ordernr.
price_desc: Net price
price_short: Price
unit_quantity_desc: Unit quantity
unit_quantity_short: Quantity
form: form:
title_edit: Edit article title_edit: Edit article
title_new: Add new article title_new: Add new article
@ -414,17 +393,11 @@ en:
edit: edit:
title: Edit delivery title: Edit delivery
form: form:
actions: Tasks
article: Article
category: Category
create_from_blank: Create new article create_from_blank: Create new article
create_stock_article: Create stock article create_stock_article: Create stock article
price: Netprice
quantity: Quantity
title_fill_quantities: 2. Set delivery quantities title_fill_quantities: 2. Set delivery quantities
title_finish_delivery: 3. Finish delivery title_finish_delivery: 3. Finish delivery
title_select_stock_articles: 1. Select stock articles title_select_stock_articles: 1. Select stock articles
unit: Unit
index: index:
confirm_delete: Are you sure? confirm_delete: Are you sure?
new_delivery: ! 'Create new delivery for %{supplier} ' new_delivery: ! 'Create new delivery for %{supplier} '
@ -434,16 +407,12 @@ en:
new: new:
title: New delivery from %{supplier} title: New delivery from %{supplier}
show: show:
amount: Amount
article: Article
price: Netprice
sum: Sum sum: Sum
sum_diff: Gross - adjusted invoice amount sum_diff: Gross - adjusted invoice amount
sum_gross: Gross sum sum_gross: Gross sum
sum_net: Net sum sum_net: Net sum
title: Show delivery title: Show delivery
title_articles: Article title_articles: Articles
unit: Unit
stock_article_for_adding: stock_article_for_adding:
action_add_to_delivery: Add to delivery action_add_to_delivery: Add to delivery
action_edit: Edit action_edit: Edit
@ -530,16 +499,10 @@ en:
edit_results_by_articles: edit_results_by_articles:
add_article: Add article add_article: Add article
amount: Amount amount: Amount
amount_per_unit: Unit quantity * Unit
article: Article
gross: Gross gross: Gross
net: Net net: Net
number: Nr.
refund: Deposit
tax: Tax
group_order_articles: group_order_articles:
add_group: Add group add_group: Add group
group: Group
total: Total costs total: Total costs
total_fc: Sum (FC-price) total_fc: Sum (FC-price)
units: Units units: Units
@ -626,18 +589,12 @@ en:
amount_change_for: Change amount for %{article} amount_change_for: Change amount for %{article}
result_hint: ! 'Unit: %{unit}' result_hint: ! 'Unit: %{unit}'
index: index:
amount: Amount
amount_fc: Amount(FC) amount_fc: Amount(FC)
clear: To account
date: Date
end: End end: End
everything_cleared: Great, everything is accounted... everything_cleared: Great, everything is accounted...
group: Group
last_transactions: Recent transactions last_transactions: Recent transactions
note: Note
open_transactions: Unsettled orders open_transactions: Unsettled orders
show_all: show all show_all: show all
supplier: Supplier
title: Finances title: Finances
unpaid_invoices: Unpaid invoices unpaid_invoices: Unpaid invoices
invoices: invoices:
@ -648,7 +605,6 @@ en:
title: Invoices title: Invoices
invoices: invoices:
confirm_delete: Are you sure? confirm_delete: Are you sure?
delivery: Delivery
linked: This invoice is linked to %{what_link}. linked: This invoice is linked to %{what_link}.
linked_delivery: a delivery linked_delivery: a delivery
linked_order: an order linked_order: an order
@ -670,10 +626,7 @@ en:
search_placeholder: Search ... search_placeholder: Search ...
title: Manage accounts title: Manage accounts
ordergroups: ordergroups:
account_balance: Account balance
account_statement: Account statement account_statement: Account statement
contact: Contact
name: Name
new_transaction: New transaction new_transaction: New transaction
update: update:
notice: Invoice was updated notice: Invoice was updated
@ -684,10 +637,6 @@ en:
only_active: Only active groups only_active: Only active groups
only_active_desc: (have placed order at least once in the last 3 months) only_active_desc: (have placed order at least once in the last 3 months)
title: Ordergroups title: Ordergroups
ordergroups:
last_ordered: Last ordered
name: Name
user: Users
users: users:
index: index:
body: <p>Here you can write a message to the members of your Foodcoop.</p> <p>You have to approve in your %{profile_link} that your contact details are visible.</p> body: <p>Here you can write a message to the members of your Foodcoop.</p> <p>You have to approve in your %{profile_link} that your contact details are visible.</p>
@ -821,12 +770,8 @@ en:
last_update: Last update was %{when} ago last_update: Last update was %{when} ago
title: My ordergroup title: My ordergroup
transactions: transactions:
amount: Amount
note: Note
title: Last Transactions title: Last Transactions
view: Show account statement view: Show account statement
when: When
where: Who
ordergroup: ordergroup:
title: Engagement of your ordergroup title: Engagement of your ordergroup
tasks_move: tasks_move:
@ -1310,20 +1255,14 @@ en:
articles_by_groups: articles_by_groups:
fc_price: FC-Price fc_price: FC-Price
fc_price_desc: Price including taxes, deposit and Foodcoop-charge fc_price_desc: Price including taxes, deposit and Foodcoop-charge
name: Name
price: Total price price: Total price
unit: Unit
unit_quantity: Lot quantity unit_quantity: Lot quantity
unit_quantity_desc: How many units per lot. unit_quantity_desc: How many units per lot.
group: group:
access: Access to access: Access to
activated: activated activated: activated
address: Address
apple_limit: Apple points order limit apple_limit: Apple points order limit
contact: Contact
deactivated: deactivated deactivated: deactivated
description: Description
members: Members
no_weekly_job: No weekly job defined no_weekly_job: No weekly job defined
weekly_job: Weekly job weekly_job: Weekly job
group_form_fields: group_form_fields:
@ -1553,6 +1492,7 @@ en:
title: Tasks for %{workgroup} title: Tasks for %{workgroup}
title_all: All group tasks title_all: All group tasks
ui: ui:
actions: Actions
close: Close close: Close
delete: Delete delete: Delete
edit: Edit edit: Edit