WordPress.org

Ready to get started?Download WordPress

Forums

qTranslate
Manual Language Switching (3 posts)

  1. cansurmeli
    Member
    Posted 3 years ago #

    Hi.

    I've just started using qTranslate and it's working fine. I made the necessary translations. Everything done.

    Except that I need the link for language switching. There are two language flags on my theme that I designed specifically for my theme. qTranslate only provides a widget but I need dedicated links.

    Thanks.

  2. cansurmeli
    Member
    Posted 3 years ago #

    Anyway I've found the solution.

    ?lang=en

  3. chudoff.a
    Member
    Posted 3 years ago #

    <li <?php if(get_locale() == 'uk_UA') { ?>class="active"<?}?>><a class="ukr" href="/ua/">UA</a></li>
    <li <?php if(get_locale() == 'ru_RU') { ?>class="active"<?}?>><a class="ru" href="/ru/">RU</a></li>
    <li <?php if(get_locale() == 'en_US') { ?>class="active"<?}?>><a class="en" href="/en/">En</a></li>

    o convert url from it Qtranslate search his is add in url '/en/'

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags