aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/components/SkipNoticeComponent.tsx
diff options
context:
space:
mode:
author[email protected] <[email protected]>2020-10-02 17:32:19 +0200
committer[email protected] <[email protected]>2020-10-02 17:32:19 +0200
commit5dbaaaed96483a5c048838d116510a3f88f25e60 (patch)
tree02e04fca9138c2a520ae9b25b65486a051da895d /src/components/SkipNoticeComponent.tsx
parent6fa0c44f7fa3ecbb3684b9b0dca842a961c1bf4e (diff)
downloadSponsorBlock-5dbaaaed96483a5c048838d116510a3f88f25e60.tar.gz
SponsorBlock-5dbaaaed96483a5c048838d116510a3f88f25e60.zip
fix: use skip_category i18n string
resolves #447
Diffstat (limited to 'src/components/SkipNoticeComponent.tsx')
-rw-r--r--src/components/SkipNoticeComponent.tsx3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx
index 7af8524b..a3f2016b 100644
--- a/src/components/SkipNoticeComponent.tsx
+++ b/src/components/SkipNoticeComponent.tsx
@@ -78,8 +78,7 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta
: "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(this.segments.length > 1 ? "skip_multiple_segments"
- : "skip_category_" + this.segments[0].category + "_short") || chrome.i18n.getMessage("skip_category_" + this.segments[0].category);
+ noticeTitle = chrome.i18n.getMessage("skip_category").replace("{0}", categoryName);
}
//add notice