Purge translation
-
Hello,
I tried to translate to french a string on a WooCommerce block (“All Products”)
The string is %d in cart
It didn’t worked, the text on the page remains in english.
BUT, when I edit the page, the text is in french.I uninstalled Loco Translate and the problem remains.
By inspecting the code on the WP editing page, I saw that the text in the button (%d in cart) is still using localise.biz
<script id='wc-all-products-block-js-translations'> ( function( domain, translations ) { var localeData = translations.locale_data[ domain ] || translations.locale_data.messages; localeData[""].domain = domain; wp.i18n.setLocaleData( localeData, domain ); } )( "woocommerce", {"translation-revision-date":"2021-11-11 09:40+0000","generator":"Loco https:\/\/localise.biz\/","source":"packages\/woocommerce-blocks\/build\/all-products.js","domain":"woocommerce","locale_data":{"woocommerce":{"":{"domain":"woocommerce","lang":"fr_FR","plural-forms":"nplurals=2; plural=n > 1;"},"%d in cart":["%d dans le panier","%d dans le panier"],"Add new product":["Ajouter un nouveau produit"],"Add to cart":["Ajouter au panier"],"All Products":["Tous les produits"],"Available on backorder":["Disponible sur commande"],"Average rating":["Moyenne des notes"],"Cancel":["Annuler"],"Columns":["Colonnes"],"Default sorting":["Tri par d\u00e9faut"],"Edit":["Modifier"],"Learn more":["En savoir plus"],"Left":["Gauche"],"Next page":["Page suivante"],"No products found":["Aucun produit trouv\u00e9"],"Page %d":["Page %d"],"Previous page":["Page pr\u00e9c\u00e9dente"],"Price":["Prix"],"Product on sale":["Produit en promotion"],"Product Title":["Nom du produit"],"Products":["Produits"],"Right":["Droite"],"Sale":["Promo"],"Sale price":["Tarif promo"],"SKU:":["UGS\u00a0:"],"Sorry, this product cannot be purchased.":["D\u00e9sol\u00e9, ce produit ne peut \u00eatre achet\u00e9."],"WooCommerce":["WooCommerce"]}}} ); </script>
In fact, I found 22 lines using localise.biz in this editing page
There are only 3 on normal page.I think this causes a bug when I update WooCommerce from 5.8.0 to 5.9.0. and I would like to purge all the links to Loco Translate on my website. Is it possible to do that?
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Purge translation’ is closed to new replies.