Skip to content

Commit

Permalink
Add localisation for Trashbin
Browse files Browse the repository at this point in the history
  • Loading branch information
Maingron committed Sep 1, 2024
1 parent 4efbb80 commit 54b42c7
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
<body class="clock">
<main id="main">
<div class="edittools">
<button class="trashbin" ondblclick="window.alert('Resetting Clock, click Ok to proceed, close tab/window to abort'); reset();" title="Doubleclick to reset to default settings">🗑</button>
<button class="trashbin" ondblclick="window.alert(lang.alert__resetting_clock ?? 'Resetting Clock, click Ok to proceed, close tab/window to abort'); reset();" title="Doubleclick to reset to default settings">🗑</button>
<button class="addblock" onclick="addBlock('block-fullclock')" title="Add new block">+</button> <!-- Save opposite value of config.edit (true -> false)-->
<button class="editpen" onclick="config.edit = !config.edit; saveConfig();window.location.reload()" title="Switch Edit/View mode"></button> <!-- Save opposite value of config.edit (true -> false)-->
</div>
Expand Down
8 changes: 5 additions & 3 deletions js/lang.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ if(config.lang == "de") {
"Font color": "Schriftfarbe",
"Scaling": "Skalierung",
"Font Size (rem)": "Schriftgröße (rem)",
"Block Type": "Block Typ"
"Block Type": "Block Typ",
"alert__resetting_clock": "Resetting Clock, click Ok to proceed, close tab/window to abort"
}
} else {
var lang = { // English / Fallback
Expand All @@ -72,6 +73,7 @@ if(config.lang == "de") {
"Font color": "Font color",
"Scaling": "Scaling",
"Font Size (rem)": "Font Size (rem)",
"Block Type": "Block Type"
"Block Type": "Block Type",
"alert__resetting_clock": "Uhr wird zurückgesetzt. Ok klicken, um fortzufahren, Tab/Fenster schließen, um abzubrechen"
}
}
}

0 comments on commit 54b42c7

Please sign in to comment.