18 public function __construct( $modelId = MessageBundleContent::CONTENT_MODEL_ID ) {
19 parent::__construct( $modelId, [ CONTENT_FORMAT_JSON ] );
22 protected function getContentClass():
string {
23 return MessageBundleContent::class;
26 public function makeEmptyContent(): Content {
27 $class = $this->getContentClass();
28 return new $class(
'{}' );
31 public function validateSave( Content $content, ValidationParams $validationParams ) {
37 return StatusValue::newGood();
40 return StatusValue::newFatal(
'translate-messagebundle-validation-error', wfMessage( $e ) );