Set a translation
Usage
// basic usage
$string = $languageTranslator->setTranslation(string $textdomain, string $text, string $translation);
// usage with all arguments
$string = $languageTranslator->setTranslation(string $textdomain, string $text, string $translation, string $context = '');
Arguments
Name | Type(s) | Description |
---|---|---|
textdomain | string | |
text | string | |
translation | string | |
context (optional) | string |
Return value
string
LanguageTranslator methods and properties
API reference based on ProcessWire core version 3.0.244