Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Anthony Candaele 1197 posts 2049 karma points
    Feb 02, 2013 @ 12:08
    Anthony Candaele
    0

    Goya Multilanguage Tools and multi site structure

    Hi,

    I use the Goya Multilanguage Tools on a multiple site site structure:

    As you can see in the screenshot, there are two websites:

    Israel : www.energypartner.co.il
    Japan: www.energypartner.co.jp

    Each site has multiple language versions:

    Israel: Hebrew, English, Arabic
    Japan: Japanes, English

    The Goya Multi Language selector work fine in this scenario:

    Israel site:

    Japanese site:

     

    The only problem I have, as you can see in the screenshots, is that for the Israelic site the Japanes flag is also shown, and on the Japanese website the Israelic webiste is also displayed.

    Ideally, I would like to have for the Israelic website only the Israelic, English and Arabic flag, while for the Japanese website only the Japanese and English flag.

    Does anyone know how to configure this?

    I should also mention that both country nodes (Israel, Japan) implement the same masterpage that contains the MLLanguageSwitcher Macro.

    Thanks for your help,

    Anthony

     

  • Yannick Smits 321 posts 718 karma points
    Feb 02, 2013 @ 12:44
    Yannick Smits
    1

    no, that's not a configuration. But feel free to hack the /app_code/MultiLanguage/Functions.cshtml

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 02, 2013 @ 17:45
    Anthony Candaele
    0

    Hi Yannick,

    Thanks for the advice. I checked /app_code/MultiLanguage/Functions.cshtml . I guess the best way to enable this scenario is to adjust the GetDomains() method,so that it doesn't list all domains, but only the domain of current node. I think this could be accomplished by changing this line of code:

    Node parent = new Node(-1);

     Gonna test this by giving a hard coded value of the parent node id.

    greetings,

    Anthony

     

  • Anthony Candaele 1197 posts 2049 karma points
    Feb 02, 2013 @ 17:57
    Anthony Candaele
    100

    yes, it works,

    just passed the masternodeid to the GetDomains function:

    changed this line in the GetUrlsAndLanguages(int nodeid) method:

    Listdomains = GetDomains();

    to

    Listdomains = GetDomains(masternodeid);

    Then in the GetDomains() method, I just needed to change the signature to GetDomains(int masternodeid) and change this line in the method:

    Node parent = new Node(-1);

    to

    Node parent = new Node(masternodeid);

    greetings,

    Anthony

Please Sign in or register to post replies

Write your reply to:

Draft