Commit 1208908b by louyihua

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.
parent 926ce567
...@@ -148,8 +148,7 @@ function () { ...@@ -148,8 +148,7 @@ function () {
this.el = $('#' + el); this.el = $('#' + el);
if (this.el.length === 0) { if (this.el.length === 0) {
errorMessage = 'VideoPlayer: Element corresponding to ' + errorMessage = gettext('VideoPlayer: Element corresponding to the given selector does not found.');
'the given selector does not found.';
if (window.console && console.log) { if (window.console && console.log) {
console.log(errorMessage); console.log(errorMessage);
} else { } else {
...@@ -216,9 +215,8 @@ function () { ...@@ -216,9 +215,8 @@ function () {
// video element via jquery (http://bugs.jquery.com/ticket/9174) we // video element via jquery (http://bugs.jquery.com/ticket/9174) we
// create it using native JS. // create it using native JS.
this.video = document.createElement('video'); this.video = document.createElement('video');
errorMessage = gettext('This browser cannot play .mp4, .ogg, or ' + errorMessage = gettext('This browser cannot play .mp4, .ogg, or .webm files.')
'.webm files. Try using a different browser, such as Google ' + + gettext('Try using a different browser, such as Google Chrome.');
'Chrome.');
this.video.innerHTML = _.values(sourceStr).join('') + errorMessage; this.video.innerHTML = _.values(sourceStr).join('') + errorMessage;
// Get the jQuery object, and set the player state to UNSTARTED. // Get the jQuery object, and set the player state to UNSTARTED.
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment