New Landing How can we help? Cardinal Child theme translation : Cardinal + Woocommerce

Viewing 14 posts - 1 through 14 (of 14 total)
  • Posted in: Cardinal
  • #203675
    Mar21
    Member
    Post count: 219

    Hi,

    I’ve tried to put my Cardinal translated language files into the child-theme, but it doesnt seem to work.

    I’ve created a folder called “language” inside the child-theme folder and placed the fr_FR files there.

    What should I do also with my Woocommerce translated files?

    Thanks

    #203785
    Rui Guerreiro – SUPPORT
    Keymaster
    Post count: 25779

    Hi,

    You should add this code in the functions.php of the child theme

    load_theme_textdomain('swiftframework', get_stylesheet_directory().'/language');

    About Woocommerce you should ask in their support forum, they are in better position to reply to that.

    Thanks

    -Rui

    #209506
    Mar21
    Member
    Post count: 219

    Hi Rui,

    thanks it works now, except for “Shipping and Handling” on the shop. I have translated it by “Frais de Livraison” (French), via Loco translate, but it doesn’t works. Same issue with “share this”. I have check on the woocommerce.po file, but it seems to be on Cardinal theme’s file.

    What shoudl I do?

    Thanks for your help

    Attachments:
    You must be logged in to view attached files.
    #209517
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please try this plugin https://wordpress.org/plugins/real-time-find-and-replace/ for only these two strings.
    Thanks
    Mohammad

    #209567
    Mar21
    Member
    Post count: 219

    Should I do this for all the terms in my cart page?

    Cart total /crat subtotals / shipping and handling/ order total/shipping calculator and the note could be translate with Loco translate…why?

    thanks

    #209574
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Please follow this article http://docs.woothemes.com/document/woocommerce-localization/.
    Thanks
    Mohammad

    #210037
    Mar21
    Member
    Post count: 219

    Hi,

    these terms (on the cart page) are not in the woocommerce.po file but in the cardinal theme.po file!

    I have tried to translate theme with Loco translate and with Reak-Time find and replace…but it doesn’t works!

    thanks for your help again

    Mar.

    Attachments:
    You must be logged in to view attached files.
    #210054
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I have resolved the issue so please check it now.
    Thanks
    Mohammad

    #210074
    Mar21
    Member
    Post count: 219

    Hi Mohammad,

    Nothing have changed for me (after emptying my cache of course). I have tried with new cart also. Also on Firefox and Safari… on Safari there is also a bug with my product image (cf. screenshot).

    What did you try? What should I do?

    Thanks

    Mar.

    Attachments:
    You must be logged in to view attached files.
    #210076
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    Its working fine. Please check the attachment of my browser.
    Thanks
    Mohammad

    Attachments:
    You must be logged in to view attached files.
    #210094
    Mar21
    Member
    Post count: 219

    Ok, it works, could you explain what you have done, I need to be to reproduct it on other sites, please

    thanks a lot

    #210097
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    I just remove regular expression and slashes from string at Real time find and Replace setting page.

    Thanks
    Mohammad

    #210100
    Mar21
    Member
    Post count: 219

    ok thanks a lot!!

    MaR.

    #210109
    Mohammad – SUPPORT
    Moderator
    Post count: 27441

    Hi,
    You most welcome and Glad 🙂 to help you.
    Thanks
    Mohammad

Viewing 14 posts - 1 through 14 (of 14 total)

You must be logged in and have valid license to reply to this topic.

License required for one of the following items
Login and Registration Log in · Register