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
Jan Lysý
212e01dd4c
Add check that function error_log exists
...
[MAILPOET-5026]
2023-03-02 13:59:51 +01:00
Rostislav Wolny
adc158367d
Add wait and retry when translations API returns 429
...
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
69e67f3c7a
Do not cache language packs response when code is not 200
...
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
4f831f8b17
Refactor API call for fetching language packs data to private method
...
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
36c95f80fd
Add transient caching of language packs data
...
[MAILPOET-4979]
2023-02-06 12:27:39 +01:00
Rostislav Wolny
a53e446583
Add request cache to TranslationUpdater
...
WP may call the action we hook into more times during one request.
This commit adds simple caching to prevent multiple requests.
[MAILPOET-4909]
2023-01-12 14:08:31 +01:00
Rostislav Wolny
b033d7d92f
Add error logging when fetching language packs info
...
[MAILPOET-4909]
2023-01-12 14:08:31 +01: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
7791219d7d
Refactor processing translations API data in two methods
...
[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ý
40860d1d59
Increase minimal timeout for API requests and fix comment
...
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Jan Lysý
dd54518933
Change timeout for translation API requests
...
[MAILPOET-3808]
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
Jan Lysý
afebe36c81
Add automatic check for translations
...
[MAILPOET-3808]
2022-03-17 14:51:09 +01:00
Rostislav Wolný
8fa78af75a
Revert "Add automatic check for translations"
...
This reverts commit 8c270ce2ac
.
2022-02-16 12:49:35 +01:00
Rostislav Wolný
ac73ed0e4d
Revert "Add integration test for TranslationUpdater"
...
This reverts commit d5a1d85ef4
.
2022-02-16 12:49:35 +01:00
Rostislav Wolný
74090615fe
Revert "Change timeout for translation API requests"
...
This reverts commit b678dcbac4
.
2022-02-16 12:49:35 +01:00
Rostislav Wolný
9b6b20203f
Revert "Increase minimal timeout for API requests and fix comment"
...
This reverts commit 4b692bb980
.
2022-02-16 12:49:35 +01:00
Jan Lysý
4b692bb980
Increase minimal timeout for API requests and fix comment
...
[MAILPOET-3808]
2022-02-14 11:53:32 +01:00
Jan Lysý
b678dcbac4
Change timeout for translation API requests
...
[MAILPOET-3808]
2022-02-14 11:53:32 +01:00
Jan Lysý
d5a1d85ef4
Add integration test for TranslationUpdater
...
[MAILPOET-3808]
2022-02-14 11:53:32 +01:00
Jan Lysý
8c270ce2ac
Add automatic check for translations
...
[MAILPOET-3808]
2022-02-14 11:53:32 +01:00