Translate woocommerce strings - by Tiina

This topic has 23 replies, 2 voices, and was last updated 5 years, 9 months ago ago by Rose Tyler

  • Avatar: tipadei
    Tiina
    Participant
    May 29, 2018 at 12:15

    After an update there are some new strings that are not translated in woocommerce checkout and account row. These seem to be appear in English during the checkout:

    Update cart
    Shipping
    I have read and agree to the website %s

    The last one I couldn’t even find from the theme’s .pot file. If I make changes in directly to woocommerce files they don’t show on page.

    22 Answers
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 29, 2018 at 13:55

    Hello,

    Have you tried to synchronize translation files?
    Button Sync (Loco Translate plugin http://prntscr.com/glemdq) allows you to synchronize your translation file with updated pot file. It means if we made any changes in template files that may affect transaltion or we added new string for the translation and you updated theme you need to synchronize your translation with updated files. Only after synchronization, you’ll be able to translate new strings or strings that were changed.
    Also, don’t forget to backup all the files before any update.

    Regards

    Avatar: tipadei
    Tiina
    Participant
    May 31, 2018 at 12:54

    Originally I have translated the legenda.pot file with poedit, but now I added Loco plugin and synchronized my translated fi.po file.
    The strings:
    Shipping
    I have read and agree to the website %s
    are still not there.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    May 31, 2018 at 13:28

    Have you synchronized woocommerce translation?

    Regards

    Avatar: tipadei
    Tiina
    Participant
    June 2, 2018 at 14:48

    Yes, but no change.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 4, 2018 at 08:20

    Hello,

    Please provide us with temporary wp-admin and FTP access so we can take a closer look.

    Regards

    Avatar: tipadei
    Tiina
    Participant
    June 4, 2018 at 14:04

    Here

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 4, 2018 at 14:32

    Thanks for wp-admin access.
    Ask your hosting provider support to create FTP account to your site files and give us the credentials.

    Regards

    Avatar: tipadei
    Tiina
    Participant
    June 5, 2018 at 16:45

    Here:

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 6, 2018 at 08:10

    Hello,

    I’ve translated “Shipping” http://prntscr.com/jrgqp2
    “I have read and agree to the website %s” you can translate here – http://prntscr.com/jrgr0y

    Regards

    Avatar: tipadei
    Tiina
    Participant
    June 6, 2018 at 09:36

    Update cart is still not getting translated even though it is translated in loco strings. Also, why isn’t the strings getting translated by adding .mo/.po files (that I have created with poedit) to the woocommerce language folder? Shouldn’t it be the same as the files created by loco translate?

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 6, 2018 at 09:48

    Loco Translate uses same files, I am not sure why you faced the problem with translation it via poedit.
    “Update cart” – you need to translate via translation files of theme.
    Also, you use translations files from wp-content/themes/legenda/languages folder, but I would recommend you to transfer these files to /wp-content/languages/themes folder, save the files with your language name and legenda theme suffix, e.g legenda-fi.po. Read more http://xstore.helpscoutdocs.com/article/30-base-theme-translation (the same for the legenda theme).

    Regards

    Avatar: tipadei
    Tiina
    Participant
    June 6, 2018 at 12:22

    I did the translation to the theme files but no effect both on loco and poedit.

    I now deleted loco translate to see how things work without it but weirdly the woocommerce .mo and .po files have an error message popping up saying

    “Copying files from remote side failed.
    Can’t open woocommerce-fi_FI.po: No such file or directory”

    but still these files are working on front-end..

    Avatar: tipadei
    Tiina
    Participant
    June 6, 2018 at 12:49

    I got the woocommerce to work. Still trying to fix the update cart string.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 6, 2018 at 13:04

    I do not see a problem with it on my test site even via poedit http://prntscr.com/jrkr1g
    Can’t you find “Update cart” or translation doesn’t apply?

    Regards

    Avatar: tipadei
    Tiina
    Participant
    June 6, 2018 at 14:34

    The translation doesn’t apply.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 6, 2018 at 15:34

    I’ve synchronized translation https://prnt.sc/jrn5rt Please check now http://prntscr.com/jrn6lz

    Regards

    Avatar: tipadei
    Tiina
    Participant
    June 6, 2018 at 20:27

    It works, thanks!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff
    June 7, 2018 at 08:05

    You’re welcome!

    Regards

    Avatar: tipadei
    Tiina
    Participant
    July 4, 2018 at 08:29

    Hi,

    After the newest update it seems that translation for “Update cart” isn’t applying again.It appears on English again.

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