finish i18n of article_categories + translation
This commit is contained in:
parent
0bb080526a
commit
ec1ef0289b
7 changed files with 38 additions and 11 deletions
|
@ -3,4 +3,4 @@
|
||||||
= f.input :description
|
= f.input :description
|
||||||
.form-actions
|
.form-actions
|
||||||
= f.submit class: 'btn'
|
= f.submit class: 'btn'
|
||||||
= link_to 'oder abbrechen', article_categories_path
|
= link_to t('.or_cancel'), article_categories_path
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
- title "Kategorie ändern"
|
- title t('.title')
|
||||||
|
|
||||||
= render 'form'
|
= render 'form'
|
||||||
|
|
|
@ -1,12 +1,12 @@
|
||||||
- title "Artikelkategorien"
|
- title t('.title')
|
||||||
|
|
||||||
%p= link_to "Neue Kategorie anlegen", new_article_category_path, class: 'btn btn-primary'
|
%p= link_to t('.new'), new_article_category_path, class: 'btn btn-primary'
|
||||||
|
|
||||||
%table.table.table-striped
|
%table.table.table-striped
|
||||||
%thead
|
%thead
|
||||||
%tr
|
%tr
|
||||||
%th Name
|
%th= t('simple_form.labels.article_category.name')
|
||||||
%th Beschreibung
|
%th= t('simple_form.labels.article_category.description')
|
||||||
%th
|
%th
|
||||||
%tbody
|
%tbody
|
||||||
- @article_categories.each do |article_category|
|
- @article_categories.each do |article_category|
|
||||||
|
@ -14,6 +14,6 @@
|
||||||
%td= article_category.name
|
%td= article_category.name
|
||||||
%td= article_category.description
|
%td= article_category.description
|
||||||
%td
|
%td
|
||||||
= link_to "Bearbeiten", edit_article_category_path(article_category), class: 'btn btn-mini'
|
= link_to t('ui.edit'), edit_article_category_path(article_category), class: 'btn btn-mini'
|
||||||
= link_to "Löschen", article_category, :method => :delete, :confirm => 'Are you sure?',
|
= link_to t('ui.delete'), article_category, :method => :delete, :confirm => t('.confirm_delete'),
|
||||||
class: 'btn btn-mini btn-danger'
|
class: 'btn btn-mini btn-danger'
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
- title "Neue Kategorie anlegen"
|
- title t('.title')
|
||||||
|
|
||||||
= render 'form'
|
= render 'form'
|
||||||
|
|
12
config/locales/de/de.article_categories.yml
Normal file
12
config/locales/de/de.article_categories.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
de:
|
||||||
|
article_categories:
|
||||||
|
edit:
|
||||||
|
title: 'Kategorie ändern'
|
||||||
|
form:
|
||||||
|
or_cancel: 'oder abbrechen'
|
||||||
|
index:
|
||||||
|
title: 'Artikelkategorien'
|
||||||
|
new: 'Neue Kategorie anlegen'
|
||||||
|
confirm_delete: 'Bist Du sicher?'
|
||||||
|
new:
|
||||||
|
title: 'Neue Kategorie anlegen'
|
|
@ -88,6 +88,9 @@ de:
|
||||||
unit: 'Einheit'
|
unit: 'Einheit'
|
||||||
note: 'Notiz'
|
note: 'Notiz'
|
||||||
article_category: 'Kategorie'
|
article_category: 'Kategorie'
|
||||||
|
article_category:
|
||||||
|
name: 'Name'
|
||||||
|
description: 'Beschreibung'
|
||||||
stock_article:
|
stock_article:
|
||||||
supplier: 'Lieferant'
|
supplier: 'Lieferant'
|
||||||
delivery:
|
delivery:
|
||||||
|
|
12
config/locales/en/en.article_categories.yml
Normal file
12
config/locales/en/en.article_categories.yml
Normal file
|
@ -0,0 +1,12 @@
|
||||||
|
en:
|
||||||
|
article_categories:
|
||||||
|
edit:
|
||||||
|
title: 'Edit category'
|
||||||
|
form:
|
||||||
|
or_cancel: 'or cancel'
|
||||||
|
index:
|
||||||
|
title: 'Article categories'
|
||||||
|
new: 'Add new category'
|
||||||
|
confirm_delete: 'Are you sure?'
|
||||||
|
new:
|
||||||
|
title: 'Add new category'
|
Loading…
Reference in a new issue