diff options
author | [email protected] <[email protected]> | 2020-10-01 15:27:40 +0200 |
---|---|---|
committer | [email protected] <[email protected]> | 2020-10-01 15:27:40 +0200 |
commit | 010b501bac6bfcc323632d242386954f0ff3b3de (patch) | |
tree | 93d7a149c8555114bf4c781bbd13f7a7ca628521 | |
parent | dcc6f02a28bf71f5d71cde40b68c40a8015786f6 (diff) | |
download | SponsorBlock-010b501bac6bfcc323632d242386954f0ff3b3de.tar.gz SponsorBlock-010b501bac6bfcc323632d242386954f0ff3b3de.zip |
fix: resolve translation issue #447
-rw-r--r-- | src/components/SkipNoticeComponent.tsx | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/components/SkipNoticeComponent.tsx b/src/components/SkipNoticeComponent.tsx index 9dab754b..7af8524b 100644 --- a/src/components/SkipNoticeComponent.tsx +++ b/src/components/SkipNoticeComponent.tsx @@ -78,7 +78,8 @@ 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("skip") + " " + categoryName + "?"; + 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); } //add notice @@ -540,4 +541,4 @@ class SkipNoticeComponent extends React.Component<SkipNoticeProps, SkipNoticeSta } } -export default SkipNoticeComponent;
\ No newline at end of file +export default SkipNoticeComponent; |