From f9d87cb9f6179e294b31e13811cb3e224cd40daf Mon Sep 17 00:00:00 2001 From: James Cole Date: Sat, 30 Dec 2017 09:47:37 +0100 Subject: [PATCH] Remove unused translations. --- resources/lang/en_US/config.php | 1 - resources/lang/en_US/import.php | 11 +--- .../views/import/spectre/input-fields.twig | 65 ------------------- .../views/import/spectre/select-country.twig | 42 ------------ .../views/import/spectre/select-provider.twig | 42 ------------ 5 files changed, 3 insertions(+), 158 deletions(-) delete mode 100644 resources/views/import/spectre/input-fields.twig delete mode 100644 resources/views/import/spectre/select-country.twig delete mode 100644 resources/views/import/spectre/select-provider.twig diff --git a/resources/lang/en_US/config.php b/resources/lang/en_US/config.php index d3be97099d..e41b1d60fb 100644 --- a/resources/lang/en_US/config.php +++ b/resources/lang/en_US/config.php @@ -27,7 +27,6 @@ return [ 'date_time' => '%B %e, %Y, @ %T', 'specific_day' => '%e %B %Y', 'week_in_year' => 'Week %W, %Y', - 'quarter_of_year' => '%B %Y', 'year' => '%Y', 'half_year' => '%B %Y', ]; diff --git a/resources/lang/en_US/import.php b/resources/lang/en_US/import.php index a73f185e19..67db75427f 100644 --- a/resources/lang/en_US/import.php +++ b/resources/lang/en_US/import.php @@ -92,7 +92,9 @@ return [ 'csv_roles_column' => 'Column', 'csv_roles_no_example_data' => 'No example data available', 'csv_roles_submit' => 'Continue with step 4/4', - 'csv_roles_warning' => 'At the very least, mark one column as the amount-column. It is advisable to also select a column for the description, date and the opposing account.', + + // not csv, but normal warning + 'roles_warning' => 'At the very least, mark one column as the amount-column. It is advisable to also select a column for the description, date and the opposing account.', // file, map data 'file_map_title' => 'Import setup (4/4) - Connect import data to Firefly III data', @@ -153,11 +155,4 @@ return [ 'spectre_prerequisites_title' => 'Prerequisites for an import using Spectre', 'spectre_prerequisites_text' => 'In order to import data using the Spectre API, you need to prove some secrets. They can be found on the secrets page.', 'spectre_enter_pub_key' => 'The import will only work when you enter this public key on your security page.', - 'spectre_select_country_title' => 'Select a country', - 'spectre_select_country_text' => 'Firefly III has a large selection of banks and sites from which Spectre can download transactional data. These banks are sorted by country. Please not that there is a "Fake Country" for when you wish to test something. If you wish to import from other financial tools, please use the imaginary country called "Other financial applications". By default, Spectre only allows you to download data from fake banks. Make sure your status is "Live" on your Dashboard if you wish to download from real banks.', - 'spectre_select_provider_title' => 'Select a bank', - 'spectre_select_provider_text' => 'Spectre supports the following banks or financial services grouped under :country. Please pick the one you wish to import from.', - 'spectre_input_fields_title' => 'Input mandatory fields', - 'spectre_input_fields_text' => 'The following fields are mandated by ":provider" (from :country).', - 'spectre_instructions_english' => 'These instructions are provided by Spectre for your convencience. They are in English:', ]; diff --git a/resources/views/import/spectre/input-fields.twig b/resources/views/import/spectre/input-fields.twig deleted file mode 100644 index adc64440d2..0000000000 --- a/resources/views/import/spectre/input-fields.twig +++ /dev/null @@ -1,65 +0,0 @@ -{% extends "./layout/default" %} - -{% block breadcrumbs %} - {{ Breadcrumbs.render }} -{% endblock %} -{% block content %} -
-
- -
-
-
-

{{ trans('import.spectre_input_fields_title') }}

-
-
-
-
-

- {{ trans('import.spectre_input_fields_text',{provider: data.provider.data.name, country: data.country})|raw }} -

-

- {{ trans('import.spectre_instructions_english') }} -

-

- {{ data.provider.data.instruction|nl2br }} -

-
-
- -
-
- {% for field in data.fields %} - {# text, password, select, file #} - {% if field.nature == 'text' %} - {{ ExpandedForm.text(field.name,null, {label: field.english_name ~ ' ('~field.localized_name~')'}) }} - {% endif %} - {% if field.nature == 'password' %} - {{ ExpandedForm.password(field.name, {label: field.english_name ~ ' ('~field.localized_name~')'}) }} - {% endif %} - {% if field.nature == 'select' %} - DO NOT SUPPORT - {{ dump(field) }} - {% endif %} - {% if field.narture == 'file' %} - DO NOT SUPPORT - {{ dump(field) }} - {% endif %} - - {% endfor %} -
-
- -
-
- -
-{% endblock %} -{% block scripts %} -{% endblock %} -{% block styles %} -{% endblock %} diff --git a/resources/views/import/spectre/select-country.twig b/resources/views/import/spectre/select-country.twig deleted file mode 100644 index 55a5905f86..0000000000 --- a/resources/views/import/spectre/select-country.twig +++ /dev/null @@ -1,42 +0,0 @@ -{% extends "./layout/default" %} - -{% block breadcrumbs %} - {{ Breadcrumbs.render }} -{% endblock %} -{% block content %} -
-
- -
-
-
-

{{ trans('import.spectre_select_country_title') }}

-
-
-
-
-

- {{ trans('import.spectre_select_country_text')|raw }} -

-
-
- -
-
- {{ ExpandedForm.select('country_code', data.countries, null)|raw }} -
-
- -
-
- -
-{% endblock %} -{% block scripts %} -{% endblock %} -{% block styles %} -{% endblock %} diff --git a/resources/views/import/spectre/select-provider.twig b/resources/views/import/spectre/select-provider.twig deleted file mode 100644 index c4f94fbdd2..0000000000 --- a/resources/views/import/spectre/select-provider.twig +++ /dev/null @@ -1,42 +0,0 @@ -{% extends "./layout/default" %} - -{% block breadcrumbs %} - {{ Breadcrumbs.render }} -{% endblock %} -{% block content %} -
-
- -
-
-
-

{{ trans('import.spectre_select_provider_title') }}

-
-
-
-
-

- {{ trans('import.spectre_select_provider_text',{country: data.country})|raw }} -

-
-
- -
-
- {{ ExpandedForm.select('provider_code', data.providers, null)|raw }} -
-
- -
-
- -
-{% endblock %} -{% block scripts %} -{% endblock %} -{% block styles %} -{% endblock %}