finish suppliers i18n

This commit is contained in:
wvengen 2013-02-07 16:30:47 +01:00
parent 27b488a926
commit eb1e02015e
11 changed files with 101 additions and 57 deletions

View file

@ -195,3 +195,18 @@ tr.unavailable {
border-color: red; border-color: red;
} }
} }
// ********* Tweaks & fixes
// https://github.com/twitter/bootstrap/issues/4062
.dl-horizontal {
dd { .clearfix(); }
}
// need more space for supplier information (in German, at least)
.dl-horizontal {
dt { width: 150px; }
dd { margin-left: 160px; }
}

View file

@ -1,4 +1,4 @@
- title "Edit Ordergroup" - title t('.title')
- form_for @ordergroup do |f| - form_for @ordergroup do |f|
= f.error_messages = f.error_messages
%p %p
@ -81,4 +81,4 @@
= f.label :contact_address = f.label :contact_address
%br/ %br/
= f.text_field :contact_address = f.text_field :contact_address
%p= f.submit "Submit" %p= f.submit t('.submit')

View file

@ -1,6 +1,7 @@
= simple_form_for @supplier do |f| = simple_form_for @supplier do |f|
- if @supplier.shared_supplier - if @supplier.shared_supplier
.alert.alert-success Lieferantin ist mit externer Datenbank verknüpft. .alert.alert-success
= t 'suppliers.shared_supplier_note'
= f.hidden_field :shared_supplier_id = f.hidden_field :shared_supplier_id
= f.input :name = f.input :name
= f.input :address = f.input :address
@ -17,4 +18,4 @@
= f.input :min_order_quantity = f.input :min_order_quantity
.form-actions .form-actions
= f.submit class: 'btn' = f.submit class: 'btn'
= link_to 'oder abbrechen', suppliers_path = link_to t('.cancel'), suppliers_path

View file

@ -1,3 +1,3 @@
- title "Lieferantin bearbeiten" - title t('.title')
= render "form" = render "form"

View file

@ -1,14 +1,14 @@
- title "Lieferanten" - title t('.title')
- content_for :actionbar do - content_for :actionbar do
= link_to 'Neue Lieferantin anlegen', new_supplier_path, class: 'btn btn-primary' = link_to t('.action_new'), new_supplier_path, class: 'btn btn-primary'
= link_to 'Lieferantin aus externer Datenbank importieren', shared_suppliers_suppliers_path, class: 'btn' = link_to t('.action_import'), shared_suppliers_suppliers_path, class: 'btn'
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th Name %th= t 'simple_form.labels.supplier.name'
%th Telefon %th= t 'simple_form.labels.supplier.phone'
%th Kunden-Nr %th= t 'simple_form.labels.supplier.customer_number'
%th %th
%th %th
%th %th
@ -18,10 +18,10 @@
%td= link_to h(supplier.name) , supplier %td= link_to h(supplier.name) , supplier
%td= supplier.phone %td= supplier.phone
%td= supplier.customer_number %td= supplier.customer_number
%td= link_to "Artikel (#{supplier.articles.count})", supplier_articles_path(supplier) %td= link_to t('.articles', count: supplier.articles.count), supplier_articles_path(supplier)
%td= link_to "im Lager (#{supplier.stock_articles.count})", stock_articles_path %td= link_to t('.stock', count: supplier.stock_articles.count), stock_articles_path
%td= link_to "Lieferungen (#{supplier.deliveries.count})", supplier_deliveries_path(supplier) %td= link_to t('.deliveries', count: supplier.deliveries.count), supplier_deliveries_path(supplier)
%td %td
= link_to "Bearbeiten", edit_supplier_path(supplier), class: 'btn btn-mini' = link_to t('ui.edit'), edit_supplier_path(supplier), class: 'btn btn-mini'
= link_to "Löschen", supplier_path(supplier), method: :delete, = link_to t('ui.delete'), supplier_path(supplier), method: :delete,
confirm: "Achtung, willst Du wirklich den Lieferanten #{supplier.name} löschen?", class: 'btn btn-mini btn-danger' confirm: t('.confirm_del', name: supplier.name), class: 'btn btn-mini btn-danger'

