From 5dd6b23b09f827a2b316335eaca8b597fbfea317 Mon Sep 17 00:00:00 2001 From: Florian Dupret Date: Tue, 9 Jun 2020 13:51:01 +0200 Subject: [PATCH] Translate debug page --- resources/lang/en_US/firefly.php | 11 ++++++++++- resources/views/v1/debug.twig | 16 ++++++---------- 2 files changed, 16 insertions(+), 11 deletions(-) diff --git a/resources/lang/en_US/firefly.php b/resources/lang/en_US/firefly.php index 447d7e857b..8d90f6acfc 100644 --- a/resources/lang/en_US/firefly.php +++ b/resources/lang/en_US/firefly.php @@ -221,6 +221,7 @@ return [ 'is_beta_warning' => 'You are running an BETA version. Be wary of bugs and issues.', 'all_destination_accounts' => 'Destination accounts', 'all_source_accounts' => 'Source accounts', + 'back_to_index' => 'Back to the index', // check for updates: 'update_check_title' => 'Check for updates', @@ -1658,5 +1659,13 @@ return [ 'telemetry_delete_submitted_records' => 'Delete submitted records', 'telemetry_submission_executed' => 'Records have been submitted. Check your log files for more info.', 'telemetry_all_deleted' => 'All telemetry records have been deleted.', - 'telemetry_submitted_deleted' => 'All submitted telemetry records have been deleted.' + 'telemetry_submitted_deleted' => 'All submitted telemetry records have been deleted.', + + // debug page + 'debug_page' => 'Debug page', + 'debug_submit_instructions' => 'If you are running into problems, you can use the information in this box as debug information. Please copy-and-paste into a new or existing GitHub issue. It will generate a beautiful table that can be used to quickly diagnose your problem.', + 'debug_pretty_table' => 'If you copy/paste the box below into a GitHub issue it will generate a table. Please do not surround this text with backticks or quotes.', + 'debug_additional_data' => 'You may also share the content of the box below. You can also copy-and-paste this into a new or existing GitHub issue. However, the content of this box may contain private information such as account names, transaction details or email addresses.', + + ]; diff --git a/resources/views/v1/debug.twig b/resources/views/v1/debug.twig index 791baf7af1..9973e8119f 100644 --- a/resources/views/v1/debug.twig +++ b/resources/views/v1/debug.twig @@ -1,16 +1,14 @@ - Debug page + {{ trans('firefly.debug_page') }}

- If you are running into problems, you can use the information in this box as debug information. Please copy-and-paste into a new - or existing GitHub issue. It will generate a beautiful table that can - be used to quickly diagnose your problem. + {{ trans('firefly.debug_submit_instructions')|raw }}

- If you copy/paste the box below into a GitHub issue it will generate a table. Please do not surround this text with backticks or quotes. + {{ trans('firefly.debug_pretty_table') }}

- Back to the index + {{ trans('firefly.back_to_index') }}

- You may also share the content of the box below. You can also copy-and-paste this into a new - or existing GitHub issue. However, the content of this - box may contain private information such as account names, transaction details or email addresses. + {{ trans('firefly.debug_additional_data')|raw }}

- Back to the index + {{ trans('firefly.back_to_index') }}