Player: fix i18n for 'Auto'
This commit is contained in:
parent
ea3d8e01ef
commit
a2f15b8348
2 changed files with 2 additions and 3 deletions
|
@ -1681,7 +1681,6 @@
|
|||
"Open Chromecast menu": "Open Chromecast menu",
|
||||
"Auto": "Auto",
|
||||
"Auto --[Video quality. Short form]--": "Auto",
|
||||
"Auto %quality% --[Video quality popup. Long form.]--": "Auto %quality%",
|
||||
"Orig (%quality%) --[Video quality popup. Short form.]--": "Orig (%quality%)",
|
||||
"Original (%quality%) --[Video quality popup. Long form.]--": "Original (%quality%)",
|
||||
"Original --[Video quality button. Abbreviate to fit space.]--": "Original",
|
||||
|
|
|
@ -206,9 +206,9 @@ export const lastBandwidthSelector = function() {
|
|||
const originalHeight = hlsQualitySelector.config.originalHeight;
|
||||
|
||||
if (hlsQualitySelector?.getCurrentQuality() === 'auto') {
|
||||
hlsQualitySelector._qualityButton.menuButton_.$('.vjs-icon-placeholder').innerHTML = __('Auto <span>%quality%</span> --[Video quality popup. Long form.]--', { quality: selectedBandwidth.attributes.RESOLUTION.height + 'p' });
|
||||
const qualityLabel = selectedBandwidth.attributes.RESOLUTION.height + 'p';
|
||||
hlsQualitySelector._qualityButton.menuButton_.$('.vjs-icon-placeholder').innerHTML = `${__('Auto --[Video quality. Short form]--')}<span>${qualityLabel}</span>`;
|
||||
}
|
||||
|
||||
|
||||
return selectedBandwidth;
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue