Skip to content

🎧 Your Personal Streaming Service

New translated terms

Deluandf86a8153ed9
diff --git a/resources/i18n/pt.json b/resources/i18n/pt.json
index ffa8c691d..e37af877b 100644
--- a/resources/i18n/pt.json
+++ b/resources/i18n/pt.json
@@ -19,7 +19,8 @@
"updatedAt": "Últ. Atualização",
"bitRate": "Bitrate",
"discSubtitle": "Sub-título do disco",
- "starred": "Favorita"
+ "starred": "Favorita",
+ "comment": "Comentário"
},
"actions": {
"addToQueue": "Adicionar à fila",
@@ -42,7 +43,8 @@
"genre": "Gênero",
"compilation": "Coletânea",
"year": "Ano",
- "updatedAt": "Últ. Atualização"
+ "updatedAt": "Últ. Atualização",
+ "comment": "Comentário"
},
"actions": {
"playAll": "Tocar",
@@ -285,6 +287,12 @@
"featureRequests": "Solicitar funcionalidade"
}
},
+ "activity": {
+ "title": "Atividade",
+ "totalScanned": "Total de pastas encontradas",
+ "quickScan": "Scan rápido",
+ "fullScan": "Scan completo"
+ },
"player": {
"playListsText": "Fila de Execução",
"openText": "Abrir",
@@ -310,4 +318,4 @@
"shufflePlay": "Aleatório"
}
}
-}
\ No newline at end of file
+}
diff --git a/ui/src/i18n/en.json b/ui/src/i18n/en.json
index cc435feb5..11001b253 100644
--- a/ui/src/i18n/en.json
+++ b/ui/src/i18n/en.json
@@ -19,7 +19,8 @@
"updatedAt": "Updated at",
"bitRate": "Bit rate",
"discSubtitle": "Disc Subtitle",
- "starred": "Starred"
+ "starred": "Starred",
+ "comment": "Comment"
},
"actions": {
"addToQueue": "Play Later",
@@ -42,7 +43,8 @@
"genre": "Genre",
"compilation": "Compilation",
"year": "Year",
- "updatedAt": "Updated at"
+ "updatedAt": "Updated at",
+ "comment": "Comment"
},
"actions": {
"playAll": "Play",
@@ -285,6 +287,12 @@
"featureRequests": "Feature requests"
}
},
+ "activity": {
+ "title": "Activity",
+ "totalScanned": "Total Folders Scanned",
+ "quickScan": "Quick Scan",
+ "fullScan": "Full Scan"
+ },
"player": {
"playListsText": "Play Queue",
"openText": "Open",
@@ -310,4 +318,4 @@
"shufflePlay": "Shuffle"
}
}
-}
\ No newline at end of file
+}
diff --git a/ui/src/layout/ActivityPanel.js b/ui/src/layout/ActivityPanel.js
index bb0c55c16..f9d6031ad 100644
--- a/ui/src/layout/ActivityPanel.js
+++ b/ui/src/layout/ActivityPanel.js
@@ -1,6 +1,6 @@
import React, { useState, useEffect } from 'react'
import { useDispatch, useSelector } from 'react-redux'
-import { fetchUtils } from 'react-admin'
+import { fetchUtils, useTranslate } from 'react-admin'
import {
Popover,
Badge,
@@ -42,6 +42,7 @@ const useStyles = makeStyles((theme) => ({
const ActivityPanel = () => {
const classes = useStyles()
+ const translate = useTranslate()
const [anchorEl, setAnchorEl] = useState(null)
const open = Boolean(anchorEl)
const scanStatus = useSelector((state) => state.activity.scanStatus)
@@ -66,7 +67,7 @@ const ActivityPanel = () => {
return (
<div className={classes.wrapper}>
- <Tooltip title={'Activity'}>
+ <Tooltip title={translate('activity.title')}>
<IconButton className={classes.button} onClick={handleMenuOpen}>
<Badge badgeContent={null} color="secondary">
<FiActivity size={'20'} />
@@ -94,7 +95,7 @@ const ActivityPanel = () => {
<CardContent>
<Box display="flex" className={classes.counterStatus}>
<Box component="span" flex={2}>
- Total Folders Scanned:
+ {translate('activity.totalScanned')}:
</Box>
<Box component="span" flex={1}>
{scanStatus.count}
@@ -103,12 +104,12 @@ const ActivityPanel = () => {
</CardContent>
<Divider />
<CardActions>
- <Tooltip title={'Quick Scan'}>
+ <Tooltip title={translate('activity.quickScan')}>
<IconButton onClick={triggerScan(false)}>
<VscSync />
</IconButton>
</Tooltip>
- <Tooltip title={'Full Scan'}>
+ <Tooltip title={translate('activity.fullScan')}>
<IconButton onClick={triggerScan(true)}>
<GiMagnifyingGlass />
</IconButton>
diff --git a/ui/src/layout/UserMenu.js b/ui/src/layout/UserMenu.js
index b34390533..f83404987 100644
--- a/ui/src/layout/UserMenu.js
+++ b/ui/src/layout/UserMenu.js
@@ -113,7 +113,7 @@ UserMenu.propTypes = {
}
UserMenu.defaultProps = {
- label: 'ra.auth.user_menu',
+ label: 'menu.settings',
icon: <AccountCircle />,
}