Create New Item
Item Type
File
Folder
Item Name
Search file in folder and subfolders...
Are you sure want to rename?
optometrists
/
cache
/
cache
/
cache
/
cache
/
.wp-cli
/
wp-content
/
plugins
/
wp-phpmyadmin-extension
/
lib
/
phpMyAdmin
/
libraries
/
classes
/
Twig
:
I18nExtension.php
Advanced Search
Upload
New Item
Settings
Back
Back Up
Advanced Editor
Save
<?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'), ]; } }