From 24d04b25db956ecfaa56911a6573c7d1e99d488c Mon Sep 17 00:00:00 2001 From: wvengen Date: Thu, 4 Apr 2013 00:56:45 +0200 Subject: [PATCH] fix some small i18n errors --- app/controllers/orders_controller.rb | 2 +- config/locales/de/de.articles.yml | 1 + config/locales/en/en.articles.yml | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) 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'