diff options
author | Chocobozzz <me@florianbigard.com> | 2018-06-06 14:23:40 +0200 |
---|---|---|
committer | Chocobozzz <me@florianbigard.com> | 2018-06-06 16:48:40 +0200 |
commit | e945b184a0f29b47c33bbd05578f3493ca9c8e6c (patch) | |
tree | 46c821006d170e6e28658d978e313761adfaf55a /client/src/assets/player/resolution-menu-button.ts | |
parent | 550a562ceca45ea78d6f7054024c8d3a6b89c30c (diff) | |
download | PeerTube-e945b184a0f29b47c33bbd05578f3493ca9c8e6c.tar.gz PeerTube-e945b184a0f29b47c33bbd05578f3493ca9c8e6c.tar.zst PeerTube-e945b184a0f29b47c33bbd05578f3493ca9c8e6c.zip |
Localize player
Diffstat (limited to 'client/src/assets/player/resolution-menu-button.ts')
-rw-r--r-- | client/src/assets/player/resolution-menu-button.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/client/src/assets/player/resolution-menu-button.ts b/client/src/assets/player/resolution-menu-button.ts index 2efc8de69..d317a5efc 100644 --- a/client/src/assets/player/resolution-menu-button.ts +++ b/client/src/assets/player/resolution-menu-button.ts | |||
@@ -8,10 +8,7 @@ class ResolutionMenuButton extends MenuButton { | |||
8 | label: HTMLElement | 8 | label: HTMLElement |
9 | 9 | ||
10 | constructor (player: videojs.Player, options) { | 10 | constructor (player: videojs.Player, options) { |
11 | options.label = 'Quality' | ||
12 | super(player, options) | 11 | super(player, options) |
13 | |||
14 | this.controlText_ = 'Quality' | ||
15 | this.player = player | 12 | this.player = player |
16 | 13 | ||
17 | player.peertube().on('videoFileUpdate', () => this.updateLabel()) | 14 | player.peertube().on('videoFileUpdate', () => this.updateLabel()) |
@@ -51,7 +48,7 @@ class ResolutionMenuButton extends MenuButton { | |||
51 | this.player_, | 48 | this.player_, |
52 | { | 49 | { |
53 | id: -1, | 50 | id: -1, |
54 | label: 'Auto', | 51 | label: this.player_.localize('Auto'), |
55 | src: null | 52 | src: null |
56 | } | 53 | } |
57 | )) | 54 | )) |
@@ -77,4 +74,6 @@ class ResolutionMenuButton extends MenuButton { | |||
77 | return this.player_.peertube().getCurrentResolutionLabel() | 74 | return this.player_.peertube().getCurrentResolutionLabel() |
78 | } | 75 | } |
79 | } | 76 | } |
77 | ResolutionMenuButton.prototype.controlText_ = 'Quality' | ||
78 | |||
80 | MenuButton.registerComponent('ResolutionMenuButton', ResolutionMenuButton) | 79 | MenuButton.registerComponent('ResolutionMenuButton', ResolutionMenuButton) |