You are here

public function TranslatableInteface::t in Backup and Migrate 8.4

Translate a string.

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

File

lib/backup_migrate_core/src/Translation/TranslatableInteface.php, line 24

Class

TranslatableInteface
Interface TranslatableInteface.

Namespace

BackupMigrate\Core\Translation

Code

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