adjusted translations to include variables

switch netcore to dotnetversion
This commit is contained in:
Stevie Robinson 2023-07-18 20:52:40 +02:00
parent 20b81e8c44
commit 2f7a405fdd
3 changed files with 15 additions and 4 deletions

View File

@ -77,7 +77,9 @@ class LogFiles extends Component {
<PageContentBody>
<Alert>
<div>
{translate('LogFilesLocation')}: {location}
{translate('LogFilesLocation', {
location
})}
</div>
{

View File

@ -42,14 +42,21 @@ class About extends Component {
packageVersion &&
<DescriptionListItem
title={translate('PackageVersion')}
data={(packageAuthor ? <span> {packageVersion} {translate('by')} <InlineMarkdown data={packageAuthor} /> </span> : packageVersion)}
data={(packageAuthor ?
<InlineMarkdown data={translate('PackageVersionInfo', {
packageVersion,
packageAuthor
})}
/> :
packageVersion
)}
/>
}
{
isNetCore &&
<DescriptionListItem
title={translate('NetCore')}
title={translate('DotNetVersion')}
data={`Yes (${runtimeVersion})`}
/>
}

View File

@ -73,6 +73,7 @@
"Docker": "Docker",
"DockerUpdater": "Update the docker container to receive the update",
"Donations": "Donations",
"DotNetVersion": ".NET",
"Download": "Download",
"DownloadClientCheckNoneAvailableHealthCheckMessage": "No download client is available",
"DownloadClientCheckUnableToCommunicateWithHealthCheckMessage": "Unable to communicate with {0}.",
@ -148,7 +149,7 @@
"LibraryImport": "Library Import",
"Location": "Location",
"LogFiles": "Log Files",
"LogFilesLocation": "Log files are located in",
"LogFilesLocation": "Log files are located in: {location}",
"Logs": "Logs",
"MaintenanceRelease": "Maintenance Release: bug fixes and other improvements. See Github Commit History for more details",
"ManageClients": "Manage Clients",
@ -192,6 +193,7 @@
"Options": "Options",
"OriginalLanguage": "Original Language",
"PackageVersion": "Package Version",
"PackageVersionInfo": "{packageVersion} by {packageAuthor}",
"PartialSeason": "Partial Season",
"Path": "Path",
"PreviousAiring": "Previous Airing",