Fix missed references to thisObj.tt instead of .translate() · ableplayer/ableplayer@5d220ff · GitHub
Skip to content

Commit 5d220ff

Browse files
committed
Fix missed references to thisObj.tt instead of .translate()
1 parent b53dc78 commit 5d220ff

4 files changed

Lines changed: 12 additions & 12 deletions

File tree

‎scripts/buildplayer.js‎

Lines changed: 5 additions & 5 deletions

‎scripts/control.js‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -725,10 +725,10 @@ function addControlFunctions(AblePlayer) {
725725
// Don't change play/pause button display while using the seek bar (or if YouTube stopped)
726726
if (!thisObj.seekBar.tracking && !thisObj.stoppingYouTube) {
727727
if (currentState === 'paused' || currentState === 'stopped' || currentState === 'ended') {
728-
thisObj.$playpauseButton.attr('aria-label',thisObj.tt.play);
728+
thisObj.$playpauseButton.attr('aria-label', this.translate( 'play', 'Play' ) );
729729
thisObj.getIcon( thisObj.$playpauseButton, 'play' );
730730
} else {
731-
thisObj.$playpauseButton.attr('aria-label',thisObj.tt.pause);
731+
thisObj.$playpauseButton.attr('aria-label', this.translate( 'pause', 'Pause' ) );
732732
thisObj.getIcon( thisObj.$playpauseButton, 'pause' );
733733
}
734734
}

‎scripts/preference.js‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -588,13 +588,13 @@
588588
changedPref = $(this).attr('name');
589589
if (changedPref === 'prefAltKey') {
590590
changedSpan = '.able-modkey-alt';
591-
changedText = thisObj.tt.prefAltKey + ' + ';
591+
changedText = thisObj.translate( 'prefAltKey', 'Alt' ) + ' + ';
592592
} else if (changedPref === 'prefCtrlKey') {
593593
changedSpan = '.able-modkey-ctrl';
594-
changedText = thisObj.tt.prefCtrlKey + ' + ';
594+
changedText = thisObj.translate( 'prefCtrlKey', 'Control' ) + ' + ';
595595
} else if (changedPref === 'prefShiftKey') {
596596
changedSpan = '.able-modkey-shift';
597-
changedText = thisObj.tt.prefShiftKey + ' + ';
597+
changedText = thisObj.translate( 'prefShiftKey', 'Shift' ) + ' + ';
598598
}
599599
if ( changedPref !== 'prefNoKeyShortcuts' ) {
600600
if ($(this).is(':checked')) {
@@ -747,7 +747,7 @@
747747
$prefsDiv,
748748
this.$prefsButton,
749749
formTitle,
750-
thisObj.tt.closeButtonLabel
750+
thisObj.translate( 'closeButtonLabel', 'Close' )
751751
);
752752

753753
// Add save and cancel buttons.

‎scripts/transcript.js‎

Lines changed: 1 addition & 1 deletion

0 commit comments

Comments
 (0)