www.webdeveloper.com
Results 1 to 5 of 5

Thread: revolution slider plugins translation

  1. #1
    Join Date
    Feb 2014
    Posts
    2

    revolution slider plugins translation

    hi,
    I tried to translate my revslider on wordpress with out wpml.
    I translate the website with Qtranslate.
    I create 2 slider, one FR and one EN.
    On the template i put this code
    <?php switch(ICL_LANGUAGE_CODE) {
    case '[en:]':
    putRevSlider("slider2");
    break;
    default:
    case '[fr:]':
    putRevSlider("slider1");
    break;
    }?>


    but only de FR slider appear.
    Did you know what is wrong with de code?
    Thanks for your help!

  2. #2
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,245
    Is the value of ICL_LANGUAGE_CODE really in the format [en:] ? (i would have thought it more likely to be simply en .
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  3. #3
    Join Date
    Feb 2014
    Posts
    2
    Thanks for your help!
    I try this way and its same result

  4. #4
    Join Date
    Aug 2004
    Location
    Ankh-Morpork
    Posts
    19,245
    I would try adding some debug code to find out what values are actually being checked:
    PHP Code:
    <?php
    switch(ICL_LANGUAGE_CODE) {
      case 
    '[en:]':
        
    putRevSlider("slider2");
        break;
      case 
    '[fr:]':
        
    putRevSlider("slider1");
        break;
      default:
        
    error_log("No match for ICL_LANGUAGE_CODE value of '".ICL_LANGUAGE_CODE."'");
        
    putRevSlider("slider1");
        break;
    }
    ?>
    If you don't want to monitor the PHP error log, then change the error_log() command to a print() command and display it directly to the browser for now (obviously don't want to do that in the live version).
    "Please give us a simple answer, so that we don't have to think, because if we think, we might find answers that don't fit the way we want the world to be."
    ~ Terry Pratchett in Nation

    eBookworm.us

  5. #5
    Join Date
    Feb 2014
    Location
    Québec
    Posts
    1
    Hi,
    In wordpress, i use a revolution slider plugin and i search a method to set a images sources link of a layer with php codes ?

    Do you have an idea how and where i can make that ???

    Big thanks !

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center



Recent Articles