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 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.
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
no, that's not a configuration. But feel free to hack the /app_code/MultiLanguage/Functions.cshtml
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
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
is working on a reply...