diff --git a/app/controllers/orders_controller.rb b/app/controllers/orders_controller.rb index 6650bfad..a3f7c776 100644 --- a/app/controllers/orders_controller.rb +++ b/app/controllers/orders_controller.rb @@ -97,7 +97,7 @@ class OrdersController < ApplicationController def finish order = Order.find(params[:id]) order.finish!(@current_user) - redirect_to order, notice: I18n.t('order.finish.notice') + redirect_to order, notice: I18n.t('orders.finish.notice') end # Renders the fax-text-file diff --git a/config/locales/de/de.articles.yml b/config/locales/de/de.articles.yml index 3979410d..9e355efd 100644 --- a/config/locales/de/de.articles.yml +++ b/config/locales/de/de.articles.yml @@ -117,3 +117,4 @@ de: # used by model model: error_in_use: '%{article} kann nicht gelöscht werden. Der Artikel befindet sich in einer laufenden Bestellung!' + error_nosel: 'Du hast keine Artikel ausgewählt' diff --git a/config/locales/en/en.articles.yml b/config/locales/en/en.articles.yml index 8149633e..b22f200f 100644 --- a/config/locales/en/en.articles.yml +++ b/config/locales/en/en.articles.yml @@ -114,3 +114,4 @@ en: # used by model model: error_in_use: '%{article} can not be deleted because the article is part of a current order!' + error_nosel: 'You have selected no articles'