Skip to main content
added 54 characters in body
Source Link
Nicolai Grossherr
  • 18.9k
  • 8
  • 64
  • 109

You can get the current language with qtranslate withusing the function qtrans_getLanguage(); and then use it like this for conditionally showing content:

    <?php  
        if ( qtrans_getLanguage() == 'en' ) {
          //put your code in here
        }
        elseif ( qtrans_getLanguage() == 'de' ) {
          //put your code in here
        }
    ?>

You can get the current language with qtranslate with qtrans_getLanguage() and use it like this:

    <?php  
        if ( qtrans_getLanguage() == 'en' ) {
          //put your code in here
        }
        elseif ( qtrans_getLanguage() == 'de' ) {
          //put your code in here
        }
    ?>

You can get the current language with qtranslate using the function qtrans_getLanguage(); and then use it like this for conditionally showing content:

    <?php  
        if ( qtrans_getLanguage() == 'en' ) {
          //put your code in here
        }
        elseif ( qtrans_getLanguage() == 'de' ) {
          //put your code in here
        }
    ?>
Source Link
Nicolai Grossherr
  • 18.9k
  • 8
  • 64
  • 109

You can get the current language with qtranslate with qtrans_getLanguage() and use it like this:

    <?php  
        if ( qtrans_getLanguage() == 'en' ) {
          //put your code in here
        }
        elseif ( qtrans_getLanguage() == 'de' ) {
          //put your code in here
        }
    ?>