• Resolved kristiansaomi

    (@kristiansaomi)


    Hi support! Im using multilingual and have succeded to translate all my website very easy and effective. However there is a specific “quick view” function that is avaible for all products. Iv tried to contact the authors of the theme that says its allready displayed in english in the theme files and shouldnt be a problem from their way.

    They have tried to add a code snippet without results:

    function my_text_strings( $translated_text, $text, $domain ) {
    	switch ( $translated_text ) {
    		case 'L?GG I VARUKORG' :
    			$translated_text = __( 'ADD TO CART', 'reebox' );
    			break;
    			
    		case 'Lager' :
    			$translated_text = __( 'Stock', 'reebox' );
    			break;
    		
    	}
    	return $translated_text;
    }
    add_filter( 'gettext', 'my_text_strings', 20, 3 );

    Iv tried to debug using the advanced tab to maybe find the problem which cause my not being able to find or press on the strings to translate

    The page I need help with: [log in to see the link]

Viewing 4 replies - 1 through 4 (of 4 total)
  • Thread Starter kristiansaomi

    (@kristiansaomi)

    Just to clarify:
    Im using swedish as my primary language and English as the second.

    So the problem is: 1. Im opening the editing panel to frontend “translate” with multilingual plug-in (Elementor site). Im trying to press on the Strings but they are then refering to somthing totally els? (Image link: https://ibb.co/30VPsyq)

    What may be the issue or what can i do to fix this? its critical :/

    https://www.spicycollective.se/hem

    Dragos

    (@dragosvrejiu)

    Hello,

    Thank you for getting in touch with us!

    Are there any SQL errors TranslatePress throws when accessing Settings->TranslatePress->General?

    Best wishes,

    Thread Starter kristiansaomi

    (@kristiansaomi)

    Well i can acess Translate>General without any problems?

    However i just notified somethig:
    So iv translated the String in the shopping page > Single product page:
    For eg: https://spicycollective.se/produkt/aloe-pro-v-aftercare-cream/
    (Same strings that is used in the Pop-up on quick view), its basically the same strings right?.

    Now we can switch between Swedish and English without no bugs detected in the single product page. However..

    In the pop up (Quick-view) i find it intressting that the same Strings are attached to swedish, so iv tried to view / press the Strings (once im in english mode) It gives me a console error. And with the new update it gives me the Strings as undefined.
    Image here(https://ibb.co/swNHPGS)

    Wrong String given in shop page (opening the quick view):
    Image: https://ibb.co/0nxPzMV

    String undefined in english firstpage – (quick view opened – Console error):
    https://ibb.co/S6MfyFs

    However jumping back to the Swedish version, the strings in swedish are the Strings that is prior and the result on what we are seeing, and the english tab under does nothing.
    Image: https://ibb.co/fnwqpKr

    Thread Starter kristiansaomi

    (@kristiansaomi)

    Iv regognized that once you want to edit a pop-up in elementor in general you have to translate it separetly in the elementor> pop-up> edit, and then translate it once the container is alone in the page.

    So is this a certian container that need to be translated alone?

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘Reboox theme + Quickview’ is closed to new replies.