aboutsummaryrefslogtreecommitdiff
path: root/src/app/index.html
diff options
context:
space:
mode:
author0neGal <mail@0negal.com>2021-12-28 18:03:06 +0100
committer0neGal <mail@0negal.com>2021-12-28 18:03:06 +0100
commitc7d3e7480395fa7e5cb0104c8c8efd87ecb6a1a4 (patch)
treea0c716fd71655f66fa971360a6c483afa92dcbda /src/app/index.html
parentfccb5815decce6257b8f04cb842a40d6d02110e7 (diff)
downloadViper-c7d3e7480395fa7e5cb0104c8c8efd87ecb6a1a4.tar.gz
Viper-c7d3e7480395fa7e5cb0104c8c8efd87ecb6a1a4.zip
attempt at making localization
This may or may not be how we actually do localization in the future, however for now this seems doable. I will obviously need to look at how we detect the language, as I think instead of relying on names like "en-US" just have "en", so we don't have to symlink various editions of English to the same file. But for now this is a draft, and the important part of this is rather how the underlying localization works.
Diffstat (limited to 'src/app/index.html')
-rw-r--r--src/app/index.html15
1 files changed, 8 insertions, 7 deletions
diff --git a/src/app/index.html b/src/app/index.html
index 67d2e5c..1c34360 100644
--- a/src/app/index.html
+++ b/src/app/index.html
@@ -6,22 +6,23 @@
<body>
<div class="lines">
<div class="line">
- <div class="text">Welcome to Viper!</div>
+ <div class="text">%%gui.welcome%%</div>
<div class="buttons">
- <button id="exit" onclick="exit()">Exit</button>
- <button id="update" onclick="update()">Update</button>
- <button id="setpath" onclick="setpath()">Game Path</button>
+ <button id="exit" onclick="exit()">%%gui.exit%%</button>
+ <button id="update" onclick="update()">%%gui.update%%</button>
+ <button id="setpath" onclick="setpath()">%%gui.setpath%%</button>
</div>
</div>
<div class="line">
- <div class="text">Launch:</div>
+ <div class="text">%%gui.launch%%:</div>
<div class="buttons">
- <button id="vanilla" onclick="launchVanilla()">Vanilla</button>
- <button id="northstar" onclick="launch()">Northstar</button>
+ <button id="vanilla" onclick="launchVanilla()">%%gui.launchvanilla%%</button>
+ <button id="northstar" onclick="launch()">%%gui.launchnorthstar%%</button>
</div>
</div>
</div>
<script src="main.js"></script>
+ <script src="lang.js"></script>
</body>
</html>