Home Forums WoodMart support forum How can i translate satic text

How can i translate satic text

Viewing 7 posts - 1 through 7 (of 7 total)
  • Author
    Posts
  • #166430

    Lukszgz
    Participant

    i have a code for creating custom tab with static text in single product page.

    $tabs[‘ficha-tecnica’] = array( ‘title’ => __( ‘technique’, ‘woodmart’ ), ‘priority’ => 20, ‘callback’ => ‘get_custom_product_tab_content’ );

    I need text “technique” to be translated to “técnica”. In site loco plugin.
    Can you please help me out with this.

    #166496

    Hello,

    Can you please send me the WP admin login details of your site with the page URL where you have added the word then I will give you the possible solution to translate the word.

    Best Regards.

    #166498

    Lukszgz
    Participant

    Here it is

    #166504

    Lukszgz
    Participant

    Url is :-https://www.enbotella.com/vina-ardanza-reserva/ and code i have included in function.php file inside woodmart folder
    code was included to create a new tab in single product page.

    #166531

    Hello,

    Sorry you can not add the custom string inside the loco translate plugin. But you can use the code like this:

    $tabs[‘ficha-tecnica’] = array( ‘title’ => __( ‘técnica’, ‘woodmart’ ), ‘priority’ => 20, ‘callback’ => ‘get_custom_product_tab_content’ );

    Best Regards.

    #166549

    Lukszgz
    Participant

    But when i am putting “técnica” as it is, its showing new tab without text. Its not showing text. it is because it contains special character “é” if we put any other text which is not having special character its showing text on tab.
    can you please help me out of it?

    #166660

    Hello,

    Your issue has been solved. I have added the word in the woodmart.po file. Now the translation is showing fine. If you want to change more words you can do it from the link below:

    https://www.enbotella.com/wp-admin/admin.php?path=languages%2Floco%2Fthemes%2Fwoodmart-es_ES.po&bundle=woodmart&domain=woodmart&page=loco-theme&action=file-edit

    Best Regards.

Viewing 7 posts - 1 through 7 (of 7 total)