summaryrefslogtreecommitdiff
path: root/www/wiki/extensions/Translate/translationaids/MessageDefinitionAid.php
blob: 0cb536cf0f1bc78e57d5af5290bcec2b8062b59c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
<?php
/**
 * Translation aid provider.
 *
 * @file
 * @author Niklas Laxström
 * @copyright Copyright © 2012-2013, Niklas Laxström
 * @license GPL-2.0+
 */

/**
 * Translation aid which gives the message definition.
 * This usually matches the content of the page ns:key/source_language.
 *
 * @ingroup TranslationAids
 * @since 2013-01-01
 */
class MessageDefinitionAid extends TranslationAid {
	public function getData() {
		$language = $this->group->getSourceLanguage();

		return array(
			'value' => $this->getDefinition(),
			'language' => $language,
		);
	}
}