• Resolved maisondejava

    (@maisondejava)


    So I have created an e-commerce website based on WooCommerce using two languages:

    (-) English (as the default language)
    (-) French (for translating from English to French)

    While I was in the process of translating one of the product pages from English to French, suddenly an error occurred as I described or you can find it at the following link.

    https://maisondejava.com/product/vase-en-verre-souffle/

    As you can see in the product link, it is currently set to English. Strangely, when I click the button that changes the language setting to French, all the data are appearing as shown in the following link.

    https://maisondejava.com/fr/produit/vase-en-verre-souffle/

    Apart from the error on that particular product, it turns out that after checking all my product pages, they are in the same state. The data is not displayed in English language, and it only appears when in French.

    Can you please help me understand what the issue is and how to fix it?

    The page I need help with: [log in to see the link]

Viewing 1 replies (of 1 total)
  • Hello,

    I’m sorry to hear you’re experiencing issues with your product pages on WooCommerce. The issue you’re describing appears to be related to the translation of WooCommerce’s strings, specifically the ‘product’ slug.

    WooCommerce comes with a lot of localized languages and automatically changes the slugs to the local variant. In your case, the ‘product’ slug is being changed to ‘produit’ for the French version. This translation is not being recognized by TranslatePress, which is causing the issue you’re seeing.

    To resolve this issue, I recommend using a plugin called Loco Translate. This plugin allows you to manually translate strings that are not automatically translated by TranslatePress. Here’s what you need to do:

    1. Install and activate the Loco Translate plugin.
    2. Navigate to Loco Translate > Plugins.
    3. Select WooCommerce.
    4. In the French language file, find the ‘produit’ string and translate it to ‘product’ (not ‘produit’).

    This should map the ‘product’ slug correctly for TranslatePress and resolve the issue with your product pages not displaying correctly in English.

    Please try this solution and let us know if the issue persists. We’re here to help.

    Best Regards,

Viewing 1 replies (of 1 total)
  • The topic ‘Default Language Error’ is closed to new replies.