Blame view

vendor/yiisoft/yii2/i18n/MissingTranslationEvent.php 1.08 KB
abf1649b   andryeyev   Чистая установка ...
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
28
29
30
31
32
33
34
35
36
37
38
  <?php
  /**
   * @link http://www.yiiframework.com/
   * @copyright Copyright (c) 2008 Yii Software LLC
   * @license http://www.yiiframework.com/license/
   */
  
  namespace yii\i18n;
  
  use yii\base\Event;
  
  /**
   * MissingTranslationEvent represents the parameter for the [[MessageSource::EVENT_MISSING_TRANSLATION]] event.
   *
   * @author Qiang Xue <qiang.xue@gmail.com>
   * @since 2.0
   */
  class MissingTranslationEvent extends Event
  {
      /**
       * @var string the message to be translated. An event handler may use this to provide a fallback translation
       * and set [[translatedMessage]] if possible.
       */
      public $message;
      /**
       * @var string the translated message. An event handler may overwrite this property
       * with a translated version of [[message]] if possible. If not set (null), it means the message is not translated.
       */
      public $translatedMessage;
      /**
       * @var string the category that the message belongs to
       */
      public $category;
      /**
       * @var string the language ID (e.g. en-US) that the message is to be translated to
       */
      public $language;
  }