• Resolved mstudioeu

    (@mstudioeu)


    Hi,

    I’m having issues with Loco Translate. The plug-in keeps downloading a second translation package of WooCommerce even if I already have a primary translation package installed in the custom folder. The plug-in keeps downloading a second translation package in the system folder. The second translation package overwrites my primary language package and causes issues.

    Also, there is a difference between them – my primary translation package has 11,952 strings and 6,112 pending, while the second translation package has 5,861 strings and 0 pending.

    Can you please help me with this?

Viewing 6 replies - 16 through 21 (of 21 total)
  • 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.

    Thread Starter mstudioeu

    (@mstudioeu)

    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 1 month, 2 weeks 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.

    Thread Starter mstudioeu

    (@mstudioeu)

    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 1 month, 2 weeks 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, .jsonand .l10n.php files which will be next to your PO file once you’ve saved it from the editor.

    Thread Starter mstudioeu

    (@mstudioeu)

    Thanks for everything, Tim, I really appreciate your time!

    Take care!

Viewing 6 replies - 16 through 21 (of 21 total)
  • You must be logged in to reply to this topic.