yii2
1<?php
2/**
3* @link https://www.yiiframework.com/
4* @copyright Copyright (c) 2008 Yii Software LLC
5* @license https://www.yiiframework.com/license/
6*/
7
8namespace yii\i18n;
9
10use yii\base\Event;
11
12/**
13* MissingTranslationEvent represents the parameter for the [[MessageSource::EVENT_MISSING_TRANSLATION]] event.
14*
15* @author Qiang Xue <qiang.xue@gmail.com>
16* @since 2.0
17*/
18class MissingTranslationEvent extends Event
19{
20/**
21* @var string the message to be translated. An event handler may use this to provide a fallback translation
22* and set [[translatedMessage]] if possible.
23*/
24public $message;
25/**
26* @var string|null the translated message. An event handler may overwrite this property
27* with a translated version of [[message]] if possible. If not set (null), it means the message is not translated.
28*/
29public $translatedMessage;
30/**
31* @var string the category that the message belongs to
32*/
33public $category;
34/**
35* @var string the language ID (e.g. en-US) that the message is to be translated to
36*/
37public $language;
38}
39