Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • sloger Friend
    #156868

    Hello,
    I’d like to be able to switch languages via a menu link, for example:

    Home | About us | Russian

    when the user clics on Russian, the site changes to russian and the menu would look like this:

    Home | About us | English

    If the user now clics on ‘english’ the site would go back to english and the menu would look like the first one.

    I tried to put a language selector to the same position as menu, but for some reason, I don’t have this position in a drop-down list – maybe it’s a specific of the template that I use?

    Also, I tried to create a menu item with a link like that:
    http://www.prazdnik.ca/index.php?lang=ru
    but Joomla adds item id at the end of the link – “&Itemid=73” and I get “page not found” error!

    How can I accomplish this task, please?

    gray Friend
    #364594

    In JoomFish language selector is accomplished as a module. If you look at the code of mod_jflanguageselection you’ll see it’s not just a link. It involves trigging of the JF code and class. So, I’d recommend you to keep language selector as module and place it somewhere near the main menu.

    sloger Friend
    #364630

    The point is – I can’t place it anywhere near the menu in this template!
    There is no JA Menu position in the module’s position selector!?

    It is beacause I could not place it near the menu, I decided to make it look like a menu item…

    Saguaros Moderator
    #364651

    Now, you open the file: templates/ja_quazt/index.php and find the following code:


    <!-- END: MAIN NAVIGATION -->

    replace:


    <!-- END: MAIN NAVIGATION -->
    <div class="ja-topleft">fdfd
    <jdoc:include type="modules" name="topleft" />
    </div>

    and the following into the template.css file


    .ja-topleft{
    position:absolute;
    top:0px;
    right:10px;
    }

    When done, the template has a new position, it is “topleft”, you put the joomfish module on there

    sloger Friend
    #364915

    I found another solution already:

    Created menu item “Russian”, like that:
    Home | About us | Russian

    with a link:
    http://www.prazdnik.ca/index.php?lang=ru
    it is importat to use SEF URLs – this way you don’t get item ID at the end of the url…

    Then, using Joomfish, translated menu item into “English” and the link into “http://www.prazdnik.ca/index.php?lang=en”

Viewing 5 posts - 1 through 5 (of 5 total)

This topic contains 5 replies, has 3 voices, and was last updated by  sloger 13 years, 11 months ago.

We moved to new unified forum. Please post all new support queries in our New Forum