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> <PageContentBody>
<Alert> <Alert>
<div> <div>
{translate('LogFilesLocation')}: {location} {translate('LogFilesLocation', {
location
})}
</div> </div>
{ {

View File

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

View File

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