diff --git a/resources/i18n/pt.json b/resources/i18n/pt.json index ffa8c691..e37af877 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 cc435feb..11001b25 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 bb0c55c1..f9d6031a 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 (
- + @@ -94,7 +95,7 @@ const ActivityPanel = () => { - Total Folders Scanned: + {translate('activity.totalScanned')}: {scanStatus.count} @@ -103,12 +104,12 @@ const ActivityPanel = () => { - + - + diff --git a/ui/src/layout/UserMenu.js b/ui/src/layout/UserMenu.js index b3439053..f8340498 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: , }