woocommerce translation under loco/plugins/ not taking effect
-
Screenshot https://drive.google.com/file/d/1auuBVw0yo8xTxVRxPEb_6vIcXfhyLvkV/view?usp=drivesdk
The custom translation I made for WooCommerce stored under wp-content/languages/loco/plugins/ isn’t taking effect.
I have tried
- upgrading themes/plugins, didn’t help
- disabling/re-enabling Loco Translate, didn’t help
- re-save the custom translation, didn’t help
Where can I look to fix this?
Thanks
-
are you using WordPress version 6.7?
That version just broke the plugin including packages from plugins like woocommerce and the developer of loco is working on a fix. We are all waiting for an update.Ensure you ALSO have the system translations installed. This is a known issue made worse by changes in WordPress that defer all translation loading, including those loaded explicitly as noted in the above post.
@jonasturnbull Yes, upgraded to WP 6.7 recently. Although issue occurred before the upgrade. We upgraded to 6.7 attempting to remedy the issue but wasn’t succesful.
@timwhitlock System translation has always been present. https://app.box.com/s/hr1kryhlegqnw255uaasghoyof5ichvt
Please try the latest dev version. If this doesn’t solve the problem, then please provide steps so I can reproduce your issue.
@timwhitlock No dice. You got a private channel please?
There is no private support. All issues need posting with details here. No passwords please.
You say your issue occurred before the upgrade. This means it may not be related to my plugin, but you’re welcome to submit a proper bug report here and I’ll investigate.
@timwhitlock
Since 6.7 wordpress update I had to move the translations from the custom folder to system or author for them to take effect.I have selected my translation to move it from system to custom and not working since 6.7.
Dev version tested and nothing change. Translations in custom folder not take effect.
Cache and CSS empty ; no changes. When rollback to system or author, works wellDev version tested and nothing change. Translations in custom folder not take effect.
Please provide an example source string and where in your WooCommerce site this is rendered wrongly.
Please also try the string debugger. Enable WP_DEBUG and it appears in the Loco Translate menu.
Please find : debug console with alerts & debugger from loco (available 2 days)
https://i.ibb.co/tC9S337/issue.jpg
https://i.ibb.co/xg45GTB/debug.jpgThanks.
Your first image is too small to read.
Your second (debug) image shows a different string to your original post, but it seems to be working. i.e. Loco Translate is finding the custom file and modifying the loading process accordingly.
If your site doesn’t also display “/Jour” then your issue may not be directly with my plugin. Note that major changes in WordPress 6.7 will affect any plugin involved in selecting languages or requesting translations.
@timwhitlock
Console :Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for theova-brwdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewoocommercedomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewp-security-audit-logdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewpvivid-backuprestoredomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thecomplianz-gdprdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thedynamic-content-for-elementordomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewoolentor-prodomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for therocketdomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6114
Notice: Function _load_textdomain_just_in_time was called incorrectly. Translation loading for thewordpress-seodomain was triggered too early. This is usually an indicator for some code in the plugin or theme running too early. Translations should be loaded at theinitaction or later. Please see Debugging in WordPress for more information. (This message was added in version 6.7.0.) in /wp-includes/functions.php on line 6114
Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/functions.php:6114) in /includes/misc.php on line 1438
Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/functions.php:6114) in /wp-includes/functions.php on line 7137
Warning: Cannot modify header information - headers already sent by (output started at /wp-includes/functions.php:6114) in /wp-admin/admin-header.php on line 9Got : “À partir de 105,00 € HT / Day ” instead of “À partir de 105,00 € HT / Jour”
All translations not work when using custom but work when move to system or author…Joining the dots, you have your answer:
1). You get _load_textdomain_just_in_time was called incorrectly.
and
2) “but work when move to system or author…”
—
This tells me numerous parts of your site are trying to access translations too early. Most likely before Loco Translate is running. Hence it actually do its job.
I note that ova-brw is one of the domains being requested too early. So I’d report this as a bug to the developer.
@timwhitlock Thank you !
Dev has published new update that fix it !Glad to hear it. I’ve only just noticed that you aren’t the OP here. Hence my comment about your issue being different.
I’ll leave this open in case @wpshushu wishes to post more details.
The topic ‘woocommerce translation under loco/plugins/ not taking effect’ is closed to new replies.