aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/SkipNoticeComponent.tsx
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2020-06-03 20:42:38 -0400
committerAjay Ramachandran <[email protected]>2020-06-03 20:42:38 -0400
commitc9460bd6c6f99960f0b6324bb244ba0432167a38 (patch)
treeda2175379cc851e933ee2dd64d56f403d14cb3b9 /src/components/SkipNoticeComponent.tsx
parentd9800b3c14026c26976ecb67e82883e03c92e5cd (diff)
downloadSponsorBlock-c9460bd6c6f99960f0b6324bb244ba0432167a38.tar.gz
SponsorBlock-c9460bd6c6f99960f0b6324bb244ba0432167a38.zip
Added short category names
Diffstat (limited to 'src/components/SkipNoticeComponent.tsx')
-rw-r--r--src/components/SkipNoticeComponent.tsx3
1 files changed, 2 insertions, 1 deletions
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<SkipNoticeProps, SkipNoticeSta
this.contentContainer = props.contentContainer;
this.audio = null;
- let categoryName = chrome.i18n.getMessage(this.segments.length > 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 + "?";