LanguageTranslator::commonTranslation()

Get a common translation

These are commonly used translations that can be used as fallbacks.

Returns blank string if given string is not a common phrase. Returns given $str if given string is common, but not translated here. Returns translated $str if common and translated.

Usage

$string = $languageTranslator->commonTranslation(string $str);

Arguments

NameType(s)Description
$strstring

Return value

string


LanguageTranslator methods and properties

API reference based on ProcessWire core version 3.0.251