Update website
This commit is contained in:
parent
4413528994
commit
1d90fbf296
6865 changed files with 1091082 additions and 0 deletions
31
admin/phpMyAdmin/libraries/classes/Twig/I18nExtension.php
Normal file
31
admin/phpMyAdmin/libraries/classes/Twig/I18nExtension.php
Normal file
|
@ -0,0 +1,31 @@
|
|||
<?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'),
|
||||
];
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue