eisteed
Forum Replies Created
-
I think the problem comes from the pretty-link.pot where you point to folder /src-js but in pretty link plugin folder there is only /assets/js folder. Maybe that’s why locotransate doesn’t find any js and so doesn’t generate js translation files.
EDIT: Confirmed working, I edited pretty-link.pot & replaced all js reference with assets/js/build/shared.js instead of /src-js/* files
Searched:
src-js/[^\s:]+.js
Replaced with:
assets/js/build/shared.js
And now locotranslate generates json files correctly, translation works everywhere.Hello thank you for your anwser, I tried to do the step you told me but there is no javascript translation file generated (at least not where mo/po files are) loco translate is configured to scan js jsx. I also tried on another website without any translation, created a new one and I get the same result as with 4.0.11
Any quick fix to prevent this ? it is flooding the debug.log
EDIT: Found a fix I think : in plugin directory / src / Cpt.php
Line 11 , replace :
$this->status_meta_box();With
add_action('init', [$this, 'status_meta_box']);- This reply was modified 1 year, 1 month ago by eisteed.