You are here

public function TranslatorInterface::translate in Backup and Migrate 8.4

Parameters

string $string: The string to be translated.

$replacements: Any untranslatable variables to be replaced into the string.

$context: Extra context to help translators distinguish ambiguous strings.

Return value

mixed

1 method overrides TranslatorInterface::translate()
PassthroughTranslator::translate in lib/backup_migrate_core/src/Translation/PassthroughTranslator.php

File

lib/backup_migrate_core/src/Translation/TranslatorInterface.php, line 25

Class

TranslatorInterface
An interface for a language translation service. Follows the Drupal translation model where a fully formed english string with replacement tokens is passed in and then localized.

Namespace

BackupMigrate\Core\Translation

Code

public function translate($string, $replacements = [], $context = []);