Branch: refs/heads/master Home: https://github.com/phpmyadmin/phpmyadmin Commit: b9206819476e60ef755f5b1d0f511bdd1debdcbf https://github.com/phpmyadmin/phpmyadmin/commit/b9206819476e60ef755f5b1d0f51... Author: Maurício Meneghini Fauth mauricio@fauth.dev Date: 2024-04-23 (Tue, 04 April 2024) -03:00
Changed paths: A src/Twig/Node/Expression/TransExpression.php A tests/unit/Twig/I18nExtensionTest.php A tests/unit/Twig/Node/Expression/TransExpressionTest.php A tests/unit/_data/templates/i18n_extension/context.twig A tests/unit/_data/templates/i18n_extension/message.twig A tests/unit/_data/templates/i18n_extension/plural.twig M psalm-baseline.xml M src/Twig/I18nExtension.php
Log Message: ----------- 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
Commit: b2c9cbc2ed6112907a6d459c2034c512844e772f https://github.com/phpmyadmin/phpmyadmin/commit/b2c9cbc2ed6112907a6d459c2034... Author: Maurício Meneghini Fauth mauricio@fauth.dev Date: 2024-04-23 (Tue, 04 April 2024) -03:00
Changed paths: A src/Twig/Node/Expression/TransExpression.php A tests/unit/Twig/I18nExtensionTest.php A tests/unit/Twig/Node/Expression/TransExpressionTest.php A tests/unit/_data/templates/i18n_extension/context.twig A tests/unit/_data/templates/i18n_extension/message.twig A tests/unit/_data/templates/i18n_extension/plural.twig M psalm-baseline.xml M src/Twig/I18nExtension.php
Log Message: ----------- Merge pull request #19126 from MauricioFauth/i18n-trans-function
Add `t` (trans) function to Twig\I18nExtension