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}

View File

@@ -4,7 +4,8 @@
"AddFromLink": "Add from Link",
"AddMagnetOrLink": "Add magnet or link to torrent file",
"AddRetrackers": "Add retrackers",
"Buffer": "Buffer",
"Buffer": "Preload Buffer / Cache",
"BufferNote": "Enable &quot;Preload Buffer&quot; in settings to see cache loading progress",
"CacheSize": "Cache Size (Megabytes)",
"Cancel": "Cancel",
"Close": "Close",

View File

@@ -4,7 +4,8 @@
"AddFromLink": "Добавить",
"AddMagnetOrLink": "Добавьте magnet или ссылку на торрент",
"AddRetrackers": "Добавлять",
"Buffer": "Буфер",
"Buffer": "Предзагрузка / Кеш",
"BufferNote": "Включите «Наполнять кеш перед началом воспроизведения» в настройках для показа заполнения кеша",
"CacheSize": "Размер кеша (Мегабайты)",
"Cancel": "Отмена",
"Close": "Закрыть",