From 5f8327c507b1f4eaaa5d4d4fa9a831e78eb7d4f4 Mon Sep 17 00:00:00 2001 From: Chocobozzz Date: Fri, 4 Dec 2020 16:37:21 +0100 Subject: [PATCH] Update i18n with new player keys --- .../src/assets/player/videojs-components/p2p-info-button.ts | 4 ++-- scripts/i18n/create-custom-files.ts | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/client/src/assets/player/videojs-components/p2p-info-button.ts b/client/src/assets/player/videojs-components/p2p-info-button.ts index b1f7cd751..81f9544f4 100644 --- a/client/src/assets/player/videojs-components/p2p-info-button.ts +++ b/client/src/assets/player/videojs-components/p2p-info-button.ts @@ -91,8 +91,8 @@ class P2pInfoButton extends Button { const downloadedFromPeers = bytes(p2pStats.downloaded).join(' ') subDivWebtorrent.title += - '* ' + this.player().localize('From the server: ') + downloadedFromServer + '\n' + - '* ' + this.player().localize('From peers: ') + downloadedFromPeers + '\n' + ' * ' + this.player().localize('From servers: ') + downloadedFromServer + '\n' + + ' * ' + this.player().localize('From peers: ') + downloadedFromPeers + '\n' } subDivWebtorrent.title += this.player().localize('Total uploaded: ') + totalUploaded.join(' ') diff --git a/scripts/i18n/create-custom-files.ts b/scripts/i18n/create-custom-files.ts index f33903ecd..d4d5b44f0 100755 --- a/scripts/i18n/create-custom-files.ts +++ b/scripts/i18n/create-custom-files.ts @@ -33,6 +33,8 @@ const playerKeys = { 'Copy magnet URI': 'Copy magnet URI', 'Total downloaded: ': 'Total downloaded: ', 'Total uploaded: ': 'Total uploaded: ', + 'From servers: ': 'From servers: ', + 'From peers: ': 'From peers: ', 'Normal mode': 'Normal mode', 'Theater mode': 'Theater mode' }