Skip to content

Firefly III: a personal finances manager

Translate debug page

Florian Dupret5dd6b23b09f8
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 <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. 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 <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. 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 @@
<html>
<head>
- <title>Debug page</title>
+ <title>{{ trans('firefly.debug_page') }}</title>
</head>
<body>
<p style="font-family:Arial, Arial, Helvetica, sans-serif;font-size:12pt;width:600px;">
- 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 <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. It will generate a beautiful table that can
- be used to quickly diagnose your problem.
+ {{ trans('firefly.debug_submit_instructions')|raw }}
</p>
<p style="font-family:Arial, Arial, Helvetica, sans-serif;font-size:12pt;width:600px;">
- <strong>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.</strong>
+ <strong>{{ trans('firefly.debug_pretty_table') }}</strong>
</p>
<textarea rows="30" cols="100" name="debug_info" style="font-family:Menlo, Monaco, Consolas, monospace;font-size:8pt;">
Debug information generated at {{ now }} for Firefly III version **{{ FF_VERSION }}**.
@@ -56,13 +54,11 @@ Debug information generated at {{ now }} for Firefly III version **{{ FF_VERSION
</textarea>
<p style="font-family:Arial, Arial, Helvetica, sans-serif;font-size:12pt;width:600px;color:#a00;">
- <a href="{{ route('index') }}">Back to the index</a>
+ <a href="{{ route('index') }}">{{ trans('firefly.back_to_index') }}</a>
</p>
<p style="font-family:Arial, Arial, Helvetica, sans-serif;font-size:12pt;width:600px;color:#a00;">
- You may also share the content of the box below. You can also copy-and-paste this into a new
- or existing <a href="https://github.com/firefly-iii/firefly-iii/issues">GitHub issue</a>. 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 }}
</p>
<textarea rows="30" cols="100" name="log_info" style="font-family:Menlo, Monaco, Consolas, monospace;font-size:7pt;">
@@ -72,7 +68,7 @@ Debug information generated at {{ now }} for Firefly III version **{{ FF_VERSION
</textarea>
<p style="font-family:Arial, Arial, Helvetica, sans-serif;font-size:12pt;width:600px;color:#a00;">
- <a href="{{ route('index') }}">Back to the index</a>
+ <a href="{{ route('index') }}">{{ trans('firefly.back_to_index') }}</a>
</p>
</body>