View file

@ -1,3 +1,3 @@
- title "Neue Lieferantin" - title t('.title')
= render "form" = render "form"

View file

@ -1,19 +1,14 @@
- title "Externe Listen" - title t('.title')
%p = t('.body').html_safe
Hier werden die Lieferantinnen der externen Datenbank angezeigt.
%br/
Ihr könnt externe Lieferantinnen importieren, indem ihr sie einfach abonniert. (siehe unten)
%br/
Damit wird eine neue Lieferantin angelegt und mit der externen Datenbank verknüpft.
%table.table.table-striped %table.table.table-striped
%thead %thead
%tr %tr
%th Lieferantin %th= t 'simple_form.labels.supplier.name'
%th Adresse %th= t 'simple_form.labels.supplier.address'
%th Notiz %th= t 'simple_form.labels.supplier.note'
%th Liefertag %th= t 'simple_form.labels.supplier.delivery_days'
%th abonniert? %th= t 'simple_form.labels.supplier.is_subscribed'
%tbody %tbody
- for shared_supplier in @shared_suppliers - for shared_supplier in @shared_suppliers
%tr %tr
@ -25,4 +20,4 @@
- if shared_supplier.supplier - if shared_supplier.supplier
%i.icon-ok %i.icon-ok
- else - else
= link_to "abonnieren", new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn' = link_to t('.subscribe'), new_supplier_path(:shared_supplier_id => shared_supplier), class: 'btn'

View file

@ -4,54 +4,52 @@
.span6 .span6
- if shared_supplier = @supplier.shared_supplier - if shared_supplier = @supplier.shared_supplier
.alert.alert-info .alert.alert-info
Die Lieferantin ist mit der externen Artikledatenbank verknüpft. = t 'suppliers.shared_supplier_note'
%dl.dl-horizontal %dl.dl-horizontal
%dt Adresse: %dt= t('simple_form.labels.supplier.address') + ':'
%dd= @supplier.address %dd= @supplier.address
%dt Telefon: %dt= t('simple_form.labels.supplier.phone') + ':'
%dd= @supplier.phone %dd= @supplier.phone
%dt Telefon2: %dt= t('simple_form.labels.supplier.phone2') + ':'
%dd= @supplier.phone2 %dd= @supplier.phone2
%dt FAX: %dt= t('simple_form.labels.supplier.fax') + ':'
%dd= @supplier.fax %dd= @supplier.fax
%dt Email: %dt= t('simple_form.labels.supplier.email') + ':'
%dd= @supplier.email %dd= @supplier.email
%dt Hompage: %dt= t('simple_form.labels.supplier.url') + ':'
%dd= @supplier.url %dd= link_to @supplier.url, @supplier.url
%dt Kontakt-Person: %dt= t('simple_form.labels.supplier.contact_person') + ':'
%dd= @supplier.contact_person %dd= @supplier.contact_person
%dt Kundennummer: %dt= t('simple_form.labels.supplier.customer_number') + ':'
%dd= @supplier.customer_number %dd= @supplier.customer_number
%dt Liefertage: %dt= t('simple_form.labels.supplier.delivery_days') + ':'
%dd= @supplier.delivery_days %dd= @supplier.delivery_days
%dt BestellHowTo: %dt= t('simple_form.labels.supplier.order_howto') + ':'
%dd= @supplier.order_howto %dd= @supplier.order_howto
%dt Notiz: %dt= t('simple_form.labels.supplier.note') + ':'
%dd= @supplier.note %dd= @supplier.note
%dt Liefertage: %dt= t('simple_form.labels.supplier.min_order_quantity') + ':'
%dd= @supplier.delivery_days
%dt Mindestbestellmenge:
%dd= @supplier.min_order_quantity %dd= @supplier.min_order_quantity
.clearfix .clearfix
- if @current_user.role_suppliers? - if @current_user.role_suppliers?
.form-actions .form-actions
= link_to 'Bearbeiten', edit_supplier_path(@supplier), class: 'btn' = link_to t('ui.edit'), edit_supplier_path(@supplier), class: 'btn'
= link_to 'Löschen', @supplier, :confirm => 'Bist Du sicher?', :method => :delete, class: 'btn btn-danger' = link_to t('ui.delete'), @supplier, :confirm => t('.confirm_delete'), :method => :delete, class: 'btn btn-danger'
.span6 .span6
%h2 Letzte Lieferungen %h2= t '.last_deliveries'
%table.table.table-horizontal %table.table.table-horizontal
%thead %thead
%tr %tr
%th Datum %th= t 'simple_form.labels.defaults.date'
%th Betrag %th= t 'simple_form.labels.defaults.amount'
%tbody %tbody
- for delivery in @deliveries - for delivery in @deliveries
%tr %tr
%td= link_to delivery.delivered_on, [@supplier, delivery] %td= link_to delivery.delivered_on, [@supplier, delivery]
%td= link_to_invoice(delivery) %td= link_to_invoice(delivery)
.form-actions .form-actions
= link_to "Neue Lieferung anlegen", new_supplier_delivery_path(@supplier), class: 'btn' = link_to t('.new_delivery'), new_supplier_delivery_path(@supplier), class: 'btn'
= link_to "Zeige alle Lieferungen", supplier_deliveries_path(@supplier) = link_to t('.show_deliveries'), supplier_deliveries_path(@supplier)

