String translator using the locale module.
Full featured translation system using locale's string storage and database caching.
Hierarchy
- class \Drupal\locale\LocaleTranslation implements DestructableInterface, TranslatorInterface
File
- core/modules/locale/src/LocaleTranslation.php, line 20
Namespace
Drupal\locale
Members
| Name | Modifiers | Type | Description |
|---|---|---|---|
| LocaleTranslation::$cache | protected | property | The cache backend that should be used. |
| LocaleTranslation::$configFactory | protected | property | The configuration factory. |
| LocaleTranslation::$languageManager | protected | property | The language manager. |
| LocaleTranslation::$lock | protected | property | The lock backend that should be used. |
| LocaleTranslation::$requestStack | protected | property | The request stack. |
| LocaleTranslation::$storage | protected | property | Storage for strings. |
| LocaleTranslation::$translateEnglish | protected | property | The translate english configuration value. |
| LocaleTranslation::$translations | protected | property | Cached translations. |
| LocaleTranslation::canTranslateEnglish | protected | function | Gets translate english configuration value. |
| LocaleTranslation::destruct | public | function | Performs destruct operations. Overrides DestructableInterface::destruct |
| LocaleTranslation::getStringTranslation | public | function | Retrieves English string to given language. Overrides TranslatorInterface::getStringTranslation |
| LocaleTranslation::reset | public | function | Resets translation cache. Overrides TranslatorInterface::reset |
| LocaleTranslation::__construct | public | function | Constructs a translator using a string storage. |
Please login to continue.