-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
bfa04fe
commit 1668cbb
Showing
4 changed files
with
41 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,30 @@ | ||
function getId(id){ | ||
return document.getElementById(id) | ||
function getId(id) { | ||
return document.getElementById(id); | ||
} | ||
function querySelectorAll(element){ | ||
return document.querySelectorAll(element) | ||
function querySelectorAll(element) { | ||
return document.querySelectorAll(element); | ||
} | ||
var i18n = new(require('../translations/i18n')) | ||
var i18n = new (require("../translations/i18n"))(); | ||
|
||
// Translating texts | ||
getId("title").textContent = i18n.__("Preferences") | ||
getId("back").textContent = i18n.__("Homepage") | ||
getId("dlText").textContent = i18n.__("Download location") | ||
getId("clText").innerHTML = i18n.__("Current download location - ") | ||
getId("selectLocation").textContent = i18n.__("Select Download Location") | ||
getId("transparentText").textContent = i18n.__("Enable transparent dark mode(only Linux, needs relaunch)") | ||
getId("preferences").textContent = i18n.__("Preferences") | ||
getId("selectLn").textContent = i18n.__("Select Language (Requires relaunch)") | ||
getId("browserInfo").title = i18n.__("This option lets you download restricted content. You will get errors if cookies are not there") | ||
getId("browserTxt").textContent = i18n.__("Select browser to use cookies from") | ||
getId("none").textContent = i18n.__("None") | ||
querySelectorAll(".autoTxt").forEach(item => { | ||
item.textContent = i18n.__("Automatic") | ||
getId("title").textContent = i18n.__("Preferences"); | ||
getId("back").textContent = i18n.__("Homepage"); | ||
getId("dlText").textContent = i18n.__("Download location"); | ||
getId("clText").innerHTML = i18n.__("Current download location - "); | ||
getId("selectLocation").textContent = i18n.__("Select Download Location"); | ||
getId("transparentText").textContent = i18n.__( | ||
"Enable transparent dark mode(only Linux, needs relaunch)" | ||
); | ||
getId("preferences").textContent = i18n.__("Preferences"); | ||
getId("selectLn").textContent = i18n.__("Select Language (Requires relaunch)"); | ||
getId("browserInfo").title = i18n.__( | ||
"This option lets you download restricted content. You will get errors if cookies are not there" | ||
); | ||
getId("browserTxt").textContent = i18n.__("Select browser to use cookies from"); | ||
getId("none").textContent = i18n.__("None"); | ||
querySelectorAll(".autoTxt").forEach((item) => { | ||
item.textContent = i18n.__("Automatic"); | ||
}); | ||
getId("preferredAudioTxt").textContent = i18n.__("Preferred audio format") | ||
getId("preferredVideoTxt").textContent = i18n.__("Preferred video quality") | ||
getId("preferredAudioTxt").textContent = i18n.__("Preferred audio format"); | ||
getId("preferredVideoTxt").textContent = i18n.__("Preferred video quality"); | ||
getId("restart").textContent = i18n.__("Restart app"); |