Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
johndyer committed May 30, 2013
2 parents d04b137 + 61ca792 commit 86c782b
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 10 deletions.
12 changes: 11 additions & 1 deletion src/js/me-i18n.js
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
* @see: i18n.methods.t()
*/
i18n.locale.getLanguage = function () {
return {
return mejs.locale || {
"language" : navigator.language
};
};
Expand Down Expand Up @@ -192,3 +192,13 @@
// end i18n
exports.i18n = i18n;
}(document, mejs));

;(function(exports, undefined) {

"use strict";

if ( mejs.locale.language && mejs.locale.strings ) {
exports[mejs.locale.language] = mejs.locale.strings;
}

}(mejs.i18n.locale.strings));
10 changes: 5 additions & 5 deletions src/js/mep-feature-contextmenu.js
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,9 @@ $.extend(mejs.MepDefaults,
return null;

if (player.isFullScreen) {
return "Turn off Fullscreen";
return mejs.i18n.t('Turn off Fullscreen');
} else {
return "Go Fullscreen";
return mejs.i18n.t('Go Fullscreen');
}
},
click: function(player) {
Expand All @@ -35,9 +35,9 @@ $.extend(mejs.MepDefaults,
{
render: function(player) {
if (player.media.muted) {
return "Unmute";
return mejs.i18n.t('Unmute');
} else {
return "Mute";
return mejs.i18n.t('Mute');
}
},
click: function(player) {
Expand All @@ -56,7 +56,7 @@ $.extend(mejs.MepDefaults,
// demo of simple download video
{
render: function(player) {
return "Download Video";
return mejs.i18n.t('Download Video');
},
click: function(player) {
window.location.href = player.media.currentSrc;
Expand Down
2 changes: 1 addition & 1 deletion src/js/mep-feature-playpause.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function($) {

$.extend(mejs.MepDefaults, {
playpauseText: 'Play/Pause'
playpauseText: mejs.i18n.t('Play/Pause')
});

// PLAY/pause BUTTON
Expand Down
4 changes: 2 additions & 2 deletions src/js/mep-feature-tracks.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// this will automatically turn on a <track>
startLanguage: '',

tracksText: 'Captions/Subtitles',
tracksText: mejs.i18n.t('Captions/Subtitles'),

// option to remove the [cc] button when no <track kind="subtitles"> are present
hideCaptionsButtonWhenEmpty: true,
Expand Down Expand Up @@ -43,7 +43,7 @@
'<ul>'+
'<li>'+
'<input type="radio" name="' + player.id + '_captions" id="' + player.id + '_captions_none" value="none" checked="checked" />' +
'<label for="' + player.id + '_captions_none">None</label>'+
'<label for="' + player.id + '_captions_none">' + mejs.i18n.t('None') +'</label>'+
'</li>' +
'</ul>'+
'</div>'+
Expand Down
2 changes: 1 addition & 1 deletion src/js/mep-feature-volume.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
(function($) {

$.extend(mejs.MepDefaults, {
muteText: 'Mute Toggle',
muteText: mejs.i18n.t('Mute Toggle'),
hideVolumeOnTouchDevices: true,

audioVolume: 'horizontal',
Expand Down

0 comments on commit 86c782b

Please sign in to comment.