New translated terms

This commit is contained in:
Deluan 2020-11-13 12:51:32 -05:00
parent b38be69b14
commit df86a8153e
4 changed files with 29 additions and 12 deletions

View File

@ -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"
}
}
}
}

View File

@ -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"
}
}
}
}

View File

@ -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>

View File

@ -113,7 +113,7 @@ UserMenu.propTypes = {
}
UserMenu.defaultProps = {
label: 'ra.auth.user_menu',
label: 'menu.settings',
icon: <AccountCircle />,
}