i18n update

This commit is contained in:
wvengen 2014-01-13 23:21:03 +01:00
parent 8760d87a76
commit bab28d2770
6 changed files with 26 additions and 27 deletions

View file

@ -9,7 +9,7 @@ class OrdersController < ApplicationController
# List orders # List orders
def index def index
@open_orders = Order.open.includes(:supplier) @open_orders = Order.open.includes(:supplier)
@orders_in_progress = Order.finished_not_closed.includes(:supplier) @finished_orders = Order.finished_not_closed.includes(:supplier)
@per_page = 15 @per_page = 15
if params['sort'] if params['sort']
sort = case params['sort'] sort = case params['sort']

View file

@ -11,12 +11,12 @@
.well .well
- if not @open_orders.empty? - if not @open_orders.empty?
%h2= t '.open_orders' %h2= t '.orders_open'
- elsif not @orders_in_progress.empty? - elsif not @finished_orders.empty?
%h2= t '.orders_in_progress' %h2= t '.orders_finished'
- else - else
= t '.no_open_orders' = t '.no_open_or_finished_orders'
- unless @open_orders.empty? and @orders_in_progress.empty? - unless @open_orders.empty? and @finished_orders.empty?
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
@ -42,12 +42,12 @@
= link_to t('ui.delete'), order, confirm: t('.confirm_delete'), method: :delete, = link_to t('ui.delete'), order, confirm: t('.confirm_delete'), method: :delete,
class: 'btn btn-small btn-danger' class: 'btn btn-small btn-danger'
- unless @orders_in_progress.empty? - unless @finished_orders.empty?
- unless @open_orders.empty? - unless @open_orders.empty?
%tr %tr
%td{colspan: 6} %td{colspan: 6}
%h2= t '.orders_in_progress' %h2= t '.orders_finished'
- for order in @orders_in_progress - for order in @finished_orders
%tr %tr
%td= order.name %td= order.name
%td= format_time(order.ends) %td= format_time(order.ends)
@ -62,10 +62,7 @@
= link_to t('ui.show'), order, class: 'btn btn-small' = link_to t('ui.show'), order, class: 'btn btn-small'
= link_to t('ui.delete'), order, confirm: t('.confirm_delete'), method: :delete, = link_to t('ui.delete'), order, confirm: t('.confirm_delete'), method: :delete,
class: 'btn btn-small btn-danger' class: 'btn btn-small btn-danger'
- else
%tr
%td{colspan: 6}= t '.no_orders_in_progress'
%h2= t '.closed_orders' %h2= t '.orders_settled'
#orders_table #orders_table
= render partial: 'orders' = render partial: 'orders'

View file

@ -1130,13 +1130,13 @@ de:
index: index:
action_end: Beenden action_end: Beenden
action_receive: In Empfang nehmen action_receive: In Empfang nehmen
closed_orders: Abgerechnete Bestellungen
confirm_delete: Willst Du wirklich die Bestellung löschen? confirm_delete: Willst Du wirklich die Bestellung löschen?
confirm_end: Willst Du wirklich die Bestellung %{order} beenden? Es gibt kein zurück. confirm_end: Willst Du wirklich die Bestellung %{order} beenden? Es gibt kein zurück.
new_order: Neue Bestellung anlegen new_order: Neue Bestellung anlegen
no_open_orders: Derzeit gibt es keine laufende Bestellungen. no_open_or_finished_orders: Derzeit gibt es keine laufende oder beendete Bestellungen.
open_orders: Laufende Bestellungen orders_finished: Beendet
orders_in_progress: In Bearbeitung orders_open: Laufend
orders_settled: Abgerechnet
title: Bestellungen verwalten title: Bestellungen verwalten
model: model:
error_closed: Bestellung wurde schon abgerechnet error_closed: Bestellung wurde schon abgerechnet

View file

@ -1130,13 +1130,13 @@ en:
index: index:
action_end: Close action_end: Close
action_receive: Receive action_receive: Receive
closed_orders: Settled orders
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.
new_order: Create new order new_order: Create new order
no_open_orders: There are currently no open orders. no_open_or_finished_orders: There are currently no open or closed orders.
open_orders: Current orders orders_finished: Closed
orders_in_progress: In process orders_open: Open
orders_settled: Settled
title: Manage orders title: Manage orders
model: model:
error_closed: Order was already settled error_closed: Order was already settled

View file

@ -1126,10 +1126,11 @@ fr:
action_end: Terminer action_end: Terminer
confirm_delete: Vraiment supprimer la commande? confirm_delete: Vraiment supprimer la commande?
confirm_end: Veux tu vraiment mettre fin à la commande %{order}? Attention, il n'y aura pas d'annulation possible. confirm_end: Veux tu vraiment mettre fin à la commande %{order}? Attention, il n'y aura pas d'annulation possible.
ended_orders: Commandes closes
new_order: Définir une nouvelle commande new_order: Définir une nouvelle commande
no_open_orders: Il n'y a aucune commande en cours en ce moment. no_open_or_finished_orders: Il n'y a aucune commande en cours en ce moment.
open_orders: Commandes en cours orders_finished: Close
orders_open: En cours
orders_settled: Décomptée
title: Gestion des commandes title: Gestion des commandes
model: model:
error_closed: Cette commande a déjà été décomptée error_closed: Cette commande a déjà été décomptée

View file

@ -1101,10 +1101,11 @@ nl:
action_end: Sluiten action_end: Sluiten
confirm_delete: Wil je de bestelling werkelijk verwijderen? confirm_delete: Wil je de bestelling werkelijk verwijderen?
confirm_end: Wil je de bestelling %{order} werkelijk sluiten? Dit kun je niet ongedaan maken. confirm_end: Wil je de bestelling %{order} werkelijk sluiten? Dit kun je niet ongedaan maken.
ended_orders: Gesloten bestellingen
new_order: Nieuwe bestelling openen new_order: Nieuwe bestelling openen
no_open_orders: Er zijn momenteel geen lopende bestellingen. no_open_or_finished_orders: Er zijn momenteel geen open of gesloten bestellingen.
open_orders: Lopende bestellingen orders_finished: Gesloten
orders_open: Open
orders_settled: Afgerekend
title: Bestellingen beheren title: Bestellingen beheren
model: model:
error_closed: Bestelling was al afgerekend error_closed: Bestelling was al afgerekend