From 9de69c0052b004c22a1d83f10193e13d1f3d5c58 Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 28 Feb 2025 20:42:07 -0800 Subject: Improve design of placeholder item Also makes it show the error backtrace --- locales/en-US.json | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'locales/en-US.json') diff --git a/locales/en-US.json b/locales/en-US.json index 4f2c2770..c9a48972 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -501,5 +501,7 @@ "toggle_theme": "Toggle Theme", "carousel_slide": "Slide {{current}} of {{total}}", "carousel_skip": "Skip the Carousel", - "carousel_go_to": "Go to slide `x`" + "carousel_go_to": "Go to slide `x`", + "timeline_parse_error_placeholder_heading": "Unable to parse item", + "timeline_parse_error_placeholder_message": "Invidious encountered an error while trying to parse this item. For more information see below:" } -- cgit v1.2.3 From c288005bfd512652f82d3bfa8b2ff939dbd694de Mon Sep 17 00:00:00 2001 From: syeopite Date: Fri, 28 Feb 2025 21:05:19 -0800 Subject: Make "show technical details" btn translatable --- locales/en-US.json | 3 ++- src/invidious/views/components/item.ecr | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) (limited to 'locales/en-US.json') diff --git a/locales/en-US.json b/locales/en-US.json index c9a48972..d44a8827 100644 --- a/locales/en-US.json +++ b/locales/en-US.json @@ -503,5 +503,6 @@ "carousel_skip": "Skip the Carousel", "carousel_go_to": "Go to slide `x`", "timeline_parse_error_placeholder_heading": "Unable to parse item", - "timeline_parse_error_placeholder_message": "Invidious encountered an error while trying to parse this item. For more information see below:" + "timeline_parse_error_placeholder_message": "Invidious encountered an error while trying to parse this item. For more information see below:", + "timeline_parse_error_show_technical_details": "Show technical details" } diff --git a/src/invidious/views/components/item.ecr b/src/invidious/views/components/item.ecr index 348ea127..279a74b2 100644 --- a/src/invidious/views/components/item.ecr +++ b/src/invidious/views/components/item.ecr @@ -105,7 +105,7 @@

<%=translate(locale, "timeline_parse_error_placeholder_message")%>

- Show technical details + <%=translate(locale, "timeline_parse_error_show_technical_details")%>
<%=get_issue_template(env, item.parse_exception)[1]%>
-- cgit v1.2.3