aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMaxim <[email protected]>2020-08-27 23:53:53 +0500
committerGitHub <[email protected]>2020-08-27 23:53:53 +0500
commitcc65dea4c51393b91312b3ab872958ad5960eab8 (patch)
tree79deccf2dab319d460faa5cc328c6fc343adbb8f /src
parentf6110899fb9dc56d9a7a144676843672b49573c1 (diff)
downloadSponsorBlock-cc65dea4c51393b91312b3ab872958ad5960eab8.tar.gz
SponsorBlock-cc65dea4c51393b91312b3ab872958ad5960eab8.zip
Missing i18n strings for " to " between timecodes
Diffstat (limited to 'src')
-rw-r--r--src/popup.ts8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/popup.ts b/src/popup.ts
index 678fb0e3..85f46af8 100644
--- a/src/popup.ts
+++ b/src/popup.ts
@@ -392,7 +392,7 @@ async function runThePopup(messageListener?: MessageListener) {
extraInfo = " (" + chrome.i18n.getMessage("hiddenDueToDuration") + ")";
}
- sponsorTimeButton.innerText = getFormattedTime(request.sponsorTimes[i].segment[0]) + " to " + getFormattedTime(request.sponsorTimes[i].segment[1]) + extraInfo;
+ sponsorTimeButton.innerText = getFormattedTime(request.sponsorTimes[i].segment[0]) + " " + chrome.i18n.getMessage("to") + " " + getFormattedTime(request.sponsorTimes[i].segment[1]) + extraInfo;
let votingButtons = document.createElement("div");
@@ -448,7 +448,7 @@ async function runThePopup(messageListener?: MessageListener) {
let timeMessage = getFormattedTime(sponsorTimes[i].segment[s]);
//if this is an end time
if (s == 1) {
- timeMessage = " to " + timeMessage;
+ timeMessage = " " + chrome.i18n.getMessage("to") + " " + timeMessage;
} else if (i > 0) {
//add commas if necessary
timeMessage = ", " + timeMessage;
@@ -505,7 +505,7 @@ async function runThePopup(messageListener?: MessageListener) {
let timeMessage = getFormattedTime(sponsorTimes[i][s]);
//if this is an end time
if (s == 1) {
- timeMessage = " to " + timeMessage;
+ timeMessage = " " + chrome.i18n.getMessage("to") + " " + timeMessage;
} else if (i > 0) {
//add commas if necessary
timeMessage = timeMessage;
@@ -614,7 +614,7 @@ async function runThePopup(messageListener?: MessageListener) {
colonText.innerText = ":";
let toText = document.createElement("span");
- toText.innerText = " to ";
+ toText.innerText = " " + chrome.i18n.getMessage("to") + " ";
//remove all children to replace
while (sponsorTimeContainer.firstChild) {