Translate woocommerce strings - by Tiina

22 replies2 participantsUpdated by Rose Tyler

Full guideHow to translate a WooCommerce store
  • Avatar: tipadei
    Tiina
    Participant

    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

    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

    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

    Have you synchronized woocommerce translation?

    Regards

    Avatar: tipadei
    Tiina
    Participant

    Yes, but no change.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

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

    Regards

    Avatar: tipadei
    Tiina
    Participant

    Here

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    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

    Here:

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    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

    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

    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 https://www.8theme.com/documentation/xstore/theme-translation/base-theme-translation/ (the same for the legenda theme).

    Regards

    Avatar: tipadei
    Tiina
    Participant

    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

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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    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

    The translation doesn’t apply.

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

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

    Regards

    Avatar: tipadei
    Tiina
    Participant

    It works, thanks!

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    You’re welcome!

    Regards

    Avatar: tipadei
    Tiina
    Participant

    Hi,

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

    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    Have you synchronized translation? http://prntscr.com/k2gjd1
    Wp-admin access, that you provided above, is incorrect, so I can’t check the problem more deeply.

    Regards

    Avatar: tipadei
    Tiina
    Participant

    I don’t know how to synchronize translations manually, as I’m not using loco translate but poedit.

    Also, on my dashboard their is warning “Kauppa ei näyttäisi käyttävän suojattua yhteyttä. Suosittelemme että koko sivusto toimii suojatun HTTPS-yhteyden kautta jotta asiakkaiden tiedot ovat turvassa. Lisätietoja täällä.” which means my shop pages aren’t using https, but http. How can I change this?

    Here’s my wp-admin:

    Please, contact administrator
    for this information.
    Avatar: Rose Tyler
    Rose Tyler
    Support staff

    Hello,

    I’ve synchronized translation using Loco translate. Please check now – http://prntscr.com/k2sm8k > https://prnt.sc/k2sm3d

    Regards

Want to reply? Log in, or register with your ThemeForest purchase code, to reply to this topic.

Login / Register