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
Name | Type(s) | Description |
---|---|---|
str | string |
Return value
string
LanguageTranslator methods and properties
API reference based on ProcessWire core version 3.0.244