Minor language stuff

This commit is contained in:
Anthony Stirling
2023-05-13 13:26:28 +01:00
parent 9009317f83
commit a2926b8fe9
9 changed files with 25 additions and 10 deletions

View File

@@ -543,7 +543,7 @@ document.addEventListener("DOMContentLoaded", function () {
if (fileNames.length === 1) {
$(inputElement).siblings(".custom-file-label").addClass("selected").html(fileNames[0]);
} else if (fileNames.length > 1) {
$(inputElement).siblings(".custom-file-label").addClass("selected").html(fileNames.length + " files selected");
$(inputElement).siblings(".custom-file-label").addClass("selected").html(fileNames.length + " " + [[#{filesSelected}]]);
} else {
$(inputElement).siblings(".custom-file-label").addClass("selected").html([[#{pdfPrompt}]]);
}

View File

@@ -364,7 +364,7 @@ function compareVersions(version1, version2) {
</div>
</div>
<script>
<script th:inline="javascript">
function updateFavoritesDropdown() {
@@ -396,7 +396,7 @@ function compareVersions(version1, version2) {
if(!hasFavorites){
var defaultItem = document.createElement('a');
defaultItem.className = 'dropdown-item';
defaultItem.textContent = 'No favourites added';
defaultItem.textContent = [[#{noFavourites}]]
dropdown.appendChild(defaultItem);
}
}
@@ -442,7 +442,7 @@ function compareVersions(version1, version2) {
<div class="form-group">
<div class="custom-control custom-checkbox">
<input type="checkbox" class="custom-control-input" id="boredWaiting">
<label class="custom-control-label" for="boredWaiting">Bored Waiting? :)</label>
<label class="custom-control-label" for="boredWaiting" th:text="#{bored}"></label>
</div>
</div>
</div>