diff --git a/src/i18n/de-DE.json b/src/i18n/de-DE.json index 620f68d8..ebf97557 100644 --- a/src/i18n/de-DE.json +++ b/src/i18n/de-DE.json @@ -101,5 +101,7 @@ "Swap between side by side and minimized video": "Wechsel zwischen Video nebeneinander und minimiert", "Swap the position of the videos": "Wechsel der Videopositionen", "Dual stream 50%": "Dual-Stream 50%", - "Two videos 50%": "Zwei Videos 50%" + "Two videos 50%": "Zwei Videos 50%", + "play": "spielen", + "pause": "pause" } diff --git a/src/i18n/es-ES.json b/src/i18n/es-ES.json index 3f8578fe..d2d8c959 100644 --- a/src/i18n/es-ES.json +++ b/src/i18n/es-ES.json @@ -101,5 +101,7 @@ "Swap between side by side and minimized video": "Cambiar la disposición de los dos vídeos entre minimizado y del mismo tamaño", "Swap the position of the videos": "Intercambiar la posición de los vídeos", "Dual stream 50%": "Dos streams al 50%", - "Two videos 50%": "Dos streams al 50%" + "Two videos 50%": "Dos streams al 50%", + "play": "reproducir", + "pause": "pausar" } \ No newline at end of file diff --git a/src/js/plugins/es.upv.paella.playPauseButton.js b/src/js/plugins/es.upv.paella.playPauseButton.js index 62721627..9d000f99 100644 --- a/src/js/plugins/es.upv.paella.playPauseButton.js +++ b/src/js/plugins/es.upv.paella.playPauseButton.js @@ -27,27 +27,27 @@ export default class PlayButtonPlugin extends ButtonPlugin { const shortcutKey = this.config.ariaKeyshortcuts || "k"; bindEvent(this.player, Events.PLAY, () => { this.icon = pauseIcon; - this._button.ariaKeyshortcuts = this.config.ariaKeyshortcuts || shortcutKey ; - this._button.ariaLabel = this.config.ariaLabelPause || titlePause; - this._button.title = this.config.ariaLabelPause || titlePause; + this.button.ariaKeyshortcuts = shortcutKey; + this.button.ariaLabel = titlePause; + this.button.title = titlePause; }); bindEvent(this.player, Events.PAUSE, () => { this.icon = playIcon; - this._button.ariaKeyshortcuts = this.config.ariaKeyshortcuts || shortcutKey ; - this._button.ariaLabel = this.config.ariaLabelPause || titlePlay ; - this._button.title = this.config.ariaLabelPause || titlePlay; + this.button.ariaKeyshortcuts = shortcutKey; + this.button.ariaLabel = titlePlay; + this.button.title = this.config.ariaLabelPause || titlePlay; }); bindEvent(this.player, Events.ENDED, () => { this.icon = replayIcon; - this._button.ariaKeyshortcuts = this.config.ariaKeyshortcuts || shortcutKey ; - this._button.ariaLabel = this.config.ariaLabelPause || titlePlay ; - this._button.title = this.config.ariaLabelPause || titlePlay; + this.button.ariaKeyshortcuts = shortcutKey; + this.button.ariaLabel = titlePlay; + this.button.title = this.config.ariaLabelPause || titlePlay; }); bindEvent(this.player, Events.STOP, () => { this.icon = playIcon; - this._button.ariaKeyshortcuts = this.config.ariaKeyshortcuts || shortcutKey ; - this._button.ariaLabel = this.config.ariaLabelPause || titlePlay ; - this._button.title = this.config.ariaLabelPause || titlePlay; + this.button.ariaKeyshortcuts = shortcutKey; + this.button.ariaLabel = titlePlay; + this.button.title = this.config.ariaLabelPause || titlePlay; }); }