From c9460bd6c6f99960f0b6324bb244ba0432167a38 Mon Sep 17 00:00:00 2001 From: Ajay Ramachandran Date: Wed, 3 Jun 2020 20:42:38 -0400 Subject: [PATCH] Added short category names --- public/_locales/en/messages.json | 12 ++++++++++++ src/components/SkipNoticeComponent.tsx | 3 ++- 2 files changed, 14 insertions(+), 1 deletion(-) diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 06863e14..a1419071 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -486,21 +486,33 @@ "category_intro": { "message": "Intro Animation" }, + "category_intro_short": { + "message": "Intro" + }, "category_outro": { "message": "Endcards/Credits" }, "category_interaction": { "message": "Interaction Reminder (Subscribe)" }, + "category_interaction_short": { + "message": "Interaction Reminder" + }, "category_selfpromo": { "message": "Unpaid/Self Promotion" }, "category_music_offtopic": { "message": "Music: Non-Music Section" }, + "category_music_offtopic_short": { + "message": "Non-Music" + }, "category_livestream_messages": { "message": "Livestream: Donation/Message Readings" }, + "category_livestream_messages_short": { + "message": "Message Reading" + }, "disable": { "message": "Disable" }, diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 7e6c4751..4aedacec 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -73,7 +73,8 @@ class SkipNoticeComponent extends React.Component 1 ? "multipleSegments" : "category_" + this.segments[0].category); + let categoryName = chrome.i18n.getMessage(this.segments.length > 1 ? "multipleSegments" + : "category_" + this.segments[0].category + "_short") || chrome.i18n.getMessage("category_" + this.segments[0].category); let noticeTitle = categoryName + " " + chrome.i18n.getMessage("skipped"); if (!this.autoSkip) { noticeTitle = chrome.i18n.getMessage("skip") + " " + categoryName + "?";