mo2menheftig
Forum Replies Created
-
@vmarko Hey again,
Unfortunately the problem is still there. what do you think could possibly be creating those files again?
- This reply was modified 3 years, 3 months ago by mo2menheftig.
@vmarko Hey again,
disabling async function didn’t solve the problem. I will go ahead and try defining the
WP_AUTO_UPDATE_TRANSLATION
constant, it’s not documented on www.ads-software.com though.will update you with the findings.
@vmarko Thanks for the link, I’ve reached a similar conclusion yesterday, but it didn’t work out.
Basically WordPress rolls automatic updates to the language pack which regenerates the translation files, here is a reference on how to disable it.
https://www.ads-software.com/support/article/configuring-automatic-background-updates/#translation-updates-via-filterI’ve also tried to disable
auto_update_translation
by adding
add_filter( 'auto_update_translation', '__return_false' );
but after a few hours the translation files came back.
As for the reason you were not able to reproduce because you probably didn’t have the cron jobs setup that would trigger these kind of updates.
I will give disabling async function a shot that was explained in your link and update you.
https://developer.www.ads-software.com/reference/hooks/async_update_translation/
- This reply was modified 3 years, 3 months ago by mo2menheftig.
- This reply was modified 3 years, 3 months ago by mo2menheftig.
Hey @vmarko
Thanks for getting back to me, I’ve already deleted them, especially the one’s in the plugin directory. I also double checked now.I went ahead and deleted both plugin language files and the generated ones.
Deleted /wp-content/languages/plugins/w3-total-cache-ja.*
Deleted /wp-content/plugins/w3-total-cache/languagesThe problem is unfortunately still there. Do you think WordPress maybe caches the language files and re generates them later?
@vmarko Thanks again for your reply,
they files appeared again 4 hours after the time of my previous reply.112K -rw-rw-r-- 1 **** **** 111K Nov 30 16:39 ****/****/wp-content/languages/plugins/w3-total-cache-ja.mo 164K -rw-rw-r-- 1 **** **** 164K Nov 30 16:39 ****/****/wp-content/languages/plugins/w3-total-cache-ja.po
I am still waiting to see if those files will re-appear as nothing has changed so far.
In some cases, the files will be back when you switch the language again in the admin (Settings/General)shouldn’t the files stop generating because I deleted the source translations in the w3-total-cache plugin directory?
can you point me to the code that causes this to happen? in WordPress, because I searched and I couldn’t find anything that could cause it.- This reply was modified 3 years, 3 months ago by mo2menheftig.
- This reply was modified 3 years, 3 months ago by mo2menheftig.
- This reply was modified 3 years, 3 months ago by mo2menheftig.
@vmarko Thanks for your reply.
My current settings are:
– Global language settings to JP
– Admin user language settings to ENSteps to reproduce:
– Delete /wp-content/languages/plugins/w3-total-cache-ja.*
– Delete /wp-content/plugins/w3-total-cache/languages
– Open dashboard to with Admin to find w3tc plugin in english as expected
– Wait for a few hours then login again with Admin the w3tc plugin is back to JP
– Check the /wp-content/languages/plugins/w3-total-cache-ja.* files to find them there again..Any leads at least?