Hello Cris, hello to everyone.
First of all, thanks for this fine module. You'll make my costumer happy. But, it didn't work in a proper way. Maybe i've missed something.
The CMS (SS2.4.5) is located at my costumers ISP (German:Strato) in a folder named ‘CMS‘. There are two TL-Domains (.com + .de) which are pointing to this specific folder. This bilingual website is working fine so far. ( urls, translations, i18n, langEditor a.s.o). So I wanted give your module a try. My code in _config.php looks like this.
…
// Set the site locale
i18n::set_locale('de_DE');
Object::add_extension('SiteConfig', 'Translatable'); // 2.4 or newer only
Object::add_extension('SiteTree', 'Translatable');
Translatable::set_default_locale('de_DE');
Translatable::set_allowed_locales(array('de_DE', 'en_US'));
//i18n::include_locale_file('event_calendar', 'de_DE');
//config for the TRANSLATABLE-DOMAINS Module -> switch the TLD depending on the locale
TranslatableDomains::addDomainHandler('www.faerber-acoustics.com','en_US');
TranslatableDomains::addDomainHandler('www.faerber-acoustics.de','de_DE');
…
The initial entering of this website works as expected. www.faerber-acoustics.de goes to the german locale and www.faerber-acoustics.com goes to the english language ( www.faerber-acoustics.com/homepage). But if i want to switch the language on lets say www.faerber-acoustics.de/technik to english (via the languageswitcher) the TLD is not changed. The switch url is www.faerber-acoustics.de/technology but it is redirected to /technik because it‘s the german TLD-Domain. I think the link should be www.faerber-acoustics.com/technology, right?
the code of the switch:
…
<div id="LangSwitcher" class="threecol last"><% _t('stromimzoostyle.HEADERLANGSHOWPAGEIN','Show page in: ') %>
<% control Translations %>
<a href="$Link" hreflang="$Locale.RFC1766" title="Change the language in...">$Locale.Nice</a> |
<% end_control %>
<span class="">$Locale.Nice</span>
</div>
…
Do i have to change the code of the language switcher? Any hints?
Thanks, Pipifix