Ok, I've almost solved :)

TS SETUP:

config{

 sys_language_mode = content_fallback; 1,0
 sys_language_overlay = hideNonTranslated
 uniqueLinkVars = 1
 linkVars := addToList(L)
 sys_language_uid = {$bhsiteconstants.languageUid}
 language     = {$bhsiteconstants.languageName}
 locale_all     = {$bhsiteconstants.languageLocale}

 simulateStaticDocuments = 0
 baseURL = {$bhsiteconstants.realurl_baseurlpath}
 tx_realurl_enable = 1

}


TS CONSTANTS:

bhsiteconstants{
 languageUid=0
 languageName=it
 languageKey=it_IT
 languageLocale=it_IT.utf8
 realurl_baseurlpath = http://mysite.dev.com/
}
[globalVar = GP:L = 0]
bhsiteconstants{
 languageUid=0
 languageName=it
 languageKey=it_IT
 languageLocale=it_IT.utf8
 realurl_baseurlpath = http://mysite.dev.com/
}
[global]

// english
[globalVar = GP:L = 1]

bhsiteconstants{
 languageUid=1
 languageName=en
 languageKey=en_GB
 languageLocale=en_GB.utf8
 realurl_baseurlpath = http://en.mysite.dev.com/
}

[global]
//portuguese

[globalVar = GP:L = 2]

bhsiteconstants{
 languageUid=2
 languageName=pt
 languageKey=pt_BR
 languageLocale=pt_BR.utf8
 realurl_baseurlpath = http://pt.mysite.dev.com
}
[global]


This configuration works fine everywhere, except... the home page, where the language menu:

lib.langmenuhome = HMENU
lib.langmenuhome {
       special = language
       special.value = 0,1,2
       special.normalWhenNoLanguage = 0
       1 = TMENU
       1 {
   noBlur = 1
               NO = 1
               NO.linkWrap = <li> | </li>
               NO.stdWrap.setCurrent = Italiano || English || Português
               NO.stdWrap.current = 1
       ACT < .NO
       ACT.doNotLinkIt=1
               ACT.linkWrap = <li><strong> | </strong></li>


       }

 1.wrap= ul  id="langMenu" class="clearer clearfix">|</ul>
}


Still has this behavior: when I am in italian (L=0):

<ul class="clearer clearfix" id="langMenu">
<li><strong> Italiano </strong></li>
<li> <a href=" http://en.mysite.dev.com/";>English</a> </li>
<li> <a href=" http://pt.mysite.dev.com//";>Português brasileiro</a> </li>
</ul>

When I switch to english:

<ul  id="langMenu" class="clearer clearfix">
<li> <a href=" http://en.mysite.dev.com/";  >Italiano</a> </li>
<li><strong> English </strong></li>
<li> <a href=" http://pt.mysite.dev.com/";  >Português brasileiro</a> </li>
</ul>


I'll attach my realurl configuration

Thank you all for your help!


--------------------------------------------
Riccardo De Contardi – TYPO3 Certified Integrator
B Human Srl - www.bhuman.it <http://www.bhuman.it>
Via Canzio, 15 - 20131 Milano
TEL +39-02-20.23.271 - FAX +39-02-20.240.561
--------------------------------------------


Il 22/06/12 23.26, Riccardo De Contardi ha scritto:
Hello everybody

I need an urgent help with a TYPO3 multilanguage configuration (one-tree
et cetera configuration):
I use TYPO3 4.7 and the last version of RealURL.

I have 3 languages

Italian (ID=0), default
English (ID=1)
Portuguese (ID=2)

Every language must have its separate domain, I mean:

Italian: the baseurl is http://mysite.dev.com
English: the baseurl is http://en.mysite.dev.com
Portuguese: the baseurl is http://pt.mysite.dev.com

I've followed this tutorial:
http://www.van-tomas.de/blog/multi-languagedomain-setup-with-realurl-revised/index.html


and there are a couple of problems:

1. the language menu: when I switch to a language which is not the
default (L=0), the link to Italian (L=0) always fails and stay with
the last language selected :(

For example if I am in the english home page (http://en.mysite.dev.com),
the link to italian is

http://en.mysite.dev.com and not http://mysite.dev.com... it seems that
the parameter &L=0 is ignored.

If I disable RealURL, it works…

2. The url is not translated: I mean: I have a subpage "pagina 1"
(Italian) - the english title is "page 1"


if I go to  http://mysite.dev.com/pagina-1/ and then I switch to
english... it goes to  http://en.mysite.dev.com/pagina-1/

I was expecting http://en.mysite.dev.com/page-1/ instead! It seems that
pages_language_overlay is ignored!
There seems to be  a configuration problem , but I can’t find it


Thank you for your support and best regards



_______________________________________________
TYPO3-english mailing list
TYPO3-english@lists.typo3.org
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english

Reply via email to