diff options
author | Chocobozzz <me@florianbigard.com> | 2021-10-21 11:01:10 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2021-10-21 11:01:10 +0200 |
commit | efcadd3d14d1c434b9bff97003c3e68a9f39fdfc (patch) | |
tree | a26cb9405483d1e6fcf9eea7b7249e98cf19c192 | |
parent | fe228901ce3d1af01c674aaf474cb6563ad9bc12 (diff) | |
download | PeerTube-efcadd3d14d1c434b9bff97003c3e68a9f39fdfc.tar.gz PeerTube-efcadd3d14d1c434b9bff97003c3e68a9f39fdfc.tar.zst PeerTube-efcadd3d14d1c434b9bff97003c3e68a9f39fdfc.zip |
Fix "Off" player string localization
-rw-r--r-- | client/src/assets/player/videojs-components/settings-menu-item.ts | 2 | ||||
-rwxr-xr-x | scripts/i18n/create-custom-files.ts | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/client/src/assets/player/videojs-components/settings-menu-item.ts b/client/src/assets/player/videojs-components/settings-menu-item.ts index 48fed0fd9..d27163373 100644 --- a/client/src/assets/player/videojs-components/settings-menu-item.ts +++ b/client/src/assets/player/videojs-components/settings-menu-item.ts | |||
@@ -310,7 +310,7 @@ class SettingsMenuItem extends MenuItem { | |||
310 | break | 310 | break |
311 | } | 311 | } |
312 | 312 | ||
313 | this.settingsSubMenuValueEl_.innerHTML = subMenuItemUntyped.options_.label | 313 | this.settingsSubMenuValueEl_.innerHTML = this.player().localize(subMenuItemUntyped.options_.label) |
314 | } | 314 | } |
315 | } | 315 | } |
316 | } | 316 | } |
diff --git a/scripts/i18n/create-custom-files.ts b/scripts/i18n/create-custom-files.ts index b26e92d93..b363a1bdc 100755 --- a/scripts/i18n/create-custom-files.ts +++ b/scripts/i18n/create-custom-files.ts | |||
@@ -51,6 +51,7 @@ const playerKeys = { | |||
51 | 'Buffer Progress': 'Buffer Progress', | 51 | 'Buffer Progress': 'Buffer Progress', |
52 | 'Buffer State': 'Buffer State', | 52 | 'Buffer State': 'Buffer State', |
53 | 'Live Latency': 'Live Latency', | 53 | 'Live Latency': 'Live Latency', |
54 | ' off': ' off', | ||
54 | 'Player mode': 'Player mode' | 55 | 'Player mode': 'Player mode' |
55 | } | 56 | } |
56 | Object.assign(playerKeys, videojs) | 57 | Object.assign(playerKeys, videojs) |