47 public function __construct( $msg, $width, $height, ...$args ) {
48 $this->msg =
wfMessage( $msg )->params( $args );
49 $this->width = (int)
$width;
55 public function toHtml( $options = [] ) {
56 return "<div class=\"MediaTransformError\" style=\"" .
57 "width: {$this->width}px; height: {$this->height}px; display:inline-block;\">" .
63 return $this->msg->text();
67 return $this->msg->escaped();
wfMessage( $key,... $params)
This is the function for getting translated interface messages.