From c9c1569de0e9bb857f55021fed59d34499e62183 Mon Sep 17 00:00:00 2001 From: Darren Cato Date: Tue, 23 Jul 2013 13:21:56 -0400 Subject: [PATCH] i18n changes --- app/controllers/data_controller.rb | 4 ++-- config/locales/en.yml | 1 + 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/app/controllers/data_controller.rb b/app/controllers/data_controller.rb index 587d9ad3..18e3bad2 100644 --- a/app/controllers/data_controller.rb +++ b/app/controllers/data_controller.rb @@ -52,10 +52,10 @@ class DataController < ApplicationController count = Todo.import params, current_user flash[:notice] = "#{count} Todos imported" else - flash[:error] = "Ivalid import desitination" + flash[:error] = t('data.invalid_import_destination') end rescue Exception => e - flash[:error] = "Error importing CSV: #{e}" + flash[:error] = t('data.invalid_import_destination') + ": #{e}" end File.delete(params[:file]) redirect_to import_data_path diff --git a/config/locales/en.yml b/config/locales/en.yml index f2831a0e..bd8d1525 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -820,6 +820,7 @@ en: data: import_successful: Import was successful. import_errors: Some errors occurred during import + import_destination_invalid: Invalid import destination stats: index_title: TRACKS::Statistics within_one: Within 1