How to translate "cart… items for …"

This topic has 11 replies, 5 voices, and was last updated 7 years ago ago by Jack Richardson

  • Avatar: mkusinski
    mkusinski
    Participant
    March 14, 2017 at 21:41

    Hi,

    I’m translating Legenda into Polish using POEDIT. And I have a problem with translating text showing how many items are in cart and for how much $ (text located on the right side of cart icon in header). I didn’t found this string in .pot file. How should I do this?

    10 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    March 15, 2017 at 09:49

    Hello,

    Thank you for using our theme!
    Try to update your translation .po file as described here http://betterwp.net/wordpress-tips/create-pot-file-using-poedit./ (the section “Updating a .po (and .mo) file”).

    Regards,
    Rose Tyler.

    Avatar: poissonplume
    poissonplume
    Participant
    April 5, 2017 at 23:54

    Hello,
    I have the same issue as mkusinski.
    Actually, the text translated well before (including in version 3.0). I just moved to version 3.1 and I am falling into this issue. Can you please fix it in your next version?
    Is it also possible to provide with a quick interim solution?

    As far as I see, line 908 of the file woo.php shows :

    					<?php echo wp_kses_data( sprintf( '<span class="badge-number">%1$u %2$s</span>', WC()->cart->get_cart_contents_count(), _nx( 'item for', 'items for', WC()->cart->get_cart_contents_count(), 'top cart items count text', ETHEME_DOMAIN ) ) );?>
    

    This is where the issue seems to be located. The “item for” and “items for” words are not translatable. Do you confirm?

    Thanks in advance for your help !

    Avatar: poissonplume
    poissonplume
    Participant
    April 6, 2017 at 00:07

    Actually, I found an answer with my child theme… But please fix the issue in a future release 🙂
    Thanks !

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    April 10, 2017 at 12:28

    Hello,

    I sent your report to our developers.
    Thank you for the notice.

    Regards,
    Rose Tyler.

    Avatar: Pusbratkis
    Pusbratkis
    Participant
    April 14, 2017 at 07:57

    Hello,
    For me is the some problem and I’m using child-theme too. How U fix it?

    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 14, 2017 at 12:55

    Hello @Pusbratkis,

    Please provide us with wp-admin and FTP credentials in private content area.

    Regards,
    Jack Richardson.

    Avatar: Pusbratkis
    Pusbratkis
    Participant
    April 15, 2017 at 12:30

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 18, 2017 at 09:54

    Hello @Pusbratkis,

    Open your translation file in PoEdit, then go to Catalogue > Update from POT file http://prntscr.com/exrg76 > select legenda.pot file from the latest theme package in languages directory > check the translation of needed phrases, save the file and re-upload it to your server.

    Regards,
    Jack Richardson.

    Avatar: Pusbratkis
    Pusbratkis
    Participant
    April 20, 2017 at 06:29

    Thank You, working!

    Please, contact administrator
    for this information.
    Avatar: Jack Richardson
    Jack Richardson
    Support staff
    April 20, 2017 at 15:19

    Hello @Pusbratkis,

    If you upgraded woocommerce to the latest version then please revert back to 2.6.14 version https://downloads.wordpress.org/plugin/woocommerce.2.6.14.zip , as we haven’t released compatible theme update yet.

    Regards,
    Jack Richardson.

  • Viewing 11 results - 1 through 11 (of 11 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.