Italian translation fix

This commit is contained in:
jokob-sk
2024-07-12 21:59:34 +10:00
parent d6125ef4e2
commit 129ae92141
3 changed files with 4 additions and 4 deletions

View File

@@ -609,7 +609,6 @@ function reverseTransformers(val, transformers) {
break; break;
case "base64": case "base64":
// Implement base64 decoding logic // Implement base64 decoding logic
console.log("💌");
if (isBase64(val)) { if (isBase64(val)) {
val = atob(val); val = atob(val);
} }
@@ -801,7 +800,7 @@ function genListWithInputSet(options, valuesArray, targetField, transformers, pl
if(labelName != '❌None') if(labelName != '❌None')
{ {
labelName = reverseTransformers(labelName, transformers) labelName = reverseTransformers(labelName, transformers)
console.log(transformers); // console.log(transformers);
} }
listHtml += `<li ${selected}> listHtml += `<li ${selected}>

View File

@@ -416,7 +416,7 @@ if ($ENABLED_DARKMODE === True) {
// Generate work-in-progress icons // Generate work-in-progress icons
function workInProgress() { function workInProgress() {
if($(".work-in-progress").html().trim() == "") if($(".work-in-progress").length > 0 && $(".work-in-progress").html().trim() == "")
{ {
$(".work-in-progress").append(` $(".work-in-progress").append(`
<a href="https://github.com/jokob-sk/NetAlertX/issues" target="_blank"> <a href="https://github.com/jokob-sk/NetAlertX/issues" target="_blank">

View File

@@ -103,7 +103,8 @@ function lang($key)
} }
} }
return $result; // HTML encode the result before returning
return str_replace("'", '&#39;', $result);
} }