SimpleSAML\Locale\Translate::getStringNotTranslated PHP Метод

getStringNotTranslated() приватный Метод

Return the string that should be used when no translation was found.
private getStringNotTranslated ( string $tag, boolean $fallbacktag ) : string
$tag string A name tag of the string that should be returned.
$fallbacktag boolean If set to true and string was not found in any languages, return the tag itself. If false return null.
Результат string The string that should be used, or the tag name if $fallbacktag is set to false.
    private function getStringNotTranslated($tag, $fallbacktag)
    {
        if ($fallbacktag) {
            return 'not translated (' . $tag . ')';
        } else {
            return $tag;
        }
    }