From 1208908b576cc985a848c4294918ffd0d4f5b676 Mon Sep 17 00:00:00 2001 From: louyihua Date: Tue, 27 May 2014 12:59:23 +0800 Subject: [PATCH] i18n: Fix an i18n string extraction error in 02_html5_video.js Replace a string concation to a single string to prevent the partial extraction of the string. --- common/lib/xmodule/xmodule/js/src/video/02_html5_video.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/common/lib/xmodule/xmodule/js/src/video/02_html5_video.js b/common/lib/xmodule/xmodule/js/src/video/02_html5_video.js index 5dd6f321e4..085e434283 100644 --- a/common/lib/xmodule/xmodule/js/src/video/02_html5_video.js +++ b/common/lib/xmodule/xmodule/js/src/video/02_html5_video.js @@ -148,8 +148,7 @@ function () { this.el = $('#' + el); if (this.el.length === 0) { - errorMessage = 'VideoPlayer: Element corresponding to ' + - 'the given selector does not found.'; + errorMessage = gettext('VideoPlayer: Element corresponding to the given selector does not found.'); if (window.console && console.log) { console.log(errorMessage); } else { @@ -216,9 +215,8 @@ function () { // video element via jquery (http://bugs.jquery.com/ticket/9174) we // create it using native JS. this.video = document.createElement('video'); - errorMessage = gettext('This browser cannot play .mp4, .ogg, or ' + - '.webm files. Try using a different browser, such as Google ' + - 'Chrome.'); + errorMessage = gettext('This browser cannot play .mp4, .ogg, or .webm files.') + + gettext('Try using a different browser, such as Google Chrome.'); this.video.innerHTML = _.values(sourceStr).join('') + errorMessage; // Get the jQuery object, and set the player state to UNSTARTED.