yii2

Форк
1
/
MissingTranslationEvent.php 
38 строк · 1.1 Кб
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

8
namespace yii\i18n;
9

10
use 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
 */
18
class 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
     */
24
    public $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
     */
29
    public $translatedMessage;
30
    /**
31
     * @var string the category that the message belongs to
32
     */
33
    public $category;
34
    /**
35
     * @var string the language ID (e.g. en-US) that the message is to be translated to
36
     */
37
    public $language;
38
}
39

Использование cookies

Мы используем файлы cookie в соответствии с Политикой конфиденциальности и Политикой использования cookies.

Нажимая кнопку «Принимаю», Вы даете АО «СберТех» согласие на обработку Ваших персональных данных в целях совершенствования нашего веб-сайта и Сервиса GitVerse, а также повышения удобства их использования.

Запретить использование cookies Вы можете самостоятельно в настройках Вашего браузера.