work on translation system

This commit is contained in:
2022-04-06 22:17:55 +02:00
parent 3b99939ef3
commit 0b3df97975
9 changed files with 268 additions and 33 deletions

View File

@ -48,25 +48,25 @@
<li class="nav-item">
<a href="#homeP" class="nav-link active" aria-current="page" id="PageIndex">
<i class="bi bi-house-door"></i>
Home
<%= it.lang.sidebar.home %>
</a>
</li>
<li>
<a href="#settings" class="nav-link text-white" id="PageSettings">
<i class="bi bi-gear"></i>
Settings
<%= it.lang.sidebar.settings %>
</a>
</li>
<li>
<a href="#debug" class="nav-link text-white" id="PageDebug">
<i class="bi bi-bug"></i>
Debug
<%= it.lang.sidebar.debug %>
</a>
</li>
<li>
<a href="#about" class="nav-link text-white" id="PageAbout">
<i class="bi bi-info-circle"></i>
About
<%= it.lang.sidebar.about %>
</a>
</li>
</ul>
@ -109,12 +109,12 @@
<page id="homeP" class="pageC flex-fill overflow-auto">
<h1>Home page</h1>
<h1><%= it.lang.titles.home %></h1>
<div class="container">
<div class="row">
<div class="col">
<h3 class="d-flex">Preview <span class="helperTip" data-placement="right" title="A preview of what is currently visible on the countdown view" data-toggle="tooltip">
<h3 class="d-flex"><%= it.lang.titles.preview %> <span class="helperTip" data-placement="right" title="<%= it.lang.hints.previewHint %>" data-toggle="tooltip">
<i class="bi bi-question-circle-fill"></i>
</span>
<div class="ms-auto">
@ -136,23 +136,23 @@
</iframe>
</div>
<div class="col">
<h3>Mode <span class="helperTip" data-placement="right"
<h3><%= it.lang.titles.mode %> <span class="helperTip" data-placement="right"
title="Select what to show on the countdown view" data-toggle="tooltip">
<i class="bi bi-question-circle-fill"></i>
</span></h3>
<div class="btn-group" role="group" aria-label="Basic radio toggle button group">
<input type="radio" class="btn-check" name="btnradio" id="btnradio1" autocomplete="off"
checked>
<label class="btn btn-outline-primary" for="btnradio1">Timer</label>
<label class="btn btn-outline-primary" for="btnradio1"><%= it.lang.others.timer %></label>
<input type="radio" class="btn-check" name="btnradio" id="btnradio2" autocomplete="off">
<label class="btn btn-outline-primary" for="btnradio2">Clock</label>
<label class="btn btn-outline-primary" for="btnradio2"><%= it.lang.others.clock %></label>
<input type="radio" class="btn-check" name="btnradio" id="btnradio3" autocomplete="off">
<label class="btn btn-outline-primary" for="btnradio3">Black</label>
<label class="btn btn-outline-primary" for="btnradio3"><%= it.lang.others.black %></label>
<input type="radio" class="btn-check" name="btnradio" id="btnradio4" autocomplete="off">
<label class="btn btn-outline-primary" for="btnradio4">Testimage</label>
<label class="btn btn-outline-primary" for="btnradio4"><%= it.lang.others.test %></label>
</div>
<br>
<br>
@ -183,12 +183,12 @@
<br>
<br>
<br>
<h3>Messaging <span class="helperTip" data-placement="right"
title="Shows a given message on the timer view" data-toggle="tooltip">
<h3><%= it.lang.titles.messaging %> <span class="helperTip" data-placement="right"
title="<%= it.lang.hints.messagingHint %>" data-toggle="tooltip">
<i class="bi bi-question-circle-fill"></i>
</span></h3>
<input type="text" id="messageContent" class="form-control" placeholder="Message here"
<input type="text" id="messageContent" class="form-control" placeholder="<%= it.lang.placeholders.msgHere %>"
style="width: 50%;">
<br>
@ -201,7 +201,7 @@
</div>
</div>
<br><br><br>
<h3>Timer</h3>
<h3><%= it.lang.titles.timer %></h3>
<div class="container">
@ -229,15 +229,12 @@
</div>
</div>
<h5>
Countdown to time
<%= it.lang.titles.countdownToTime %>
</h5>
<div class="row justify-content-center flex-nowrap d-flex" >
<input id="datetimetester" class="form-control input-sm" style="width: 20%;">
<button class="btn btn-outline-primary goTimeGoalCountdown ms-2" style="width: 5%;"><i
class="bi bi-check2-circle"></i></button>
</input>
</div>
@ -250,17 +247,17 @@
<page id="settings" class="pageC hidden flex-fill overflow-auto">
<h1>Settings</h1>
<label for="showTime">Show clock on Timer:</label>
<h1><%= it.lang.sidebar.settings %></h1>
<label for="showTime"><%= it.lang.labels.clockOnTimer %></label>
<input type="checkbox" name="showTime" id="showTime"><br>
<label for="showMillis">Show Milliseconds on Timer:</label>
<label for="showMillis"><%= it.lang.labels.showMillis %></label>
<input type="checkbox" name="showMillis" id="showMillis"><br>
<label for="progBarShow">Show progressbar:</label>
<label for="progBarShow"><%= it.lang.labels.showProgress %></label>
<input type="checkbox" name="progBarShow" id="progBarShow"><br>
<details>
<summary>Progressbar Colors</summary>
<summary><%= it.lang.labels.progbarColors %></summary>
<p>
<div id="table" class="table-editable">
<span class="table-add float-right mb-3 mr-2"><a href="#!" class="text-success"><i
@ -268,9 +265,9 @@
<table class="table table-bordered table-responsive-md table-striped text-center" id="colors1">
<thead>
<tr>
<th class="text-center">Time</th>
<th class="text-center">Color</th>
<th class="text-center">Remove</th>
<th class="text-center"><%= it.lang.labels.time %></th>
<th class="text-center"><%= it.lang.labels.color %></th>
<th class="text-center"><%= it.lang.labels.remove %></th>
</tr>
</thead>
</tbody>
@ -291,9 +288,9 @@
<table class="table table-bordered table-responsive-md table-striped text-center" id="colors2">
<thead>
<tr>
<th class="text-center">Time</th>
<th class="text-center">Color</th>
<th class="text-center">Remove</th>
<th class="text-center"><%= it.lang.labels.time %></th>
<th class="text-center"><%= it.lang.labels.color %></th>
<th class="text-center"><%= it.lang.labels.remove %></th>
</tr>
</thead>
</tbody>