From 51aa48f0845beb5b19d032474bd02574cf0725b7 Mon Sep 17 00:00:00 2001
From: James Cole
Date: Tue, 31 Dec 2019 06:36:30 +0100
Subject: [PATCH] Give importer deprecation warning.
---
resources/lang/en_US/import.php | 3 +++
resources/views/v1/import/file/configure-upload.twig | 3 +++
resources/views/v1/import/file/map.twig | 3 +++
resources/views/v1/import/file/new.twig | 3 +++
resources/views/v1/import/file/roles.twig | 3 +++
resources/views/v1/import/index.twig | 3 +++
6 files changed, 18 insertions(+)
diff --git a/resources/lang/en_US/import.php b/resources/lang/en_US/import.php
index 27c123447f..f7c4887566 100644
--- a/resources/lang/en_US/import.php
+++ b/resources/lang/en_US/import.php
@@ -36,6 +36,9 @@ return [
// index page:
'general_index_intro' => 'Welcome to Firefly III\'s import routine. There are a few ways of importing data into Firefly III, displayed here as buttons.',
+ // notices about the CSV importer:
+ 'deprecate_csv_import' => 'As outlined in this Patreon post, the way Firefly III manages importing data is going to change. That means that the CSV importer will be moved to a new, separate tool. You can already beta-test this tool if you visit this GitHub repository. I would appreciate it if you would test the new importer and let me know what you think.',
+
// import provider strings (index):
'button_fake' => 'Fake an import',
'button_file' => 'Import a file',
diff --git a/resources/views/v1/import/file/configure-upload.twig b/resources/views/v1/import/file/configure-upload.twig
index 2a3c5eef92..1f41fa62e0 100644
--- a/resources/views/v1/import/file/configure-upload.twig
+++ b/resources/views/v1/import/file/configure-upload.twig
@@ -16,6 +16,9 @@
{{ trans('import.job_config_uc_text') }}
+
+ {{ trans('import.deprecate_csv_import')|raw }}
+
diff --git a/resources/views/v1/import/file/map.twig b/resources/views/v1/import/file/map.twig
index 3f2035d263..272a642a34 100644
--- a/resources/views/v1/import/file/map.twig
+++ b/resources/views/v1/import/file/map.twig
@@ -22,6 +22,9 @@
{{ trans('import.job_config_map_nothing') }}
{% endif %}
+
+ {{ trans('import.deprecate_csv_import')|raw }}
+
diff --git a/resources/views/v1/import/file/new.twig b/resources/views/v1/import/file/new.twig
index 9d49ff470a..f8d0839656 100644
--- a/resources/views/v1/import/file/new.twig
+++ b/resources/views/v1/import/file/new.twig
@@ -14,6 +14,9 @@
{{ trans('import.job_config_file_upload_text') }}
+
+ {{ trans('import.deprecate_csv_import')|raw }}
+
diff --git a/resources/views/v1/import/file/roles.twig b/resources/views/v1/import/file/roles.twig
index a983dc1b35..4fdd165c55 100644
--- a/resources/views/v1/import/file/roles.twig
+++ b/resources/views/v1/import/file/roles.twig
@@ -16,6 +16,9 @@
{{ trans('import.job_config_roles_text') }}
+
+ {{ trans('import.deprecate_csv_import')|raw }}
+
diff --git a/resources/views/v1/import/index.twig b/resources/views/v1/import/index.twig
index addef3857a..beaa3f1a9c 100644
--- a/resources/views/v1/import/index.twig
+++ b/resources/views/v1/import/index.twig
@@ -14,6 +14,9 @@
{{ trans('import.general_index_intro') }}
+
+ {{ trans('import.deprecate_csv_import')|raw }}
+
{% for name, provider in providers %}
{# button for each import thing: #}