LocaleController::translatePage

public LocaleController::translatePage() Shows the string search screen. Return value array The render array for the string search screen. File core/modules/locale/src/Controller/LocaleController.php, line 44 Class LocaleController Return response for manual check translations. Namespace Drupal\locale\Controller Code public function translatePage() { return array( 'filter' => $this->formBuilder()->getForm('Drupal\locale\Form\TranslateFilterForm'), 'form' => $this

LocaleController::checkTranslation

public LocaleController::checkTranslation() Checks for translation updates and displays the translations status. Manually checks the translation status without the use of cron. Return value \Symfony\Component\HttpFoundation\RedirectResponse A redirection to translations reports page. File core/modules/locale/src/Controller/LocaleController.php, line 20 Class LocaleController Return response for manual check translations. Namespace Drupal\locale\Controller Code public function checkTra

LocaleController

Return response for manual check translations. Hierarchy class \Drupal\Core\Controller\ControllerBase implements ContainerInjectionInterface uses LoggerChannelTrait, LinkGeneratorTrait, RedirectDestinationTrait, UrlGeneratorTrait, StringTranslationTraitclass \Drupal\locale\Controller\LocaleController File core/modules/locale/src/Controller/LocaleController.php, line 10 Namespace Drupal\locale\Controller Members Name Modifiers Type Description ControllerBase::$configFactory

LocaleConfigSubscriber::__construct

public LocaleConfigSubscriber::__construct(ConfigFactoryInterface $config_factory, LocaleConfigManager $locale_config_manager) Constructs a LocaleConfigSubscriber. Parameters \Drupal\Core\Config\ConfigFactoryInterface $config_factory: The configuration factory. \Drupal\locale\LocaleConfigManager $locale_config_manager: The typed configuration manager. File core/modules/locale/src/LocaleConfigSubscriber.php, line 57 Class LocaleConfigSubscriber Updates strings translation when configuratio

LocaleConfigSubscriber::updateLocaleStorage

protected LocaleConfigSubscriber::updateLocaleStorage(StorableConfigBase $config, $langcode, array $reference_config = array()) Update locale storage based on configuration translations. Parameters \Drupal\Core\Config\StorableConfigBase $config: Active configuration or configuration translation override. string $langcode: The language code of $config. array $reference_config: (Optional) Reference configuration to check against if $config was an override. This allows us to update locale keys fo

LocaleConfigSubscriber::saveCustomizedTranslation

protected LocaleConfigSubscriber::saveCustomizedTranslation($name, $source, $context, $new_translation, $langcode) Saves a translation string and marks it as customized. Parameters string $name: The configuration name. string $source: The source string value. string $context: The source string context. string $new_translation: The translation string. string $langcode: The language code of the translation. File core/modules/locale/src/LocaleConfigSubscriber.php, line 208 Class LocaleConfigS

LocaleConfigSubscriber::resetExistingTranslations

protected LocaleConfigSubscriber::resetExistingTranslations($name, $translatable, $reference_config, $langcode) Reset existing locale translations to their source values. Goes through $translatable to reset any existing translations to the source string, so prior translations would not reappear in the configuration. Parameters string $name: The configuration name. array|\Drupal\Core\StringTranslation\TranslatableMarkup $translatable: Either a possibly nested array with TranslatableMarkup objec

LocaleConfigSubscriber::processTranslatableData

protected LocaleConfigSubscriber::processTranslatableData($name, array $config, array $translatable, $langcode, array $reference_config = array()) Process the translatable data array with a given language. Parameters string $name: The configuration name. array $config: The active configuration data or override data. array|\Drupal\Core\StringTranslation\TranslatableMarkup[] $translatable: The translatable array structure. @see \Drupal\locale\LocaleConfigManager::getTranslatableData() string $la

LocaleConfigSubscriber::onOverrideChange

public LocaleConfigSubscriber::onOverrideChange(LanguageConfigOverrideCrudEvent $event) Updates the locale strings when a configuration override is saved/deleted. Parameters \Drupal\language\Config\LanguageConfigOverrideCrudEvent $event: The language configuration event. File core/modules/locale/src/LocaleConfigSubscriber.php, line 94 Class LocaleConfigSubscriber Updates strings translation when configuration translations change. Namespace Drupal\locale Code public function onOverride

LocaleConfigSubscriber::onConfigSave

public LocaleConfigSubscriber::onConfigSave(ConfigCrudEvent $event) Updates the locale strings when a translated active configuration is saved. Parameters \Drupal\Core\Config\ConfigCrudEvent $event: The configuration event. File core/modules/locale/src/LocaleConfigSubscriber.php, line 78 Class LocaleConfigSubscriber Updates strings translation when configuration translations change. Namespace Drupal\locale Code public function onConfigSave(ConfigCrudEvent $event) { // Only attempt t