1
0
mirror of https://github.com/phpmyadmin/phpmyadmin.git synced 2026-10-28 07:41:55 +03:00

13 Commits

Author SHA1 Message Date
Maurício Meneghini Fauth
1c2266154c Merge pull request #20441 from kamil-tekiela/Message-refactoring
Message refactoring
2026-08-30 18:25:07 -03:00
Kamil Tekiela
0970bb1575 Pass only Message to getMessage
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2026-08-22 23:34:37 +01:00
Kamil Tekiela
bacbb0413e Remove PmaGlobalVariable class
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2026-08-21 19:32:27 +01:00
Liviu-Mihail Concioiu
13aa915a1e Fix Twig deprecations
Signed-off-by: Liviu-Mihail Concioiu <liviu.concioiu@gmail.com>
2026-07-05 21:00:50 +02:00
Kamil Tekiela
1e66018a6e DataProvider types
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2025-10-12 20:06:00 -03:00
Maurício Meneghini Fauth
9c576fcc9c Refactor Twig extensions to use Twig's AttributeExtension
This allows to remove most extensions.

Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2025-07-08 13:23:34 -03:00
Kamil Tekiela
0797f9c44b Rector: small improvements
Signed-off-by: Kamil Tekiela <tekiela246@gmail.com>
2025-06-11 14:43:20 +01:00
Maurício Meneghini Fauth
258057a69c Add I18n\TextDirection enum
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-10-31 19:34:36 -03:00
Maurício Meneghini Fauth
c2b1e312b7 Move Language and LanguageManager into I18n namespace
Signed-off-by: Maurício Meneghini Fauth <mauricio@mfauth.net>
2024-10-31 18:52:01 -03:00
Maurício Meneghini Fauth
67a5c14e81 Remove TEST_PATH constant
Replace the TEST_PATH constant with __DIR__ to make the tests more
portable.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-16 14:10:16 -03:00
Maurício Meneghini Fauth
90ee00efd5 Create the 'pma' global variable for Twig templates
Creates the Twig\PmaGlobalVariable class to handle the 'pma' Twig global
variable.

The idea of this global variable is to automatically inject in all
templates some useful information.

For now it only includes `pma.version` to get the phpMyAdmin version
and `pma.text_dir` to get the text direction ('ltr' or 'rtl').

Adding new variables to the `pma` global variable should be done with
caution.

- https://twig.symfony.com/doc/3.x/advanced.html#globals

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-07-09 20:30:48 -03:00
Maurício Meneghini Fauth
18ad00f7a5 Remove the phpmyadmin/twig-i18n-extension package
Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-25 14:42:13 -03:00
Maurício Meneghini Fauth
b920681947 Add t function to Twig\I18nExtension
For translations, a Twig function is more versatile than a Twig tag and
has the benefit of auto escaping.

As the phpmyadmin/twig-i18n-extension package is a fork of the Twig's
I18nExtension, the custom function was added to the phpMyAdmin main
repository, this way the cases not used by phpMyAdmin don't need to be
implemented. For example, only the default domain is used and
MoTranslator is always available.

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2024-04-23 16:34:14 -03:00