• Hello,

    I’m using Woocomerce with a bought theme (Sovereign) and installed your plugin on my website.

    First of all, your plugin works wonderfully.

    However i have some problems to translate the dropdown menu for my cart …

    Translation doesn’t happen when I switch language only for this part.

    I’m using this fonction on my php page ‘woocommerce-dropdown-cart’ :

    <?php /* check if qtranslate function exists */
    if(function_exists('qtrans_getLanguage')) { 
    /* if language is English use this code */
    	if (qtrans_getLanguage()=="en"):  ?>
     ...
    <?php endif; 
    	/* if language is French use this code */
    	if (qtrans_getLanguage()=="fr"): ?>
    ...			
    		<?php endif;

    This function works fine for some pages ..

    The website is under maintenance but i can share in private you some logs if you want to have a look.

    Thanks in advance

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

Viewing 1 replies (of 1 total)
  • I have no idea of php but I’ve been looking around for a solution to my problem and think I may have found what you need. Again I have no idea but maybe your code should look something like this:

    if(function_exists(‘qtrans_getLanguage’)) {
    $lang = qtrans_getLanguage();
    if ($lang == “en”)
    $text = ‘english’;
    else
    $text = ‘fr’;

    but edited to fit what you want it to do.

    • This reply was modified 6 years, 10 months ago by _doesmarinate.
Viewing 1 replies (of 1 total)
  • The topic ‘Problem with traduction – dropdown cart’ is closed to new replies.