Translate extension for MediaWiki
 
Loading...
Searching...
No Matches
AggregateGroupLanguageMismatchException.php
1<?php
2declare( strict_types = 1 );
3
4namespace MediaWiki\Extension\Translate\MessageGroupProcessing;
5
6use MediaWiki\Exception\LocalizedException;
7use MediaWiki\Message\Message;
8
15class AggregateGroupLanguageMismatchException extends LocalizedException {
20 public function __construct( array $invalidGroupIds, string $aggregateGroupLanguageCode ) {
21 parent::__construct(
22 [
23 'translate-error-aggregategroup-source-language-mismatch',
24 Message::listParam( $invalidGroupIds ),
25 $aggregateGroupLanguageCode,
26 count( $invalidGroupIds )
27 ]
28 );
29 }
30}
Exception thrown when message group languages do not match the aggregate message group's language.