New translation system cannot be overridden
-
Hi,
I use custom translations for WooCommerce in this folder : /wp-content/languages/woocommerce
However since the “new” translation system appeared (which uses a PHP file next to the po/mo files), custom translations are not displayed, only the default ones. I’d rather not use a third party plugin as it would hurt performance. Even the official doc (https://woocommerce.com/document/woocommerce-localization/) says that a woocommerce folder located in wp-content/languages works. Well it doesn’t anymore.
So, it’d be great if someone could tell me how to force WooCommerce to look into the custom folder for translations.
Thanks for your help, best regards,
-
Hi @stefanp44
Thanks for reaching out! I understand that you’re having concerns with translations.
Could you try creating a
wp-content/languages/woocommerce/woocommerce-en_US.mo
file (replaceen_US
with your language code). Placing files here often gets around the issue. It’s a little adjustment that might make a big difference.Do this for both
.po
and.mo
for example if in French, it should bewoocommerce-fr_FR.po
andwoocommerce-fr_FR.mo
.If you have a caching plugin, please clear your site cache to ensure the new translations are loaded.
Let us know how it goes.
Hi @reynierc ,
This is exactly my issue: I do have the French po/mo files placed in /wp-content/languages/woocommerce folder and the cache has been emptied.
My problem is that as soon as this file “woocommerce-fr_FR.l10n.php” is generated in the /wp-content/languages/plugins folder, the translations placed in the woocommerce folder are not “seen” anymore. The only workaround I found so far is to delete this woocommerce-fr_FR.l10n.php file, so that the translation targets the /wp-content/languages/woocommerce folder again.
Still I’d rather find something more stable in the future (I need to do that after each WooCommerce update): it’d be great if you had a piece of advice regarding this issue.
Best regards,
Hi @stefanp44,
Thanks for the clarification. To better understand the issue, could you let me know when you first noticed it? Did it start after updating WordPress or WooCommerce? Also, was it working fine before, and which versions of WooCommerce and WordPress were you using at the time?
If possible, please share your System Status Report so I can get a clearer picture of your setup. I’m asking because I’d like to try reproducing the issue on my end, as I’ve seen similar reports from others. Looking forward to your response.
Hi @mosesmedh ,
Thank you for your message. This is related with updating WordPress, I can’t remember which version implemented the translation system using these php files (for instance woocommerce-fr_FR.l10n.php or twentytwentyfive-fr_FR.l10n.php).
You’ll find below the System Status Report, hope it helps.
WordPress Environment<br><br>WordPress address (URL): https://abriservices.net<br>Site address (URL): https://abriservices.net<br>WC Version: 9.4.3<br>Legacy REST API Package Version: L’extension Legacy REST API n’est pas installée sur ce site.<br>Action Scheduler Version: ? 3.8.2<br>Log Directory Writable: ?<br>WP Version: 6.7.1<br>WP Multisite: –<br>WP Memory Limit: 1 Go<br>WP Debug Mode: –<br>WP Cron: –<br>Language: fr_FR<br>External object cache: ? Server Environment<br><br>Server Info: LiteSpeed<br>PHP Version: 8.1.31<br>PHP Post Max Size: 512 Mo<br>PHP Time Limit: 600<br>PHP Max Input Vars: 250000<br>cURL Version: 8.11.0<br>OpenSSL/1.1.1w<br><br>SUHOSIN Installed: –<br>MySQL Version: 10.6.20-MariaDB<br>Max Upload Size: 512 Mo<br>Default Timezone is UTC: ?<br>fsockopen/cURL: ?<br>SoapClient: ?<br>DOMDocument: ?<br>GZip: ?<br>Multibyte String: ?<br>Remote Post: ?<br>Remote Get: ? Database<br><br>WC Database Version: 9.4.3<br>WC Database Prefix: xrps_<br>Taille totale de la base de données: 330.44MB<br>Taille de la base de données: 198.29MB<br>Taille de l’index: 132.15MB<br>xrps_woocommerce_sessions: Données?: 0.14MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_woocommerce_api_keys: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_woocommerce_attribute_taxonomies: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_woocommerce_downloadable_product_permissions: Données?: 0.02MB + Index?: 0.06MB + Moteur InnoDB<br>xrps_woocommerce_order_items: Données?: 1.52MB + Index?: 0.20MB + Moteur InnoDB<br>xrps_woocommerce_order_itemmeta: Données?: 4.52MB + Index?: 12.06MB + Moteur InnoDB<br>xrps_woocommerce_tax_rates: Données?: 0.02MB + Index?: 0.06MB + Moteur InnoDB<br>xrps_woocommerce_tax_rate_locations: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_woocommerce_shipping_zones: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_woocommerce_shipping_zone_locations: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_woocommerce_shipping_zone_methods: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_woocommerce_payment_tokens: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_woocommerce_payment_tokenmeta: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_woocommerce_log: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_actionscheduler_actions: Données?: 20.05MB + Index?: 21.14MB + Moteur InnoDB<br>xrps_actionscheduler_claims: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_actionscheduler_groups: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_actionscheduler_logs: Données?: 16.02MB + Index?: 13.03MB + Moteur InnoDB<br>xrps_berocket_termmeta: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_blc_filters: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_blc_instances: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_blc_links: Données?: 0.05MB + Index?: 0.11MB + Moteur InnoDB<br>xrps_blc_synch: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_braapf_product_stock_status_parent: Données?: 0.08MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_braapf_product_variation_attributes: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_braapf_term_taxonomy_hierarchical: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_braapf_variable_attributes: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_commentmeta: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_comments: Données?: 4.52MB + Index?: 5.23MB + Moteur InnoDB<br>xrps_dgwt_wcas_index: Données?: 1.52MB + Index?: 0.30MB + Moteur InnoDB<br>xrps_dgwt_wcas_invindex_cache: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_dgwt_wcas_invindex_doclist: Données?: 4.52MB + Index?: 5.97MB + Moteur InnoDB<br>xrps_dgwt_wcas_invindex_wordlist: Données?: 1.52MB + Index?: 0.47MB + Moteur InnoDB<br>xrps_dgwt_wcas_stats: Données?: 0.16MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_dgwt_wcas_tax_index: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_frmt_form_entry: Données?: 0.05MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_frmt_form_entry_meta: Données?: 0.47MB + Index?: 0.33MB + Moteur InnoDB<br>xrps_frmt_form_reports: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_frmt_form_views: Données?: 0.27MB + Index?: 0.48MB + Moteur InnoDB<br>xrps_imagify_files: Données?: 0.02MB + Index?: 0.08MB + Moteur InnoDB<br>xrps_imagify_folders: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_links: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_lpc_bordereau: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_lpc_inward_label: Données?: 1.50MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_lpc_outward_label: Données?: 16.50MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_options: Données?: 3.52MB + Index?: 0.39MB + Moteur InnoDB<br>xrps_postmeta: Données?: 50.55MB + Index?: 39.61MB + Moteur InnoDB<br>xrps_posts: Données?: 8.19MB + Index?: 1.88MB + Moteur InnoDB<br>xrps_post_smtp_logmeta: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_post_smtp_logs: Données?: 7.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_redirection_404: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_redirection_groups: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_redirection_items: Données?: 0.02MB + Index?: 0.09MB + Moteur InnoDB<br>xrps_redirection_logs: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_sbi_feeds: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_sbi_feed_caches: Données?: 0.14MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_sbi_instagram_feeds_posts: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_sbi_instagram_feed_locator: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_sbi_instagram_posts: Données?: 0.11MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_sbi_sources: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_sib_model_contact: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_sib_model_country: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_termmeta: Données?: 0.05MB + Index?: 0.14MB + Moteur InnoDB<br>xrps_terms: Données?: 0.06MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_term_relationships: Données?: 0.23MB + Index?: 0.13MB + Moteur InnoDB<br>xrps_term_taxonomy: Données?: 0.06MB + Index?: 0.06MB + Moteur InnoDB<br>xrps_trustindex_google_reviews: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_usermeta: Données?: 7.55MB + Index?: 12.55MB + Moteur InnoDB<br>xrps_users: Données?: 0.47MB + Index?: 0.48MB + Moteur InnoDB<br>xrps_wc_admin_notes: Données?: 0.05MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wc_admin_note_actions: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_wc_category_lookup: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wc_customer_lookup: Données?: 0.28MB + Index?: 0.23MB + Moteur InnoDB<br>xrps_wc_download_log: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_wc_orders: Données?: 1.52MB + Index?: 0.94MB + Moteur InnoDB<br>xrps_wc_orders_meta: Données?: 5.52MB + Index?: 10.58MB + Moteur InnoDB<br>xrps_wc_order_addresses: Données?: 1.52MB + Index?: 0.58MB + Moteur InnoDB<br>xrps_wc_order_coupon_lookup: Données?: 0.02MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_wc_order_operational_data: Données?: 0.52MB + Index?: 0.27MB + Moteur InnoDB<br>xrps_wc_order_product_lookup: Données?: 0.44MB + Index?: 0.36MB + Moteur InnoDB<br>xrps_wc_order_stats: Données?: 0.34MB + Index?: 0.25MB + Moteur InnoDB<br>xrps_wc_order_tax_lookup: Données?: 0.20MB + Index?: 0.17MB + Moteur InnoDB<br>xrps_wc_product_attributes_lookup: Données?: 0.14MB + Index?: 0.14MB + Moteur InnoDB<br>xrps_wc_product_download_directories: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_wc_product_meta_lookup: Données?: 0.23MB + Index?: 0.45MB + Moteur InnoDB<br>xrps_wc_rate_limits: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_wc_reserved_stock: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wc_tax_rate_classes: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_wc_webhooks: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_wfauditevents: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wfblockediplog: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wfblocks7: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_wfconfig: Données?: 3.31MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wfcrawlers: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wffilechanges: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wffilemods: Données?: 17.55MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wfhits: Données?: 0.06MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_wfhoover: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_wfissues: Données?: 0.02MB + Index?: 0.06MB + Moteur InnoDB<br>xrps_wfknownfilelist: Données?: 8.52MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wflivetraffichuman: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_wflocs: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wflogins: Données?: 0.42MB + Index?: 0.13MB + Moteur InnoDB<br>xrps_wfls_2fa_secrets: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_wfls_role_counts: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wfls_settings: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wfnotifications: Données?: 0.08MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wfpendingissues: Données?: 0.02MB + Index?: 0.06MB + Moteur InnoDB<br>xrps_wfreversecache: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wfsecurityevents: Données?: 0.16MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wfsnipcache: Données?: 0.02MB + Index?: 0.05MB + Moteur InnoDB<br>xrps_wfstatus: Données?: 0.20MB + Index?: 0.14MB + Moteur InnoDB<br>xrps_wftrafficrates: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wfwaffailures: Données?: 0.02MB + Index?: 0.00MB + Moteur InnoDB<br>xrps_wpr_above_the_fold: Données?: 2.02MB + Index?: 0.16MB + Moteur InnoDB<br>xrps_wpr_lazy_render_content: Données?: 0.14MB + Index?: 0.17MB + Moteur InnoDB<br>xrps_wpr_rocket_cache: Données?: 0.19MB + Index?: 0.23MB + Moteur InnoDB<br>xrps_wpr_rucss_used_css: Données?: 0.02MB + Index?: 0.09MB + Moteur InnoDB<br>xrps_yoast_indexable: Données?: 1.52MB + Index?: 0.42MB + Moteur InnoDB<br>xrps_yoast_indexable_hierarchy: Données?: 0.13MB + Index?: 0.20MB + Moteur InnoDB<br>xrps_yoast_migrations: Données?: 0.02MB + Index?: 0.02MB + Moteur InnoDB<br>xrps_yoast_primary_term: Données?: 0.11MB + Index?: 0.13MB + Moteur InnoDB<br>xrps_yoast_seo_links: Données?: 0.06MB + Index?: 0.03MB + Moteur InnoDB<br>xrps_yoast_seo_meta: Données?: 0.34MB + Index?: 0.00MB + Moteur InnoDB Post Type Counts<br><br>attachment: 2436<br>br_filters_group: 1<br>br_product_filter: 8<br>custom_css: 3<br>et_body_layout: 57<br>et_footer_layout: 2<br>et_header_layout: 1<br>et_pb_layout: 13<br>et_template: 453<br>et_theme_builder: 1<br>forminator_forms: 3<br>nav_menu_item: 63<br>nf_sub: 86<br>oembed_cache: 7<br>page: 18<br>post: 2<br>product: 1236<br>product_variation: 137<br>revision: 301<br>saswp: 1<br>shop_coupon: 1<br>shop_order: 2244<br>shop_order_placehold: 581<br>shop_order_refund: 44<br>wp_global_styles: 1 Security<br><br>Secure connection (HTTPS): ?<br>Hide errors from visitors: ? Active Plugins (28)<br><br>FiboSearch - AJAX Search for WooCommerce (Pro): par L’équipe FiboSearch – 1.30.1<br>Akismet Anti-spam: Spam Protection: par Automattic - équipe Anti-spam – 5.3.5<br>BackWPup: par BackWPup – WordPress Backup & Restore Plugin – 4.1.7<br>BBQ Firewall: par Jeff Starr – 20241104<br>Broken Link Checker: par WPMU DEV – 2.4.2<br>FunnelKit Cart for WooCommerce: par FunnelKit – 1.7.1<br>Colissimo shipping methods for WooCommerce: par Colissimo – 2.3.0<br>Divi Assistant: par Pee-Aye Creative – 1.3.9<br>Forminator: par WPMU DEV – 1.38.3<br>Imagify: par Imagify Image Optimizer – Optimize Images & Convert WebP & Avif – 2.2.5<br>Index WP MySQL For Speed: par Oliver Jones<br>Rick James – 1.5.2<br><br>Smash Balloon Instagram Feed: par Smash Balloon – 6.6.1<br>Post SMTP: par Post SMTP – 3.0.2<br>Redirection: par John Godley – 5.5.1<br>Redis Object Cache: par Till Krüss – 2.5.4<br>Schema & Structured Data for WP & AMP: par Magazine3 – 1.40<br>Advanced AJAX Product Filters for WooCommerce: par BeRocket – 1.6.8.1<br>WooCommerce Monetico Gateway: par Nicolas Maillard – 2.5.4<br>Brevo - WooCommerce Email Marketing: par Brevo – 4.0.34<br>WooCommerce: par Automattic – 9.4.3 (une mise à jour de la version 9.6.0 est disponible)<br>Wordfence Security: par Wordfence – 8.0.3<br>Yoast SEO: par L’équipe Yoast – 24.3<br>ManageWP - Worker: par GoDaddy – 4.9.20<br>Asset CleanUp Pro: Page Speed Booster: par Gabe Livan – 1.2.6.3<br>Widgets pour les avis Google: par Trustindex.io – 12.5<br>WP Rocket | Disable Cache Clearing: par WP Rocket Support Team –<br>WP Rocket: par WP Media – 3.18<br>WPS Hide Login: par WPServeur<br>NicolasKulka<br>wpformation – 1.9.17.1 Inactive Plugins (0) Dropin Plugins ()<br><br>advanced-cache.php: advanced-cache.php<br>object-cache.php: Redis Object Cache Drop-In Must Use Plugins (9)<br><br>Admin Email Check Interval Removal: par Perspectives Marketing – 20240601<br>Asset CleanUp Pro: Plugin Filtering: par Gabriel Livan – 1.0<br>Clean & Secure WP Back Office: par Perspectives Marketing – 20240601<br>Clean File Name and Set Alt Text: par Perspectives Marketing – 20240605<br>Featured Image in RSS Feed: par Perspectives Marketing – 20240601<br>Index WP MySQL For Speed Upgrade Filter for mu-plugins.: par – 1.4.18<br>ManageWP - Worker Loader: par GoDaddy – 1.0.0<br>No Internal Ping: par Perspectives Marketing – 20240601<br>PM Password Handling: par Perspectives Marketing – 20240601 Settings<br><br>Legacy API Enabled: –<br>Force SSL: –<br>Currency: EUR (€)<br>Currency Position: right<br>Thousand Separator:<br>Decimal Separator: ,<br>Number of Decimals: 2<br>Taxonomies: Product Types: external (external)<br>grouped (grouped)<br>simple (simple)<br>variable (variable)<br><br>Taxonomies: Product Visibility: exclude-from-catalog (exclude-from-catalog)<br>exclude-from-search (exclude-from-search)<br>featured (featured)<br>outofstock (outofstock)<br>rated-1 (rated-1)<br>rated-2 (rated-2)<br>rated-3 (rated-3)<br>rated-4 (rated-4)<br>rated-5 (rated-5)<br><br>Connected to WooCommerce.com: –<br>Enforce Approved Product Download Directories: –<br>HPOS feature enabled: ?<br>Order datastore: Automattic\WooCommerce\Internal\DataStores\Orders\OrdersTableDataStore<br>HPOS data sync enabled: – Logging<br><br>Enabled: ?<br>Handler: Automattic\WooCommerce\Internal\Admin\Logging\LogHandlerFileV2<br>Retention period: 30?jours<br>Level threshold: –<br>Log directory size: 720 Ko WC Pages<br><br>Base de la boutique: ? L’ID de page est définie<br>mais la page n’existe pas<br><br>Panier: #5493 - /panier/ - Contient le code court [woocommerce_cart]<br>Commander: #24657 - /commande/ - Contient le code court [woocommerce_checkout]<br>Mon compte: #18 - /mon-compte/<br>Conditions générales de vente et d’utilisation: #650 - /cgv/ Theme<br><br>Name: Divi Child<br>Version: 20240223<br>Author URL: https://perspectives.marketing<br>Child Theme: ?<br>Parent Theme Name: Divi<br>Parent Theme Version: 4.27.4<br>Parent Theme Author URL: https://www.elegantthemes.com<br>WooCommerce Support: ? Templates<br><br>Overrides: Divi-child/woocommerce/single-product/meta.php Admin<br><br>Enabled Features: activity-panels<br>analytics<br>product-block-editor<br>coupons<br>core-profiler<br>customize-store<br>customer-effort-score-tracks<br>import-products-task<br>experimental-fashion-sample-products<br>shipping-smart-defaults<br>shipping-setting-tour<br>homescreen<br>marketing<br>mobile-app-banner<br>navigation<br>onboarding<br>onboarding-tasks<br>pattern-toolkit-full-composability<br>product-custom-fields<br>remote-inbox-notifications<br>remote-free-extensions<br>payment-gateway-suggestions<br>printful<br>shipping-label-banner<br>subscriptions<br>store-alerts<br>transient-notices<br>woo-mobile-welcome<br>wc-pay-promotion<br>wc-pay-welcome-page<br>launch-your-store<br><br>Disabled Features: product-data-views<br>experimental-blocks<br>minified-js<br>product-pre-publish-modal<br>settings<br>async-product-editor-category-field<br>product-editor-template-system<br>blueprint<br>reactify-classic-payments-settings<br>use-wp-horizon<br><br>Daily Cron: ? Next scheduled: 2025-02-02 14:01:44 +01:00<br>Options: ?<br>Notes: 26<br>Onboarding: completed Action Scheduler<br><br>Terminé: 62?003<br>Oldest: 2025-01-01 17:30:18 +0100<br>Newest: 2025-02-01 17:25:27 +0100<br><br>En attente: 48<br>Oldest: 2025-02-01 17:15:26 +0100<br>Newest: 2025-02-07 01:15:02 +0100 Status report information<br><br>Generated at: 2025-02-01 17:27:00 +01:00<br>
Best regards,
Hi @stefanp44,
Thank you for the additional details. The issue seems to be related to the change on WordPRess 6.7 which changes how translation are being loaded as explained here and here
To be sure this is the case, check your error logs for a notice that reads:?
"Translation loading for the <code>...</code> domain was triggered too early."
You need?WP_DEBUG
?enabled to see this notice.If you find such notice please write back.
Hello @mosesmedh ,
Thank you for your message. Indeed when I activate the debug mode, I have a few error regarding the textdomain loading incorrectly. I tried to add this code in functions.php but it didn’t work:
add_action('init', function() {
load_textdomain('woocommerce', WP_LANG_DIR . '/languages/woocommerce/woocommerce-fr_FR.mo');
});Is there something else that I can do?
Best regards,
Hello Stephane PISKORZ,
Thank you for your reply.
To confirm, you have added the code snipped into the function.php file of the Divi Child theme and not the parent Divi theme.
To troubleshoot this further, could you disable all the plugins except WooCommerce temporarily and check whether the error “Text domain was triggered too early” still occurs?
I want to confirm if there is another plugin triggering this translation error.Let me know about your findings.
Best regards.
Hi @doublezed2
Yes indeed, the code snippet has been added to the functions.php in the child theme.
I did the following test : I deactivated all plugins but WooCommerce, erased all WooCommerce translations in the wp-content/languages/plugins/, kept my own translations in wp-content/languages/woocommerce/, updated the translations to get all the files back and finally made sure that the cache folder was empty on the server.
The good news is that the errors logged regarding the loading of textdomain only affect 3 plugins: Structured Data & Schema, Post-SMTP and Instagram Feed.
The bad news: even after deactivating everything and keeping my custom translations, they were not taken into account, so I went back to my temporary solution: deleting this file woocommerce-fr_FR.l10n.php and replace the woocommerce po/mo files with my own in wp-content/languages/plugins/
Hello Stephane PISKORZ,
Thank you for your reply.
I understand that despite deactivating plugins and keeping your custom translations, they were not applied.
Since there are no errors, the translations should work.
Please share screenshots showing how the translation files are stored and provide the translation files so I can try to reproduce the issue.Looking forward to your response. ??
Hi @doublezed2,
Here a few screenshots from FileZilla:
My woocommerce folder within languages
The initial plugins folder within languages, with the php file deleted
The string I changed is the “out of stock” string. It is translated as “En rupture de stock” in French, which I changed to “Sur commande – nous consulter” (“Can be ordered – Get in touch with us”). You can download my custom translation here: https://img.abriservices.net/woo-translation.zip
Let me know if you need more.
Best regards,
Hi there!
Thanks for sharing this information.
Let me check with the developers. We will get back to you as soon as possible!
Hi @stefanp44,
I appreciate your patience while we investigated this. I wanted to follow up with an update on the translation issue.
The way translations are loaded changed with the release of WordPress 6.7, which introduced some unexpected issues. We’ve been working on a fix to address this, but unfortunately, the review process took some time. The good news is that the fix has now been merged and will be included in WooCommerce 9.8: https://github.com/woocommerce/woocommerce/pull/53955.
Keep an eye out for the next WooCommerce update, as it will include this fix.
Hi @lovingbro ,
Sure no problem for the wait, I’m actually glad this was taken into account. Can’t wait for the next update then!
Hello Stephane PISKORZ,
I appreciate your patience.
Please don’t hesitate to contact us again if you have more questions or concerns.
We are here to help ??Best regards.
- You must be logged in to reply to this topic.