aboutsummaryrefslogtreecommitdiff
path: root/src/app/lang.js
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2024-06-09 18:15:45 +0200
committer0neGal <mail@0negal.com>2024-06-09 18:23:29 +0200
commit760031c079ce830755ba4fea029e149f4140e00b (patch)
tree8dbb9f8d5bb4e19cdaffb40e8a091b457a597769 /src/app/lang.js
parent1c1e8fb730b9974cd9b8060499773b0f37ff28d2 (diff)
parent04b0e9fcea6c60257d7bc68994103eacb340a82b (diff)
downloadViper-760031c079ce830755ba4fea029e149f4140e00b.tar.gz
Viper-760031c079ce830755ba4fea029e149f4140e00b.zip
Merge branch 'main' into linux-launch-v2linux-launch-v2
Diffstat (limited to 'src/app/lang.js')
-rw-r--r--src/app/lang.js19
1 files changed, 0 insertions, 19 deletions
diff --git a/src/app/lang.js b/src/app/lang.js
deleted file mode 100644
index f1c31d3..0000000
--- a/src/app/lang.js
+++ /dev/null
@@ -1,19 +0,0 @@
-// Replaces strings in the HTML will language strings properly. This
-// searches for %%<string>%%, aka, %%gui.exit%% will be replaced with
-// "Exit", this works without issues.
-function setlang() {
- // Finds %%%% strings
- html = document.body.innerHTML.split("%%");
-
- for (let i = 0; i < html.length; i++) {
- // Simply checks to make sure it is actually a lang string.
- if (html[i][0] != " " &&
- html[i][html[i].length - 1] != " ") {
- // Replaces it with it's string
- html[i] = lang(html[i]);
- }
- }
-
- // Replaces the original HTML with the translated/replaced HTML
- document.body.innerHTML = html.join("");
-}