From 645c6fc4dcadb91622ca29fdba86419374288a3b Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Sun, 6 Jun 2021 02:35:05 +0300 Subject: [PATCH] translate buffer note in details --- web/src/components/DialogTorrentDetailsContent/index.jsx | 5 ++--- web/src/locales/en/translation.json | 3 ++- web/src/locales/ru/translation.json | 3 ++- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/web/src/components/DialogTorrentDetailsContent/index.jsx b/web/src/components/DialogTorrentDetailsContent/index.jsx index 9eec5ae..c1aaa98 100644 --- a/web/src/components/DialogTorrentDetailsContent/index.jsx +++ b/web/src/components/DialogTorrentDetailsContent/index.jsx @@ -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 }) { {t('Buffer')} - {!settings?.PreloadBuffer && ( - Enable "Preload Buffer" in settings to change buffer size - )} + {!settings?.PreloadBuffer && ({t('BufferNote')})}