WordPress.org

Support

Support » Plugins and Hacks » qTranslate » [Plugin: qTranslate] Writing html in the template file with multiple languages

[Plugin: qTranslate] Writing html in the template file with multiple languages

Viewing 3 replies - 1 through 3 (of 3 total)
  • I solved it guys.

    Just surround it with this:
    <?php if(qtrans_getLanguage() == “es”) : ?>
    <h1>This is Spanish</h1>
    <?php endif ?>
    <?php if(qtrans_getLanguage() == “en”) : ?>
    <h1>This is English</h1>
    <?php endif ?>

    And you’re good to go!

    this made my day. thanks for sharing!

    this should do it as well:
    <?php _e("<!--:en-->english text<!--:--><!--:es-->spanish text<!--:-->"); ?>

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Plugin: qTranslate] Writing html in the template file with multiple languages’ is closed to new replies.
Skip to toolbar