translate buffer note in details

This commit is contained in:
nikk gitanes
2021-06-06 02:35:05 +03:00
parent 42befed45d
commit 645c6fc4dc
3 changed files with 6 additions and 5 deletions

View File

@@ -103,6 +103,7 @@ export default function DialogTorrentDetailsContent({ closeDialog, torrent }) {
}, [hash])
const bufferSize = settings?.PreloadBuffer ? Capacity : 33554432 // Default is 32mb if PreloadBuffer is false
// const bufferSize = Capacity
const getTitle = value => {
const torrentParsedName = value && ptt.parse(value)
@@ -176,9 +177,7 @@ export default function DialogTorrentDetailsContent({ closeDialog, torrent }) {
<CacheSection>
<SectionHeader>
<SectionTitle mb={20}>{t('Buffer')}</SectionTitle>
{!settings?.PreloadBuffer && (
<SectionSubName>Enable &quot;Preload Buffer&quot; in settings to change buffer size</SectionSubName>
)}
{!settings?.PreloadBuffer && (<SectionSubName>{t('BufferNote')}</SectionSubName>)}
<LoadingProgress
value={Filled}
fullAmount={bufferSize}