diff options
author | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-09-09 00:32:04 +0400 |
---|---|---|
committer | Victor Dubiniuk <victor.dubiniuk@gmail.com> | 2012-09-09 00:32:28 +0400 |
commit | 1068708470e626983490c50fea5ed6678a408335 (patch) | |
tree | 1832fb0311d8791b2de961be15e2403928a5612b /files_videoviewer | |
parent | 51f7ad83ef5b8cf627542846c793e1bb4d68764b (diff) |
Add tooltips translation
Diffstat (limited to 'files_videoviewer')
-rw-r--r-- | files_videoviewer/js/mep-extra.js | 9 | ||||
-rw-r--r-- | files_videoviewer/js/viewer.js | 4 |
2 files changed, 12 insertions, 1 deletions
diff --git a/files_videoviewer/js/mep-extra.js b/files_videoviewer/js/mep-extra.js new file mode 100644 index 000000000..763fbefcb --- /dev/null +++ b/files_videoviewer/js/mep-extra.js @@ -0,0 +1,9 @@ +(function($) { + $.extend(mejs.MepDefaults, { + playpauseText: t('files_videoviewer', 'Play/Pause'), + stopText: t('files_videoviewer', 'Stop'), + muteText: t('files_videoviewer', 'Mute Toggle'), + fullscreenText: t('files_videoviewer', 'Fullscreen'), + tracksText: t('files_videoviewer', 'Captions/Subtitles') + }); +})(mejs.$);
\ No newline at end of file diff --git a/files_videoviewer/js/viewer.js b/files_videoviewer/js/viewer.js index 344dd5bca..fe0226fd0 100644 --- a/files_videoviewer/js/viewer.js +++ b/files_videoviewer/js/viewer.js @@ -56,7 +56,9 @@ var videoViewer = { videoViewer.location = videoViewer.getMediaUrl(file); videoViewer.mime = FileActions.getCurrentMimeType(); - OC.addScript('files_videoviewer','mediaelement-and-player', videoViewer.showPlayer); + OC.addScript('files_videoviewer','mediaelement-and-player', function(){ + OC.addScript('files_videoviewer','mep-extra', videoViewer.showPlayer); + }); }, showPlayer : function() { videoViewer.UI.show(); |