Home Forums WoodMart support forum Widget Translation

Widget Translation

Viewing 11 posts - 1 through 11 (of 11 total)
  • Author
    Posts
  • #440894

    immolib
    Participant

    Hi

    I don find a way to translate the cart widget
    SHOPPING CART
    CLOSE

    On the homepage, it is not translated….but on all other pages it is well translated

    I use loco translate and i cannot find any chain missing.

    #440949

    Hello,

    You can translate/rewrite all theme and plugin texts via PO file in WordPress. Here is a video tutorial that should help you translate your website texts with a Loco Translate plugin https://www.youtube.com/watch?v=D3NsDdMzsls&list=PLMw6W4rAaOgKKv0oexGHzpWBg1imvrval&index=3

    Please check the video tutorial to see how to save the translation file correctly. You can remove the plugin and translations would remain. Also, translations would remain after each theme update.

    In order to translate the WooCommerce strings, you need to create a separate translation in Loco > Plugins > WooCommerce in the same way as shown in the video.

    Best Regards

    #440993

    immolib
    Participant

    Thanks but as i told you i know how to use loco translate and i cannot translae it.

    Problem is that the missing translation seems to come from xtemos widget
    wd-heading widget-heading
    class=”title widget-title”
    close-side-widget wd-action-btn wd-style-text wd-cross-icon

    What is weird is that on other pages, it is translated

    #441250

    Hello,

    Widget titles are translated manually without the Loco plugin. You need to find the widget in Appearance > Widget and replace the title widget.

    If you have any questions please feel free to contact us.

    Best Regards

    #441311

    immolib
    Participant

    There is no such widget in appearance.
    We are talking of a Woodmart widget used for woocommerce cart

    #441546

    Hello,

    Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.

    Best Regards

    #446790

    immolib
    Participant

    Hi
    I sent everything but got no answer
    Also, we have the same proble with the login pop. It is not translated and i see no missing chain

    #446930

    Hello,

    Please insert the site admin access into the Private content below the message area. We will take a closer look at the case.

    Best Regards

    #447012

    immolib
    Participant

    I did it yesterday !!!

    #447361

    immolib
    Participant

    We are getting a critical error since you logged in :
    [Wed Mar 01 10:34:11.566284 2023] [proxy_fcgi:error] [pid 20944:tid 140483070256896] [client 80.215.161.25:0] AH01071: Got error ‘PHP message: PHP Parse error: syntax error, unexpected ‘<‘ in /var/www/vhosts/choix.elyseesocean.com/httpdocs/wp-content/themes/woodmart/inc/integrations/woocommerce/template-tags.php on line 2086’, referer: https://choix.elyseesocean.com/

    #447549

    Hello,

    Please add this code to the functions.php of the child theme:

    add_filter('gettext_woodmart', function ($translation, $text, $domain) {
    	if ( 'Shopping cart' === $text ) {
    		return 'Ma Sélection';
    	} elseif ( 'Close' === $text ) {
    		return 'Fermer';
    	}
    
    	return $translation;
    }, 10, 3);

    I am sorry for the mistake, now it works.

    Best Regards

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