summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSamantaz Fox <coding@samantaz.fr>2022-01-17 21:47:29 +0100
committerSamantaz Fox <coding@samantaz.fr>2022-01-17 21:47:29 +0100
commit8c2495a3999a2102d0a299cd491356ac8c005d8f (patch)
tree79ad4f2e468570f0fc8b1ba492d69506300efd1d
parent2d1f6128be866b6155c263c8f6c1bfd438b50b50 (diff)
downloadinvidious-8c2495a3999a2102d0a299cd491356ac8c005d8f.tar.gz
invidious-8c2495a3999a2102d0a299cd491356ac8c005d8f.tar.bz2
invidious-8c2495a3999a2102d0a299cd491356ac8c005d8f.zip
Apply suggestions from review
-rw-r--r--locales/en-US.json6
-rw-r--r--src/invidious/helpers/errors.cr4
2 files changed, 5 insertions, 5 deletions
diff --git a/locales/en-US.json b/locales/en-US.json
index 67156f14..f733f7db 100644
--- a/locales/en-US.json
+++ b/locales/en-US.json
@@ -433,9 +433,9 @@
"preferences_save_player_pos_label": "Save playback position: ",
"crash_page_you_found_a_bug": "It looks like you found a bug in Invidious!",
"crash_page_before_reporting": "Before reporting a bug, make sure that you have:",
- "crash_page_refresh": "Tried to refresh the page",
- "crash_page_switch_instance": "Tried to use another instance",
- "crash_page_read_the_faq": "looked at the <a href=\"`x`\">Frenquently Asked Questions (FAQ)</a>",
+ "crash_page_refresh": "tried to <a href=\"`x`\">refresh the page</a>",
+ "crash_page_switch_instance": "tried to <a href=\"`x`\">use another instance</a>",
+ "crash_page_read_the_faq": "read the <a href=\"`x`\">Frenquently Asked Questions (FAQ)</a>",
"crash_page_search_issue": "searched for <a href=\"`x`\">existing issues on Github</a>",
"crash_page_report_issue": "If none of the above helped, please <a href=\"`x`\">open a new issue on GitHub</a> (preferably in English) and include the following text in your message (do NOT translate that text):"
}
diff --git a/src/invidious/helpers/errors.cr b/src/invidious/helpers/errors.cr
index d441165d..26c38669 100644
--- a/src/invidious/helpers/errors.cr
+++ b/src/invidious/helpers/errors.cr
@@ -56,8 +56,8 @@ def error_template_helper(env : HTTP::Server::Context, locale : String?, status_
<p><b>#{translate(locale, "crash_page_before_reporting")}</b></p>
<ul>
- <li><a href="#{env.request.resource}">#{translate(locale, "crash_page_refresh")}</a></li>
- <li><a href="#{url_switch}">#{translate(locale, "crash_page_switch_instance")}</a></li>
+ <li>#{translate(locale, "crash_page_refresh", env.request.resource)}</li>
+ <li>#{translate(locale, "crash_page_switch_instance", url_switch)}</li>
<li>#{translate(locale, "crash_page_read_the_faq", url_faq)}</li>
<li>#{translate(locale, "crash_page_search_issue", url_search_issues)}</li>
</ul>