add missing i18n

This commit is contained in:
wvengen 2013-10-04 10:09:33 +02:00
parent bbcad49831
commit a9dff7f1df
7 changed files with 10 additions and 6 deletions

View File

@ -11,7 +11,7 @@ class LoginController < ApplicationController
# Sends an email to a user with the token that allows setting a new password through action "password". # Sends an email to a user with the token that allows setting a new password through action "password".
def reset_password def reset_password
if request.get? || params[:user].nil? # Catch for get request and give better error message. if request.get? || params[:user].nil? # Catch for get request and give better error message.
redirect_to forgot_password_url, alert: 'Ein Problem ist aufgetreten. Bitte erneut versuchen' and return redirect_to forgot_password_url, alert: I18n.t('errors.general_again') and return
end end
if (user = User.find_by_email(params[:user][:email])) if (user = User.find_by_email(params[:user][:email]))

View File

@ -11,8 +11,7 @@
= hidden_field_tag "outlisted_articles[#{article.id}]", '1' = hidden_field_tag "outlisted_articles[#{article.id}]", '1'
= article.name = article.name
- if article.in_open_order - if article.in_open_order
.alert .alert= t '.alert_used', article: article.name
Achtung, #{article.name} wird gerade in einer laufenden Bestellung verwendet. Bitte erst Bestellung anpassen.
- else - else
%i= t '.outlist.body_skip' %i= t '.outlist.body_skip'
%hr/ %hr/

View File

@ -5,7 +5,7 @@
%h3= t('.amount_change_for', article: @order_article.article.name) %h3= t('.amount_change_for', article: @order_article.article.name)
.modal-body .modal-body
= form.input :ordergroup_id, as: :select, collection: Ordergroup.all.map { |g| [g.name, g.id] } = form.input :ordergroup_id, as: :select, collection: Ordergroup.all.map { |g| [g.name, g.id] }
= form.input :result, hint: "Einheit: #{@order_article.article.unit}" = form.input :result, hint: I18n.t('.result_hint', unit: @order_article.article.unit)
.modal-footer .modal-footer
= link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'} = link_to t('ui.close'), '#', class: 'btn', data: {dismiss: 'modal'}
= form.submit t('ui.save'), class: 'btn btn-primary' = form.submit t('ui.save'), class: 'btn btn-primary'

View File

@ -11,7 +11,7 @@
= f.input :unit = f.input :unit
- if @order_article.article.is_a?(StockArticle) - if @order_article.article.is_a?(StockArticle)
%div.alert Preise von Lagerartikeln können nicht geändert werden! %div.alert= t '.stock_alert'
- else - else
= simple_fields_for :article_price, @order_article.article_price do |f| = simple_fields_for :article_price, @order_article.article_price do |f|
= f.input :unit_quantity = f.input :unit_quantity

View File

@ -30,7 +30,7 @@
- unless @task.done? - unless @task.done?
= link_to t('.mark_done'), set_done_task_path(@task), method: :post, class: 'btn' = link_to t('.mark_done'), set_done_task_path(@task), method: :post, class: 'btn'
= link_to t('ui.edit'), edit_task_path(@task), class: 'btn' = link_to t('ui.edit'), edit_task_path(@task), class: 'btn'
= link_to t('ui.delete'), task_path(@task), :method => :delete, :confirm => "Die Aufgabe wirklich löschen?", = link_to t('ui.delete'), task_path(@task), :method => :delete, :confirm => t('.confirm_delete_single'),
class: 'btn btn-danger' class: 'btn btn-danger'
- if @task.periodic? - if @task.periodic?
= link_to t('.delete_group'), task_path(@task, periodic: true), method: :delete, = link_to t('.delete_group'), task_path(@task, periodic: true), method: :delete,

View File

@ -313,6 +313,7 @@ de:
title: title:
sync: sync:
outlist: outlist:
alert_used: Achtung, %{article} wird gerade in einer laufenden Bestellung verwendet. Bitte erst Bestellung anpassen.
body: ! 'Folgende Artikel wurden ausgelistet und werden <b>gelöscht</b>:' body: ! 'Folgende Artikel wurden ausgelistet und werden <b>gelöscht</b>:'
body_skip: Es müssen keine Artikel gelöscht werden. body_skip: Es müssen keine Artikel gelöscht werden.
title: Auslisten ... title: Auslisten ...
@ -686,6 +687,7 @@ de:
group_order_articles: group_order_articles:
form: form:
amount_change_for: Mengenänderung für %{article} amount_change_for: Mengenänderung für %{article}
result_hint: 'Einheit: %{unit}'
index: index:
amount: Betrag amount: Betrag
amount_fc: Betrag(FC) amount_fc: Betrag(FC)
@ -722,6 +724,7 @@ de:
order_articles: order_articles:
edit: edit:
title: Artikel aktualisieren title: Artikel aktualisieren
stock_alert: Preise von Lagerartikeln können nicht geändert werden!
new: new:
title: Neuer gelieferter Artikel die Bestellung title: Neuer gelieferter Artikel die Bestellung
ordergroups: ordergroups:
@ -1861,6 +1864,7 @@ de:
notice: Aufgabenstatus wurde aktualisiert notice: Aufgabenstatus wurde aktualisiert
show: show:
accept_task: Aufgabe übernehmen accept_task: Aufgabe übernehmen
confirm_delete_single: Die Aufgabe wirklich löschen?
confirm_delete_group: Diese und alle folgenden wöchentlichen Aufgaben wirklich löschen? confirm_delete_group: Diese und alle folgenden wöchentlichen Aufgaben wirklich löschen?
delete_group: Aufgabe und folgende löschen delete_group: Aufgabe und folgende löschen
due_date: Fälligkeitsdatum due_date: Fälligkeitsdatum

View File

@ -324,6 +324,7 @@ en:
title: Upload articles title: Upload articles
sync: sync:
outlist: outlist:
alert_used: Warning, %{article} is used in an open order. Please remove it from the order first.
body: ! 'The following articles were removed from the list and will be <b>deleted</b>:' body: ! 'The following articles were removed from the list and will be <b>deleted</b>:'
body_skip: No articles to delete. body_skip: No articles to delete.
title: Remove from list ... title: Remove from list ...