Skip to content

Commit 4cf30e4

Browse files
author
Cari Spruiell
committed
MAGETWO-44459: Check javascript function calls and labels are translatable
- correct attempt to call __() on variables.
1 parent 2c3e6ff commit 4cf30e4

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/code/Magento/ProductVideo/view/adminhtml/web/js/get-video-information.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -63,14 +63,14 @@ require([
6363
break;
6464
default:
6565
throw {
66-
name: 'Video Error',
67-
message: 'Unknown video type',
66+
name: $.mage.__('Video Error'),
67+
message: $.mage.__('Unknown video type'),
6868

6969
/**
7070
* Return string
7171
*/
7272
toString: function () {
73-
return $.mage.__(this.name + ': ' + this.message);
73+
return this.name + this.message;
7474
}
7575
};
7676
}

0 commit comments

Comments
 (0)