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