public function InterfaceTranslationRecorder::getStringTranslation in Localization client 8
@inheritdoc
Overrides TranslatorInterface::getStringTranslation
File
- l10n_client_ui/
src/ InterfaceTranslationRecorder.php, line 22
Class
- InterfaceTranslationRecorder
- String translation listener to collect data.
Namespace
Drupal\l10n_client_uiCode
public function getStringTranslation($langcode, $string, $context) {
if ($langcode != 'en' || locale_is_translatable('en')) {
$this->strings[$langcode][$context][$string] = TRUE;
}
return FALSE;
}