• Resolved hkfooeyz

    (@hkfooeyz)


    Hey!

    I was wondering if there was a way to translate the frontend of this plugin on a multilanguage website. I tried with PoEdit but no success. Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Hi @hkfooeyz,

    Since our plugins do not have the translate option you can use the WPML plugins with woocommerce multilingual, that can be used to have different languages in the front end shop.

    Thread Starter hkfooeyz

    (@hkfooeyz)

    Hi,

    Thank you for your reply. I’ve been using polylang for the multilingual part of my website. Everything is translated besides this plugin. I created a template for the plugin and a custom translation. Unfortunatly the translation is not showing on the front end shop. Do I have to add some code to any php file? Should I move the .po and .mo files to a specific location? Should I ask Loco Translate? What’s your take on this? Thank you for your time.

    Hi

    You do the following to translate :

    -Create PO and MO file by using POEdit in to a dirctory ‘language’ on root folder
    -The files sould named as below format:
    wf-shipping-canada-post_<Language code>
    -Load Text domain in plugin root file (canada-post-woocommerce-shipping.php)
    eg: load_plugin_textdomain( ‘wf-shipping-canada-post’, false, dirname( plugin_basename( __FILE__ ) ) . ‘/languages/’ );

    This should do the job.

    This is hardly a half hour work.
    Do let us know if you have any query.

    Thread Starter hkfooeyz

    (@hkfooeyz)

    Hi

    Again, thank you for your help.
    I have a very basic understanding of programming.
    Where in the (canada-post-woocommerce-shipping.php) should I add those lines?
    Do I need to create a new function or insert it in an existing function?

    So sorry for bothering you!

    Hi @hkfooeyz,

    You can add that code anywhere outside the function, preferably in the bottom or the top where it will be easy to find it in case you want to edit or remove it.

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Plugin frontend translation’ is closed to new replies.