mirror of
https://github.com/dscalzi/HeliosLauncher.git
synced 2024-12-22 11:42:14 -08:00
Fix translation for news pages.
This commit is contained in:
parent
6b5d1cbb2a
commit
45a24314b1
@ -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
|
||||
|
@ -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)
|
||||
}
|
||||
|
||||
|
@ -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"
|
||||
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user