Fix translation for news pages.

pull/301/head
Daniel Scalzi 2023-10-05 15:05:19 -04:00
parent 6b5d1cbb2a
commit 45a24314b1
No known key found for this signature in database
GPG Key ID: 9E3E2AFE45328AA5
4 changed files with 3 additions and 6 deletions

View File

@ -33,9 +33,6 @@ exports.queryEJS = function(id, placeHolders){
}
exports.setupLanguage = function(){
// Load a Placeholder Language File for texts that do not require translation
exports.loadLanguage('_placeholder')
// Load Language Files
exports.loadLanguage('en_US')
// Uncomment this when translations are ready

View File

@ -953,7 +953,7 @@ function displayArticle(articleObject, index){
text.style.display = text.style.display === 'block' ? 'none' : 'block'
}
})
newsNavigationStatus.innerHTML = index + ' of ' + newsArr.length
newsNavigationStatus.innerHTML = Lang.query('ejs.landing.newsNavigationStatus', {currentPage: index, totalPages: newsArr.length})
newsContent.setAttribute('article', index-1)
}

View File

@ -13,7 +13,7 @@ launchButton = "PLAY"
launchButtonPlaceholder = "• No Server Selected"
launchProgressLabel = "0%"
launchDetails = "Please wait.."
newsNavigationStatus = "1 of 1"
newsNavigationStatus = "{currentPage} of {totalPages}"
newsErrorLoadSpan = "Checking for News.."
newsErrorFailedSpan = "Failed to Load News"
newsErrorRetryButton = "Try Again"

View File

@ -184,7 +184,7 @@
<polyline class="arrowLine" points="0.71 13.26 12.56 1.41 24.16 13.02"/>
</svg>
</button>
<span id="newsNavigationStatus"><%- lang('landing.newsNavigationStatus') %></span>
<span id="newsNavigationStatus"><%- lang('landing.newsNavigationStatus', { currentPage: 1, totalPages: 1 }) %></span>
<button id="newsNavigateRight">
<svg id="newsNavigationRightSVG" viewBox="0 0 24.87 13.97">
<defs>