Extract disc subtitle strings for translation
This commit is contained in:
@@ -6,6 +6,7 @@ import {
|
|||||||
ListToolbar,
|
ListToolbar,
|
||||||
TextField,
|
TextField,
|
||||||
useListController,
|
useListController,
|
||||||
|
useTranslate,
|
||||||
DatagridLoading,
|
DatagridLoading,
|
||||||
DatagridBody,
|
DatagridBody,
|
||||||
DatagridRow,
|
DatagridRow,
|
||||||
@@ -71,6 +72,7 @@ const trackName = (r) => {
|
|||||||
const AlbumSongs = (props) => {
|
const AlbumSongs = (props) => {
|
||||||
const classes = useStyles(props)
|
const classes = useStyles(props)
|
||||||
const classesToolbar = useStylesListToolbar(props)
|
const classesToolbar = useStylesListToolbar(props)
|
||||||
|
const translate = useTranslate()
|
||||||
const dispatch = useDispatch()
|
const dispatch = useDispatch()
|
||||||
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
const isXsmall = useMediaQuery((theme) => theme.breakpoints.down('xs'))
|
||||||
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'))
|
const isDesktop = useMediaQuery((theme) => theme.breakpoints.up('md'))
|
||||||
@@ -100,8 +102,13 @@ const AlbumSongs = (props) => {
|
|||||||
<TableCell colSpan={children.length + 1}>
|
<TableCell colSpan={children.length + 1}>
|
||||||
<Typography variant="h6">
|
<Typography variant="h6">
|
||||||
{record.discSubtitle
|
{record.discSubtitle
|
||||||
? `${record.discSubtitle} (disc ${record.discNumber})`
|
? translate('message.discSubtitle', {
|
||||||
: `Disc ${record.discNumber}`}
|
subtitle: record.discSubtitle,
|
||||||
|
number: record.discNumber,
|
||||||
|
})
|
||||||
|
: translate('message.discWithoutSubtitle', {
|
||||||
|
number: record.discNumber,
|
||||||
|
})}
|
||||||
</Typography>
|
</Typography>
|
||||||
</TableCell>
|
</TableCell>
|
||||||
)}
|
)}
|
||||||
|
|||||||
+5
-2
@@ -17,7 +17,8 @@
|
|||||||
"year": "Year",
|
"year": "Year",
|
||||||
"size": "File size",
|
"size": "File size",
|
||||||
"bitRate": "Bit rate",
|
"bitRate": "Bit rate",
|
||||||
"updatedAt": "Uploaded at"
|
"updatedAt": "Uploaded at",
|
||||||
|
"discSubtitle": "Disc Subtitle"
|
||||||
},
|
},
|
||||||
"actions": {
|
"actions": {
|
||||||
"addToQueue": "Play Later",
|
"addToQueue": "Play Later",
|
||||||
@@ -218,7 +219,9 @@
|
|||||||
"message": {
|
"message": {
|
||||||
"note": "NOTE",
|
"note": "NOTE",
|
||||||
"transcodingDisabled": "Changing the transcoding configuration through the web interface is disabled for security reasons. If you would like to change (edit or add) transcoding options, restart the server with the %{config} configuration option.",
|
"transcodingDisabled": "Changing the transcoding configuration through the web interface is disabled for security reasons. If you would like to change (edit or add) transcoding options, restart the server with the %{config} configuration option.",
|
||||||
"transcodingEnabled": "Navidrome is currently running with %{config}, making it possible to run system commands from the transcoding settings using the web interface. We recommend to disable it for security reasons and only enable it when configuring Transcoding options."
|
"transcodingEnabled": "Navidrome is currently running with %{config}, making it possible to run system commands from the transcoding settings using the web interface. We recommend to disable it for security reasons and only enable it when configuring Transcoding options.",
|
||||||
|
"discSubtitle": "%{subtitle} (disc %{number})",
|
||||||
|
"discWithoutSubtitle": "Disc %{number}"
|
||||||
},
|
},
|
||||||
"menu": {
|
"menu": {
|
||||||
"library": "Library",
|
"library": "Library",
|
||||||
|
|||||||
Reference in New Issue
Block a user