MissingTranslationEvent.php 784 B

123456789101112131415161718192021222324252627282930313233
  1. <?php
  2. /**
  3. * @link http://www.yiiframework.com/
  4. * @copyright Copyright (c) 2008 Yii Software LLC
  5. * @license http://www.yiiframework.com/license/
  6. */
  7. namespace yii\i18n;
  8. use yii\base\Event;
  9. /**
  10. * MissingTranslationEvent represents the parameter for the [[MessageSource::EVENT_MISSING_TRANSLATION]] event.
  11. *
  12. * @author Qiang Xue <[email protected]>
  13. * @since 2.0
  14. */
  15. class MissingTranslationEvent extends Event
  16. {
  17. /**
  18. * @var string the message to be translated. An event handler may overwrite this property
  19. * with a translated version if possible.
  20. */
  21. public $message;
  22. /**
  23. * @var string the category that the message belongs to
  24. */
  25. public $category;
  26. /**
  27. * @var string the language ID (e.g. en-US) that the message is to be translated to
  28. */
  29. public $language;
  30. }