Edson Galina Fortes
Forum Replies Created
-
Hi @defunctlife ,
thanks for your help. We fix it for the nexte released plan for may
I’ll keep you in touche
Regards
Hi @korgaltvde ,
hope you’re fine ?
I think we got any feedback from you. Are you still facing your problem ?
RegardsForum: Plugins
In reply to: [Translate WordPress with Weglot - Multilingual AI Translation] Words countHi @rosemeremail ,
hope you’re fine. Sorry for the issue you’re facing. Can I have the url of your website to see what the problem with your wordcount ? Can you send me an exemple of exclusions who not works ?
Regards
Hi @uzip ,
hope you’re fine. Sorry for the issue you’re facing. I think the problem come from the lazy loading of your image.Can you try this filter :
<?php add_filter( 'weglot_get_dom_checkers', 'custom_uzip_dom_check' ); function custom_uzip_dom_check( $dom_checkers ) { //$dom_checkers contains the list of all the class we are checking by default class Img_Orig_File extends Weglot\Parser\Check\Dom\AbstractDomChecker { const DOM = 'img'; const PROPERTY = 'data-orig-file'; const WORD_TYPE = Weglot\Client\Api\Enum\WordType::TEXT; } class Img_Medium_File extends Weglot\Parser\Check\Dom\AbstractDomChecker { const DOM = 'img'; const PROPERTY = 'data-medium-file'; const WORD_TYPE = Weglot\Client\Api\Enum\WordType::TEXT; } class Img_Large_File extends Weglot\Parser\Check\Dom\AbstractDomChecker { const DOM = 'img'; const PROPERTY = 'data-large-file'; const WORD_TYPE = Weglot\Client\Api\Enum\WordType::TEXT; } class Img_Lazy_Srcset extends Weglot\Parser\Check\Dom\AbstractDomChecker { const DOM = 'img'; const PROPERTY = 'data-lazy-srcset'; const WORD_TYPE = Weglot\Client\Api\Enum\WordType::TEXT; } $dom_checkers[] = '\Img_Lazy_Srcset'; $dom_checkers[] = '\Img_Large_File'; $dom_checkers[] = '\Img_Orig_File'; $dom_checkers[] = '\Img_Medium_File'; return $dom_checkers ; }you can try this snippet on local or on a dev env before add it to your production site and tell me if it works?
Don’t hesitate if you have other questions
Regards
Hi @lgouaux ,
I’ve investigate and it seems that the amp story format don’t allow to add our custom button due to some tag validation : https://github.com/ampproject/amphtml/blob/main/extensions/amp-story/validator-amp-story.protoascii
I’ll reach the problem to my ceo to check if we’ll add the feature on a futur version.
For the moment you can use this filter to disable the button on your amp story :
function amp_story_callback( $dom ) { $button_services = weglot_get_service('Button_Service_Weglot'); $button_html = $button_services->get_html( 'weglot-default' ); if(strpos( $dom, '<aside data-wg-notranslate=""' ) !== false) { $dom = preg_replace( '/<aside\b[^>]*>(.*?)<\/aside>/', '', $dom ); return $dom; } } add_filter( 'weglot_render_default_button', 'amp_story_callback', 99, 2 );and add the button directly on your story with our shortcode
[weglot_switcher]or div<div id="weglot_here"></div>Regards
- This reply was modified 4 years, 1 month ago by Edson Galina Fortes.
Hi @lgouaux ,
hope you’re fine ? Sorry for the issue you’re facing, I’ll check the problem today and get you in touch
Regards
Hi @julianblauw,
hope you’re fine? I’m not sure I understand well ^^
If you want to use weglot to load your product via the rest API depending on you’re current language? If is that you can use the weglot_get_current_language() function to get this and use on your call APIAfter that, if you treat the response directly on php, it should be translate automatically. If you use the json and treat it with some js you can try to translate the json using this filter : https://developers.weglot.com/wordpress/filters/translations-filters#use-case-1
If you need more help on’t hesitate
Regards
Hi @rosemeremail ,
hoe you’re fine. I’m sorry with the issue you’re facing. In my side I can reproduce the issue but when I interact with the menu for example (see my video here : https://www.loom.com/share/db99f78bfee14719af6d96d736a0d59e
It seems that the image is here but we need to interact to display it, may it’s a js problem. What do you use to make this gallery ?
Regards
Hi @flagstore ,
hope you’re fine. Seems you’re not facing your issue anymore on mobile (the flag is displaying on my side) Can you confirm ?
Regards
Hi @korgaltvde ,
Iām Edson from Weglot.
I think we got any feedback from you. Are you still facing your problem ?
RegardsHi @aquasp ,
I’m Edson from Weglot.
I think we got any feedback from you. Are you still facing your problem ?
RegardsHi @sidneyvanderstoep ,
I’ve not notice wpml in your title. Here Its the weglot support forum, I think you may ask wpml support to help you with your issue.
Regards
Hi @annette-kunow ,
hope you’re fine? I’m sorry for the issue youre facig?
I can’t see the url you give me because I need to be connected to you’re admin to see that.
May you can send me your php log file (ask you host provider) to check the error causing the issue
Regards
Hi @jimfulmer ,
sorry for the issue you’re facing. Have css into tag style instead of file should not be modify. May you can provide an url where I can check the issue ?
Regards
Hi @hakre ,
thanks for your question. You’re right the weglot js integration and weglot wordpress integration are separate so you don’t have access to the weglot js object into our wordpress weglot.
Don’t hesitate I can help you š
Regards