Problem with translations with WMPL - by Xargo

This topic has 6 replies, 2 voices, and was last updated 7 years, 6 months ago ago by Robert Hall

  • Avatar: Xargo
    Xargo
    Participant
    October 27, 2016 at 08:01

    Hello,
    I installed Legenda theme with WMPL – already translated default.po file to Polish (website is going to be in 3 languages) – sadly there are some spots that are untranslated and not in default.po file. I mainly mean “items for” in cart – i found that it is in woo.php file of the theme but website will be in 3 languages so i need the option to translate it via translations not code change.

    I hope you’ll be able to help.

    5 Answers
    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 27, 2016 at 08:15

    Hello,

    Please provide us with wp-admin and FTP credentials in Private Content.

    Regards,
    Robert Hall

    Avatar: Xargo
    Xargo
    Participant
    October 27, 2016 at 08:29

    Sure thing

    Please, contact administrator
    for this information.
    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 27, 2016 at 09:43

    I’ve replaced the following code in \wp-content\themes\legenda\framework\woo.php file on line 938

    <span class="badge-number"><?php echo $woocommerce->cart->cart_contents_count; _e(' items for', ETHEME_DOMAIN);?></span>
    with

    <span class="badge-number">
    <?php echo $woocommerce->cart->cart_contents_count; ?> <?php echo ($woocommerce->cart->cart_contents_count != 1) ? __('items', ETHEME_DOMAIN) : __('item', ETHEME_DOMAIN) ; ?></span> <span class="for-label"><?php _e('for', ETHEME_DOMAIN) ?></span>
    </span>

    Also this will be fixed in the next theme update. Please check the translation now.

    Regards,
    Robert Hall

    Avatar: Xargo
    Xargo
    Participant
    October 27, 2016 at 09:51

    Thank You very much. Works perfectly now.

    Avatar: Robert Hall
    Robert Hall
    Support staff
    October 27, 2016 at 10:09

    You’re welcome!

    Regards,
    Robert Hall

  • Viewing 6 results - 1 through 6 (of 6 total)

You must be logged in to reply to this topic.Log in/Sign up

We're using our own and third-party cookies to improve your experience and our website. Keep on browsing to accept our cookie policy.