extract hard-coded strings

This commit is contained in:
Régis Hanol
2013-04-07 18:14:50 +02:00
parent d5c0dd7fa0
commit 41b7f741d0
4 changed files with 9 additions and 3 deletions

View File

@ -4,7 +4,7 @@ class Admin::ExportController < Admin::AdminController
job_id = Jobs.enqueue( :exporter, user_id: current_user.id )
render json: success_json.merge( job_id: job_id )
else
render json: failed_json.merge( message: "An #{Export.is_export_running? ? 'export' : 'import'} is currently running. Can't start a new export job right now.")
render json: failed_json.merge( message: I18n.t('operation_already_running', { operation: Export.is_export_running? ? 'export' : 'import' }))
end
end
end