diff --git a/app/controllers/repositories_controller.rb b/app/controllers/repositories_controller.rb index 2442e8b0c..49d854c41 100644 --- a/app/controllers/repositories_controller.rb +++ b/app/controllers/repositories_controller.rb @@ -236,7 +236,8 @@ class RepositoriesController < ApplicationController if status[:status] == :ok flash[:success] = t('repositories.import_records.success_flash', - number_of_rows: status[:nr_of_added]) + number_of_rows: status[:nr_of_added], + total_nr: status[:total_nr]) render json: {}, status: :ok else flash[:alert] = diff --git a/config/locales/en.yml b/config/locales/en.yml index e7939ad6b..4a22f9ecd 100644 --- a/config/locales/en.yml +++ b/config/locales/en.yml @@ -967,7 +967,7 @@ en: import_records: import: 'Import' no_header_name: 'No column name' - success_flash: "%{number_of_rows} new item(s) successfully imported." + success_flash: "%{number_of_rows} of %{total_nr} new item(s) successfully imported." partial_success_flash: "%{nr} of %{total_nr} successfully imported. Other rows contained errors." error_message: items_limit: "The imported file contains too many rows. Max %{items_size} items allowed to upload at once."