View file

@ -269,6 +269,8 @@ de:
# general user-interface # general user-interface
ui: ui:
close: 'Schließen' close: 'Schließen'
edit: 'Bearbeiten'
delete: 'Löschen'
marks: marks:
close: 'x' close: 'x'

View file

@ -66,10 +66,12 @@ de:
body: 'Inhalt' body: 'Inhalt'
parent_id: Oberseite parent_id: Oberseite
supplier: supplier:
name: 'Name'
address: 'Adresse' address: 'Adresse'
phone: 'Telefon' phone: 'Telefon'
phone2: 'Telefon 2' phone2: 'Telefon 2'
fax: 'FAX' fax: 'FAX'
email: 'Email'
url: 'Homepage' url: 'Homepage'
contact_person: 'Ansprechparter_in' contact_person: 'Ansprechparter_in'
customer_number: 'Kundennummer' customer_number: 'Kundennummer'
@ -77,6 +79,7 @@ de:
order_howto: 'Howto Bestellen' order_howto: 'Howto Bestellen'
note: 'Notiz' note: 'Notiz'
min_order_quantity: 'Mindestbestellmenge' min_order_quantity: 'Mindestbestellmenge'
is_subscribed: 'abonniert?'
article: article:
availability: 'Artikel ist verfügbar?' availability: 'Artikel ist verfügbar?'
origin: 'Herkunft' origin: 'Herkunft'

View file

@ -0,0 +1,30 @@
de:
suppliers:
shared_supplier_note: 'Lieferantin ist mit externer Datenbank verknüpft.'
index:
title: 'Lieferanten'
action_new: 'Neue Lieferantin anlegen'
action_import: 'Lieferantin aus externer Datenbank importieren'
articles: 'Artikel (%{count})'
stock: 'im Lager (%{count})'
deliveries: 'Lieferungen (%{count})'
confirm_del: 'Achtung, willst Du wirklich den Lieferanten %{name} löschen?'
edit:
title: 'Lieferantin bearbeiten'
form:
cancel: 'oder abbrechen'
new:
title: 'Neue Lieferantin'
show:
confirm_delete: 'Bist Du sicher?'
last_deliveries: 'Letzte Lieferungen'
new_delivery: 'Neue Lieferung anlegen'
show_deliveries: 'Zeige alle Lieferungen'
shared_suppliers:
title: 'Externe Listen'
body:
<p>Hier werden die Lieferantinnen der externen Datenbank angezeigt.</p>
<p>Ihr könnt externe Lieferantinnen importieren, indem ihr sie einfach abonniert. (siehe unten)</p>
<p>Damit wird eine neue Lieferantin angelegt und mit der externen Datenbank verknüpft.</p>
supplier: 'Lieferantin'
subscribe: 'abonnieren'