Commit Graph

7 Commits

Author SHA1 Message Date
Brezo Cordero
bcee2abb2c Improve translations error handling
Use wp_json_encode in case files contain invalid UTF-8 characters and catch WP_Errors when fetching the translations.

[MAILPOET-5253]
2023-05-03 12:46:07 +02:00
Rostislav Wolny
00b0723f96 Refactor logic for detection of translations installed from .org
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
db14f851a1 Prevent installing translations from .org if they are available on .com
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Rostislav Wolny
a21e31ca2d Make sure translations from .org are replaced by translations from .com
When the plugin is initially installed it may download translations from .org.
The translations from .org may have a newer date then translations from .com, but are incomplete.
This change ensures that translations installed from .org are always replaced by translations from .com.
[MAILPOET-4144]
2022-03-17 14:51:09 +01:00
Jan Lysý
6f020342c1 Add integration test for TranslationUpdater
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Rostislav Wolný
ac73ed0e4d Revert "Add integration test for TranslationUpdater"
This reverts commit d5a1d85ef4.
2022-02-16 12:49:35 +01:00
Jan Lysý
d5a1d85ef4 Add integration test for TranslationUpdater
[MAILPOET-3808]
2022-02-14 11:53:32 +01:00