ImgURL Pro容器部署
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

31 lines
673 B

<?php
declare(strict_types=1);
namespace PhpMyAdmin\Twig;
use PhpMyAdmin\Twig\Extensions\I18nExtension as TwigI18nExtension;
use PhpMyAdmin\Twig\Extensions\Node\TransNode;
use Twig\TwigFilter;
class I18nExtension extends TwigI18nExtension
{
public function __construct()
{
TransNode::$notesLabel = '// l10n: ';
TransNode::$enableMoTranslator = true;
}
/**
* Returns a list of filters to add to the existing list.
*
* @return TwigFilter[]
*/
public function getFilters()
{
return [
// This is just a performance override
new TwigFilter('trans', '_gettext'),
];
}
}