Woocommerce translation

Posted in: Newspaper
Post count: 200

Hi tagDiv team,

we just installed woocommerce and so far (while setting it up) it works without issues.

The website’s language is Bulgarian and everything needs to be in that language.

Wordpress and woocommerce are both set in BG, but there are many words/button labels, messages etc. (for example in different steps of the purchasing process) that are not translated in Bulgarian.

Following this short guide: https://docs.woocommerce.com/document/woocommerce-localization/

I localized the woocommerce’s PO file which is responsible for the translation. In our case: woocommerce-bg_BG ( you can download it here https://www.dropbox.com/s/7k4s6infkaucq01/woocommerce-bg_BG.po?dl=0 )

When I open that file using PoEdit, it seems that all words are translated in Bulgarian, but on the website not everything is translated – it is a mixture of English and Bulgarian.

See some examples here:

sample 1

sample 2

How can I fix this?

Thanks for your time.
Cheers,
S

Post count: 20688

Hi,

Maybe that happens because the language you are trying to translate in, is not yet stable and fully developed. That is why some words are translated and others not. Trying to translate in a different language (with 100% development) seems to work properly
https://www.screencast.com/t/84N26pr65IX4
https://www.screencast.com/t/DtmVH2TnyL

Thanks

Post count: 200

Hi Simion,

Thanks for the reply.
I opened my .po file (downloaded from the server) which is responsible for the translation of woocommerce. In my case: woocommerce-bg_BG ( you can download it here https://www.dropbox.com/s/7k4s6infkaucq01/woocommerce-bg_BG.po?dl=0 )

When I open that file using PoEdit, it seems that all words are translated in Bulgarian, but on the website not everything appears translated – it is a mixture of English and Bulgarian.

Do you have any idea how to fix this? If I need to edit some other specific files, and you know which ones, please let me know.

Thanks

Post count: 20688

Hi,

I have tried like this. I downloaded the mo file as instructed in the tutorial
https://www.screencast.com/t/xgErbauB
I renamed the file as specified and pasted it in this folder
https://www.screencast.com/t/4Wk7h4uesqy4
Going to the product page some of the elements are translated and some are not
https://www.screencast.com/t/KuhyORuNrPP5
I then tried an online mo editor, and found that some strings are not translated and do not have an equivalent. The editor provides an option to add translations. For example the “Proceed to checkout” which I searched does not have a translation in the downloaded mo file
https://www.screencast.com/t/SwdFPBYRT
https://www.screencast.com/t/t6OWdRVBv
I replaced the previous mo file with the new one and the translation is displaying properly
https://www.screencast.com/t/WMRZCraR6t2
Maybe you need to search for the strings that do not exist and add them to the file. Seems to work as intended. You could try it and see if it works for you.

Thanks

Post count: 200

Hi Simion,

the thing is – the mo and po file both contain translation of those specific strings that appear as as not translated in the front end. See the samples.

View post on imgur.com

Thanks

Post count: 20688

Hi,

In my case the downloaded mo file did not contain some translations, but after adding theme manually, they display properly. I simply placed the mo file in the mentioned folder, added the missing translations and they were displayed accordingly in my case. maybe you just need to clear the cache if you have any, in order to refresh the data.

Thanks

Post count: 200

Can you recreate my sample? Does it have a translation when you recreate it?
I don’t need to clean caches as I’m not making any change. The translation is in the .mo file by default. It just doesn’t appear on the site correct.

I’m trying to find out where’s the problem, because I need to resolve it fast.

Thanks

  • This reply was modified 9 years by DaveS.
Post count: 20688

Hi,

I tried recreating it and it does not have a translation for some of the elements. That is why I added them manually and solved the problem that way. I don’t know what else to say, maybe you could ask for help from more advanced users on specific forums, like Woocommerce.

Thanks

Post count: 200

Hey there,

I successfully translated almost all strings! There are only 4 specific strings left, that have a translation in the mo file, but it doesn’t show up on the front end…

These are:

Customer matched zone:
Shipping
Flat rate:
Phone

Can be seen here:

View post on imgur.com

View post on imgur.com

View post on imgur.com

The mo file can be downloaded here:

https://www.dropbox.com/s/yhulm9iwvcgh7sn/woocommerce-bg_BG.mo?dl=0

I’ll be very thankful if you help me to sort this out.

Thanks

Post count: 200

I found the field for the translation of “Flat rate”, but can’t find out how to translate the last 3 strings.

Post count: 20688

Hi,

You could just try and add them in the mo file like I did, and they will be displayed. That method should work and maybe it would be easier to do. Try and add the missing translations manually and see the result.

Thanks

Post count: 200

Hi,

they are already added. If you check the mo file that I provided, you should see them.

Thanks

Post count: 20688

Hi,

They seem to be added yes. But the translated text is not appearing on the cart page for me as well – https://www.screencast.com/t/ewNfvdYQYlxl
I don’t know why it is not working since the translation is available for these items. You could search online for similar problems translation the Woocommerce cart page, maybe you will find some solutions. Or maybe try to use the plugin mentioned andse if it can be done with it
https://docs.woocommerce.com/document/woocommerce-localization/#section-11

Thanks

Viewing 13 posts - 1 through 13 (of 13 total)
The forum ‘Newspaper’ is closed to new topics and replies.