Contao\System::convertXlfToPhp PHP Méthode

convertXlfToPhp() public static méthode

Convert an .xlf file into a PHP language file
Deprecation: Deprecated since Contao 4.0, to be removed in Contao 5.0. Use the Contao\CoreBundle\Config\Loader\XliffFileLoader instead.
public static convertXlfToPhp ( string $strName, string $strLanguage, boolean $blnLoad = false ) : string
$strName string The name of the .xlf file
$strLanguage string The language code
$blnLoad boolean Add the labels to the global language array
Résultat string The PHP code
    public static function convertXlfToPhp($strName, $strLanguage, $blnLoad = false)
    {
        @trigger_error('Using System::convertXlfToPhp() has been deprecated and will no longer work in Contao 5.0. Use the Contao\\CoreBundle\\Config\\Loader\\XliffFileLoader instead.', E_USER_DEPRECATED);
        // Convert to absolute path
        if (strpos($strName, TL_ROOT . '/') === false) {
            $strName = TL_ROOT . '/' . $strName;
        }
        $loader = new XliffFileLoader(static::getContainer()->getParameter('kernel.root_dir'), $blnLoad);
        return $loader->load($strName, $strLanguage);
    }