diff options
author | FlorianZahn <[email protected]> | 2021-10-06 23:38:06 +0200 |
---|---|---|
committer | FlorianZahn <[email protected]> | 2021-10-06 23:38:06 +0200 |
commit | 6ea226c97230f77d36422848abeaef58f5789775 (patch) | |
tree | 810ea77c461bccc8ea2877cdcdfeddc55f5f5382 | |
parent | c571a9ecb66268a6d4cdda3787fcf83a37c8752e (diff) | |
download | SponsorBlock-6ea226c97230f77d36422848abeaef58f5789775.tar.gz SponsorBlock-6ea226c97230f77d36422848abeaef58f5789775.zip |
Added string to the language file
-rw-r--r-- | public/_locales/en/messages.json | 3 | ||||
-rw-r--r-- | src/components/SponsorTimeEditComponent.tsx | 2 |
2 files changed, 4 insertions, 1 deletions
diff --git a/public/_locales/en/messages.json b/public/_locales/en/messages.json index 5ec3f3e3..74a68aa9 100644 --- a/public/_locales/en/messages.json +++ b/public/_locales/en/messages.json @@ -810,5 +810,8 @@ }, "LearnMore": { "message": "Learn More" + }, + "SponsorTimeEditScrollNewFeature": { + "message": "Use your mousewheel while hovering over the edit box to quickly adjust the time. Combinations of the ctrl or shift key can be used to fine tune the changes." } } diff --git a/src/components/SponsorTimeEditComponent.tsx b/src/components/SponsorTimeEditComponent.tsx index 774c9b90..5a975fc2 100644 --- a/src/components/SponsorTimeEditComponent.tsx +++ b/src/components/SponsorTimeEditComponent.tsx @@ -278,7 +278,7 @@ class SponsorTimeEditComponent extends React.Component<SponsorTimeEditProps, Spo if (!Config.config.scrollToEditTimeUpdate && document.getElementById("sponsorRectangleTooltip" + "sponsorTimesContainer" + this.idSuffix) === null) { const element = document.getElementById("sponsorTimesContainer" + this.idSuffix); new RectangleTooltip({ - text: "Use your mousewheel while hovering over the edit box to quickly adjust the time. Combinations of the ctrl or shift key can be used to fine tune the changes.", + text: chrome.i18n.getMessage("SponsorTimeEditScrollNewFeature"), referenceNode: element.parentElement, prependElement: element, timeout: 15, |