Commit Graph

7 Commits

Author SHA1 Message Date
Brezo Cordero
762916910b Add escaping with localization
[MAILPOET-5906]
2024-04-03 08:40:46 +03:00
Jan Lysý
525c80bac4 Fix PHPStan warnings in lib
[MAILPOET-5751]
2023-12-13 11:48:14 +01:00
Jan Jakes
54ebd5855a Enqueue inline translations from Twig templates after mailpoet.js
[MAILPOET-5118]
2023-10-04 15:05:38 +02:00
Jan Jakes
926620e8f8 Ignore strict types rule in all existing files that don't have it
[MAILPOET-2688]
2022-11-29 15:04:09 +01:00
Rostislav Wolny
bd2b064c8f Use empty string when translation is null
In a case when translation is not set correctly in a template
(e.g. 'helpTooltipSendPreview': helpTooltipSendPreview)
it's value might be evaluated as null and trigger a deprecation warning on PHP8.1.
[MAILPOET-4243]
2022-04-13 11:17:33 +02:00
Rostislav Wolny
5c93d20468 Remove new lines from translations passed to JS
A translator accidentally used a new line character in the translated
string and that broke JS code we generate in Twig helper function.
We don't want to support new lines in translated strings so as a fix
we just remove those characters to prevent the error in case it happens again.

[MAILPOET-4153]
2022-02-28 09:37:07 +01:00
Jan Jakes
9f790efbf0 Move plugin files to a subfolder
[MAILPOET-3988]
2022-01-18 15:30:22 +01:00