From 1e43da5a7c0f65449b9faf4c46fd310017e9ded5 Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Mon, 7 Jun 2021 01:24:17 +0300 Subject: [PATCH 1/2] some i18n fixes and update --- web/src/components/CloseServer.jsx | 2 +- web/src/components/Settings.jsx | 2 ++ web/src/locales/en/translation.json | 14 ++++++++------ web/src/locales/ru/translation.json | 10 ++++++---- 4 files changed, 17 insertions(+), 11 deletions(-) diff --git a/web/src/components/CloseServer.jsx b/web/src/components/CloseServer.jsx index 90da371..004f29a 100644 --- a/web/src/components/CloseServer.jsx +++ b/web/src/components/CloseServer.jsx @@ -36,7 +36,7 @@ export default function CloseServer() { color='primary' autoFocus > - {t('OK')} + {t('TurnOff')} diff --git a/web/src/components/Settings.jsx b/web/src/components/Settings.jsx index 2a2a5ef..f54a944 100644 --- a/web/src/components/Settings.jsx +++ b/web/src/components/Settings.jsx @@ -144,6 +144,8 @@ export default function SettingsDialog() { label={t('UseDisk')} />
+ {t('UseDiskDesc')} +
diff --git a/web/src/locales/en/translation.json b/web/src/locales/en/translation.json index d51c053..3ecdd84 100644 --- a/web/src/locales/en/translation.json +++ b/web/src/locales/en/translation.json @@ -6,12 +6,13 @@ "AddMagnetOrLink": "Add magnet or link to torrent file", "AddRetrackers": "Add retrackers", "Buffer": "Preload Buffer / Cache", - "BufferNote": "Enable "Preload Buffer" in settings to see cache loading progress", + "BufferNote": "Enable “Preload Buffer” in settings to see cache loading progress", "CacheSize": "Cache Size (Megabytes)", "Cancel": "Cancel", + "ChooseLanguage": "Russian", "Close": "Close", + "CloseServer?": "Do you want to turn off server?", "CloseServer": "Close Server", - "CloseServer?": "Close server?", "ConnectionsLimit": "Connections Limit", "CopyHash": "Copy Hash", "CopyLink": "Copy link", @@ -23,7 +24,7 @@ "DHT": "DHT (Distributed Hash Table)", "DhtConnectionLimit": "DHT Connection Limit", "Donate": "Donate", - "DontAddRetrackers": "Don't add retrackers", + "DontAddRetrackers": "Don`t add retrackers", "DownloadPlaylist": "Download Playlist", "DownloadRateLimit": "Download Rate Limit (Kilobytes)", "DownloadSpeed": "Download speed", @@ -78,13 +79,14 @@ "TorrentsSavePath": "Torrents Save Path", "TorrentState": "Torrent State", "TorrentStatus": "Torrent Status", + "TurnOff": "Turn Off", "Upload": "Upload (not recommended to disable)", "UploadFile": "Upload File", "UploadRateLimit": "Upload Rate Limit (Kilobytes)", "UploadSpeed": "Upload speed", "UPNP": "UPnP (Universal Plug and Play)", - "UseDisk": "Use Disk", + "UseDisk": "Use Disk for Cache", + "UseDiskDesc": "Better use external media on flash-based devices", "UTP": "μTP (Micro Transport Protocol)", - "Viewed": "Viewed", - "ChooseLanguage": "Russian" + "Viewed": "Viewed" } \ No newline at end of file diff --git a/web/src/locales/ru/translation.json b/web/src/locales/ru/translation.json index f0b3d6a..f351917 100644 --- a/web/src/locales/ru/translation.json +++ b/web/src/locales/ru/translation.json @@ -9,9 +9,10 @@ "BufferNote": "Включите «Наполнять кеш перед началом воспроизведения» в настройках для показа заполнения кеша", "CacheSize": "Размер кеша (Мегабайты)", "Cancel": "Отмена", + "ChooseLanguage": "Английский", "Close": "Закрыть", + "CloseServer?": "Хотите выключить сервер?", "CloseServer": "Выкл. сервер", - "CloseServer?": "Остановить сервер?", "ConnectionsLimit": "Торрент-соединения (рек. 20-25)", "CopyHash": "Скопировать хеш", "CopyLink": "Копировать", @@ -78,13 +79,14 @@ "TorrentsSavePath": "Путь хранения кеша", "TorrentState": "Данные торрента", "TorrentStatus": "Состояние", + "TurnOff": "Выключить", "Upload": "Отдача (не рекомендуется отключать)", "UploadFile": "Загрузить файл", "UploadRateLimit": "Ограничение скорости отдачи (Килобайты)", "UploadSpeed": "Скорость отдачи", "UPNP": "UPnP (Universal Plug and Play)", - "UseDisk": "Использовать кеш на диске", + "UseDisk": "Использовать диск для кеша", + "UseDiskDesc": "Рекомендуется использовать внешние носители на устройствах с flash-памятью", "UTP": "μTP (Micro Transport Protocol)", - "Viewed": "Просм.", - "ChooseLanguage": "Английский" + "Viewed": "Просм." } \ No newline at end of file From fd34a822901ea2cc1b60dbc801657112c9c2618f Mon Sep 17 00:00:00 2001 From: nikk gitanes Date: Mon, 7 Jun 2021 04:15:19 +0300 Subject: [PATCH 2/2] Update translation.json --- web/src/locales/en/translation.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/src/locales/en/translation.json b/web/src/locales/en/translation.json index 3ecdd84..18eb1ce 100644 --- a/web/src/locales/en/translation.json +++ b/web/src/locales/en/translation.json @@ -12,7 +12,7 @@ "ChooseLanguage": "Russian", "Close": "Close", "CloseServer?": "Do you want to turn off server?", - "CloseServer": "Close Server", + "CloseServer": "Turn Off", "ConnectionsLimit": "Connections Limit", "CopyHash": "Copy Hash", "CopyLink": "Copy link",