How can i translate satic text
-
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.
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.
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.
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.
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?
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.