diff --git a/static/app-strings.json b/static/app-strings.json index 5677923c5..c4b55d561 100644 --- a/static/app-strings.json +++ b/static/app-strings.json @@ -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", diff --git a/ui/component/viewers/videoViewer/internal/plugins/videojs-http-streaming--override/playlist-selectors.js b/ui/component/viewers/videoViewer/internal/plugins/videojs-http-streaming--override/playlist-selectors.js index 106f62a02..6f374e8e3 100755 --- a/ui/component/viewers/videoViewer/internal/plugins/videojs-http-streaming--override/playlist-selectors.js +++ b/ui/component/viewers/videoViewer/internal/plugins/videojs-http-streaming--override/playlist-selectors.js @@ -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 %quality% --[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]--')}${qualityLabel}`; } - return selectedBandwidth; };