diff --git src/js/me-i18n.js src/js/me-i18n.js
index 5efe64f..fd2725a 100644
|
|
|
58 | 58 | * @see: i18n.methods.t() |
59 | 59 | */ |
60 | 60 | i18n.locale.getLanguage = function () { |
61 | | return { |
| 61 | return mejs.locale || { |
62 | 62 | "language" : navigator.language |
63 | 63 | }; |
64 | 64 | }; |
… |
… |
|
192 | 192 | // end i18n |
193 | 193 | exports.i18n = i18n; |
194 | 194 | }(document, mejs)); |
| 195 | |
| 196 | ;(function(exports, undefined) { |
| 197 | |
| 198 | "use strict"; |
| 199 | |
| 200 | if ( mejs.locale.language && mejs.locale.strings ) { |
| 201 | exports[mejs.locale.language] = mejs.locale.strings; |
| 202 | } |
| 203 | |
| 204 | }(mejs.i18n.locale.strings)); |
diff --git src/js/mep-feature-contextmenu.js src/js/mep-feature-contextmenu.js
index f15d7a6..572dc9f 100644
|
|
$.extend(mejs.MepDefaults, |
17 | 17 | return null; |
18 | 18 | |
19 | 19 | if (player.isFullScreen) { |
20 | | return "Turn off Fullscreen"; |
| 20 | return mejs.i18n.t('Turn off Fullscreen'); |
21 | 21 | } else { |
22 | | return "Go Fullscreen"; |
| 22 | return mejs.i18n.t('Go Fullscreen'); |
23 | 23 | } |
24 | 24 | }, |
25 | 25 | click: function(player) { |
… |
… |
$.extend(mejs.MepDefaults, |
35 | 35 | { |
36 | 36 | render: function(player) { |
37 | 37 | if (player.media.muted) { |
38 | | return "Unmute"; |
| 38 | return mejs.i18n.t('Unmute'); |
39 | 39 | } else { |
40 | | return "Mute"; |
| 40 | return mejs.i18n.t('Mute'); |
41 | 41 | } |
42 | 42 | }, |
43 | 43 | click: function(player) { |
… |
… |
$.extend(mejs.MepDefaults, |
56 | 56 | // demo of simple download video |
57 | 57 | { |
58 | 58 | render: function(player) { |
59 | | return "Download Video"; |
| 59 | return mejs.i18n.t('Download Video'); |
60 | 60 | }, |
61 | 61 | click: function(player) { |
62 | 62 | window.location.href = player.media.currentSrc; |
diff --git src/js/mep-feature-playpause.js src/js/mep-feature-playpause.js
index 1d88e50..140ac52 100644
|
|
|
1 | 1 | (function($) { |
2 | 2 | |
3 | 3 | $.extend(mejs.MepDefaults, { |
4 | | playpauseText: 'Play/Pause' |
| 4 | playpauseText: mejs.i18n.t('Play/Pause') |
5 | 5 | }); |
6 | 6 | |
7 | 7 | // PLAY/pause BUTTON |
diff --git src/js/mep-feature-tracks.js src/js/mep-feature-tracks.js
index f3d3ce8..2cfe8c2 100644
|
|
|
5 | 5 | // this will automatically turn on a <track> |
6 | 6 | startLanguage: '', |
7 | 7 | |
8 | | tracksText: 'Captions/Subtitles', |
| 8 | tracksText: mejs.i18n.t('Captions/Subtitles'), |
9 | 9 | |
10 | 10 | // option to remove the [cc] button when no <track kind="subtitles"> are present |
11 | 11 | hideCaptionsButtonWhenEmpty: true, |
… |
… |
|
43 | 43 | '<ul>'+ |
44 | 44 | '<li>'+ |
45 | 45 | '<input type="radio" name="' + player.id + '_captions" id="' + player.id + '_captions_none" value="none" checked="checked" />' + |
46 | | '<label for="' + player.id + '_captions_none">None</label>'+ |
| 46 | '<label for="' + player.id + '_captions_none">' + mejs.i18n.t('None') +'</label>'+ |
47 | 47 | '</li>' + |
48 | 48 | '</ul>'+ |
49 | 49 | '</div>'+ |
diff --git src/js/mep-feature-volume.js src/js/mep-feature-volume.js
index bcf2c24..b65abbc 100644
|
|
|
1 | 1 | (function($) { |
2 | 2 | |
3 | 3 | $.extend(mejs.MepDefaults, { |
4 | | muteText: 'Mute Toggle', |
| 4 | muteText: mejs.i18n.t('Mute Toggle'), |
5 | 5 | hideVolumeOnTouchDevices: true, |
6 | 6 | |
7 | 7 | audioVolume: 'horizontal', |