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