• Resolved spitfire378

    (@spitfire378)


    Hello,

    I’m trying to translate your plugin in french without success.

    I use poedit using your file woo-product-stock-alert-en_US.po as reference. I saved my files in :

    • /wp-content/languages/plugins/woo-product-stock-alert-fr_FR.mo
    • /wp-content/languages/plugins/woo-product-stock-alert-fr_FR.po

    but nothing happens on front, any idea? thx for your help.

Viewing 7 replies - 1 through 7 (of 7 total)
  • @spitfire378 I am sharing translation guide of our another plugin, although the process is the same: https://wc-marketplace.com/knowledgebase/wcmp-translation-guide/

    If you still have doubts, please visit: https://www.youtube.com/watch?v=Z6aAnlyKoxk

    Kindly let us know if you need any further assistance.

    Regards,
    Moumita

    I want to transalte the plugin to Swedish. If I put my translation here it works:

    /wp-content/plugins/woocommerce-product-stock-alert/languages/woo-product-stock-alert-sv_SE.mo

    BUT then I will lose that file (and my translations) whenever I update the plugin. Best practice (from what I have understood) is to place the translation here:

    /wp-content/languages/plugins/woo-product-stock-alert-sv_SE.mo

    …but that doesn’t work (it doesn’t pick up the translated texts as it does when I put it in the plugin folder). Can you please advice how I can solve this? Have you coded the plugin according to the WordPress localization guidelines and used the correct text-domain?

    Putting the translation under /wp-content/languages/plugins/ works for other plugins!

    Thanks,
    Joakim

    @transbetacism please send us the translated files through https://wc-marketplace.com/contact-us/ or a link.

    So that we can add that in the plugin and put your name and profile link on the plugin page as the translation contributor.

    Let me know if you have any doubts or need any clarifications.

    Regards,
    Moumita

    Actually I want to add some translations that are customized for my site. So it wouldn’t be good to include it in the plugin.

    How do I get the translations to work while having them in the /wp-content/languages/plugins/ folder?

    In this case, please create a folder named “woo-product-stock-alert” within your /wp-content/languages/ and just place your specific language files there.

    It is our default plugins flow.

    Let me know if you need any further assistance.

    Regards,
    Moumita

    Thanks, that works!

    For future reference to others, I placed the translation here:

    /wp-content/languages/woo-product-stock-alert/woo-product-stock-alert-sv_SE.mo

    Glad to know that @transbetacism

    Regards,
    Moumita

Viewing 7 replies - 1 through 7 (of 7 total)
  • The topic ‘Can’t translate plugin’ is closed to new replies.