public static function translate($translationId, $args = array(), $language = null)
    {
        /** @var Translator $translator */
        $translator = StaticContainer::get('Piwik\Translation\Translator');

        return $translator->translate($translationId, $args, $language);
    }
public static function translate($translationId, $args = array(), $language = null)
    {
        /** @var Translator $translator */
        $translator = StaticContainer::get('Piwik\Translation\Translator');

        return $translator->translate($translationId, $args, $language);
    }
public static function translate ( $ translationId , $ args = array ( ) , $ language = null ) { /** @var Translator $translator */ $ translator = StaticContainer :: get ( 'Piwik\Translation\Translator' ) ; return $ translator -> translate ( $ translationId , $ args , $ language ) ; }
Returns an internationalized string using a translation token. If a translation
cannot be found for the token, the token is returned.

@param string $translationId Translation ID, eg, `'General_Date'`.
@param array|string|int $args `sprintf` arguments to be applied to the internationalized
string.
@param string|null $language Optionally force the language.
@return string The translated string or `$translationId`.
@api
Returns an internationalized string using a translation token . If a translation cannot be found for the token the token is returned .