• Resolved hekys

    (@hekys)


    Hey,

    I would like to ask you, how can I translate the custom button to many languages. I have website in czech and english language, but have issue with translate the button.

    https://www.usb-4-logo.com/en/ (This button “Poptávka” I need translate to English version)

    My steps:
    1) I put into the class-wc-Woocommerce-Catalog-Enquiry-frontend.php file this line of code. (https://imgur.com/a/A256w)

    2) I wrote into the translate file this and save (mo version to languages folder) https://i.stack.imgur.com/KH6sX.jpg

    But its still showing only czech version. Can you help me how can I solve it?

    • This topic was modified 7 years, 6 months ago by hekys.
Viewing 1 replies (of 1 total)
  • Plugin Author WisdmLabs

    (@wisdmlabs)

    Hi,

    Please check if you are following the below steps:

    To translate Product Enquiry from to your preferred language, you need to download and install the ‘Loco translate’ plugin.
    This is a free plugin. You also need to download the ‘poedit’ editor

    After installing and activating the ‘Loco Translate’ plugin, you need to do the following.
    Go to Dashboard -> Loco Translate -> Manage translation.
    Go to the plugins section on the Manage translate page.
    Go to the Product Enquiry for WooCommerce.
    Click on ‘New Language’ – a new page will be loaded.
    On this page add the language of preference and click on ‘Start Translation’.
    A new page will open with options like Save, PO, MO, Sync etc.
    Click on PO and Mo options- Two files will be downloaded a PO file and a MO file.
    Open the downloaded PO file in the poedit editor. You can translate the fields of the plugin as per your convenience and SAVE the file.
    Now upload the edited PO file and the unedited MO file to the ‘Languages’ folder of the PE plugin through FTP.
    You can -> go to the public_html/wp-content/plugins/product-enquiry/languages to add the PO and MO files.

Viewing 1 replies (of 1 total)
  • The topic ‘Custom Button Translate’ is closed to new replies.