WordPress.org

Ready to get started?Download WordPress

Forums

[resolved] Conditional Tag for language (6 posts)

  1. bluebird2
    Member
    Posted 3 years ago #

    Is there any Conditional Tag for language in WordPress?
    Something like:
    is_language()
    It would be very useful for multi-lingual website.

  2. gankahhwee
    Member
    Posted 3 years ago #

    i have the same question :)

  3. gankahhwee
    Member
    Posted 3 years ago #

    oh i think get_bloginfo('language')=='en-US' will do the job :)

  4. lucasdegen
    Member
    Posted 3 years ago #

    gankahhwee, thank you so much!

    It's been a challenge to translate the widgets today. It took me a few hours to find out what seem to be the problem targeting the language the qTranslate plugin generated.

    Using the widget-logic plugin, in combination with qTranslate plugin, now I can translate widgets in the sidebar.

    This mad my day. Cheers.

  5. evo252
    Member
    Posted 2 years ago #

    Same, thank you gankahhwee :)))))

  6. bluebird2
    Member
    Posted 2 years ago #

    Thanks!

Topic Closed

This topic has been closed to new replies.

About this Topic