Commit faa17bf1 authored by Booteille's avatar Booteille

Don't use innerHTML anymore

parent a16babdd
...@@ -8,9 +8,13 @@ ...@@ -8,9 +8,13 @@
"description": "This will be in the store. Must be 132 characters or less." "description": "This will be in the store. Must be 132 characters or less."
}, },
"settingsInstancesListHint": { "settingsInstancesListHint": {
"message": "You can find a list of different Invidious instances <a href=\"https://github.com/omarroth/invidious/wiki/Invidious-Instances\" alt=\"Existing instances\">here</a>.", "message": "You can find a list of different Invidious instances",
"description": "Displays a Hint indicating differents instances exist" "description": "Displays a Hint indicating differents instances exist"
}, },
"settingsInstancesListHintURLText": {
"message": "here",
"description": "The text of the URL redirecting to instances list."
},
"settingsFormInstanceLabel": { "settingsFormInstanceLabel": {
"message": "Instance:" "message": "Instance:"
}, },
...@@ -18,7 +22,7 @@ ...@@ -18,7 +22,7 @@
"message": "Activating this option will force the use of Invidious proxy." "message": "Activating this option will force the use of Invidious proxy."
}, },
"settingsFormProxyLabel": { "settingsFormProxyLabel": {
"message": "Force Proxy<sup>?</sup>:" "message": "Force Proxy:"
}, },
"settingsFormAutoplayLabel": { "settingsFormAutoplayLabel": {
"message": "Autoplay:" "message": "Autoplay:"
......
...@@ -8,14 +8,18 @@ ...@@ -8,14 +8,18 @@
"description": "This will be in the store. Must be 132 characters or less." "description": "This will be in the store. Must be 132 characters or less."
}, },
"settingsInstancesListHint": { "settingsInstancesListHint": {
"message": "Vous trouverez une liste des différentes instances <a href=\"https://github.com/omarroth/invidious/wiki/Invidious-Instances\" alt=\"Existing instances\">ici</a>.", "message": "Vous trouverez une liste des différentes instances",
"description": "Displays a Hint indicating differents instances exist" "description": "Displays a Hint indicating differents instances exist"
}, },
"settingsInstancesListHintURLText": {
"message": "ici",
"description": "The text of the URL redirecting to instances list."
},
"settingsFormInstanceLabel": { "settingsFormInstanceLabel": {
"message": "Instance :" "message": "Instance :"
}, },
"settingsFormProxyLabel": { "settingsFormProxyLabel": {
"message": "Forcer l'utilisation du Proxy<sup>?</sup> :" "message": "Forcer l'utilisation du Proxy :"
}, },
"settingsFormProxyTitle": { "settingsFormProxyTitle": {
"message": "Activer cette option forcera l'utilisation du proxy d'Invidious." "message": "Activer cette option forcera l'utilisation du proxy d'Invidious."
......
...@@ -7,7 +7,7 @@ export const insertI18nContentIntoDocument = (document) => { ...@@ -7,7 +7,7 @@ export const insertI18nContentIntoDocument = (document) => {
_.forEach(elements, (el) => { _.forEach(elements, (el) => {
let messageName = el.getAttribute('data-i18n-content'); let messageName = el.getAttribute('data-i18n-content');
el.innerHTML = browser.i18n.getMessage(messageName); el.innerText = browser.i18n.getMessage(messageName);
}); });
}; };
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<body> <body>
<section class="notice notice-info"> <section class="notice notice-info">
<div class="notice-head"> <div class="notice-head">
<span data-i18n-content="settingsInstancesListHint"></span> <span data-i18n-content="settingsInstancesListHint"></span> <a href="https://github.com/omarroth/invidious/wiki/Invidious-Instances" data-i18n-content="settingsInstancesListHintURLText"></a>.
</div> </div>
</section> </section>
<form> <form>
...@@ -18,7 +18,7 @@ ...@@ -18,7 +18,7 @@
<input type="url" id="instance"><br><br> <input type="url" id="instance"><br><br>
<label for="local" data-i18n-title="settingsFormProxyTitle"> <label for="local" data-i18n-title="settingsFormProxyTitle">
<span data-i18n-content="settingsFormProxyLabel"></span> <span data-i18n-content="settingsFormProxyLabel"></span><sup>?</sup>
</label> </label>
<input type="checkbox" name="local" id="local"><br><br> <input type="checkbox" name="local" id="local"><br><br>
......
...@@ -83,7 +83,7 @@ function restoreOptions() { ...@@ -83,7 +83,7 @@ function restoreOptions() {
_.forEach(ISO6391.getAllCodes(), (code) => { _.forEach(ISO6391.getAllCodes(), (code) => {
let option: HTMLOptionElement = document.createElement("OPTION") as HTMLOptionElement; let option: HTMLOptionElement = document.createElement("OPTION") as HTMLOptionElement;
option.value = code; option.value = code;
option.innerHTML = ISO6391.getNativeName(code); option.innerText = ISO6391.getNativeName(code);
element.append(option); element.append(option);
}) })
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment