Plugin Author
Tim W
(@timwhitlock)
can I use the Woo .po filе, кeep it in their system safe folder, edit and translate the strings with the assurance that that everything will be fine after the next plug-in/translation update?
I don’t think files under languages/woocommerce
will be modified during updates, but I can’t give you any assurances.
I don’t recommend using PO files installed by WordPress because they exclude script translations. I’ve pointed out that having 2 files is normal, and recommended that you leave them. I can’t advise on hacks to get around an unknown problem.
The system directory is languages/plugins/woocommerce-bg_BG.po
so I’m not sure if you are referring to that one? Is it safe to use that file from that directory?
Meanwhile, I have created a fresh installation and still have 2 language packages for one language. I can confirm that the custom folder one overwrites the system one. I guess I have to wait for an update so I can try to reproduce the issue again and report it back to you? I mean there’s no manual option to execute such an update?
-
This reply was modified 6 months ago by
mstudioeu.
Plugin Author
Tim W
(@timwhitlock)
The file at languages/plugins/woocommerce-bg_BG.po is installed by WordPress. Leave it alone and do as I’ve recommended.
You can run WordPress updates any time you want, but it probably won’t update things that don’t need updating. I have no clue how running an update could break the file loading order of my plugin. If you decide to report the issue again, please provide steps to reliably reproduce the effect.
So the bottom line is:
When I install WooCommerce and change the language to Bulgarian, I automatically have the Bulgarian package installed. I leave it as it is, as you recommended, as they exclude script translations.
I create another translation through the “New language” option and place it into the custom folder and start translating all strings according to my needs.
If that’s correct, can I use my custom .po file and upload it on another WooCommerce website? I mean: create another translation, place it into the custom folder, replace the .po file that I have already translated and I’m good to go?
Your time is highly appreciate, Tim, really!
-
This reply was modified 6 months ago by
mstudioeu.
Plugin Author
Tim W
(@timwhitlock)
can I use my custom .po file and upload it on another WooCommerce website?
Make sure you upload all related files, not just the PO. WordPress doesn’t actually read PO files. It reads the .mo
, .json
and .l10n.php
files which will be next to your PO file once you’ve saved it from the editor.
Thanks for everything, Tim, I really appreciate your time!
Take care!