Hi,
nach eineigem hin und her hab ich´s bei mir zum Laufen gebracht. Eine Besonderheit war, dass bei mir die Standardsprache (0) Deutsch ist. Das hat eine Anpassung im der Extension notwendig gemacht (siehe Anhang). Ansonsten musste ich auch in meiner REALURL-Konfig was anpassen.
Hier mein Template:
config {
sys_language_overlay = hideNonTranslated
sys_language_mode = strict; 0
// Setting up the language variable "L" to be passed along with links
uniqueLinkVars = 1
linkVars = L(0-1)
// Standardsprache einstellen
sys_language_uid = 0
language = de
locale_all = de_DE.utf8
htmlTag_langKey = de
}
#Language detection
plugin.tx_rlmplanguagedetection_pi1 {
languageGPVar = L
defaultLang = de
useOneTreeMethod = 1
dontBreakIfLanguageIsAlreadySelected = 1
cookieLifetime = 0
testOrder = browser,ip
dieAtEnd = 0
}
# German language, sys_language.uid = 0
[globalVar = GP:L=0]
config {
sys_language_uid = 0
language = de
locale_all = de_DE.utf8
htmlTag_langKey = de-DE
dateFormat = %x
timeFormat = %X
plugin.tx_rlmplanguagedetection_pi1 >
}
plugin.tx_staticinfotables_pi1 {
languageCode = DE
countryCode = DEU
#countryZoneCode = NRW
}
# English language, sys_language.uid = 1
[globalVar = GP:L=1]
config {
sys_language_uid = 1
sys_language_mode = content_fallback;0}
locale_all = en_GB.utf8
htmlTag_langKey = en-EN
language = en
dateFormat = %x
timeFormat = %X
plugin.tx_rlmplanguagedetection_pi1 >
}
plugin.tx_staticinfotables_pi1 {
languageCode = EN
countryCode = ENG
}
[global]
Hier die wesentlichen Teiler der REALURL_CONF.PHP:
<?php
$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
'init' => array(
'enableCHashCache' => 1,
'doNotRawUrlEncodeParameterNames' => 1,
'appendMissingSlash' => 'ifNotFile',
'enableUrlDecodeCache' => 1,
'enableUrlEncodeHash' => 1,
'rootPageID' => 1,
),
'rewrite' => array(
),
'preVars' => array(
array(
'GETvar' => 'L',
'valueMap' => array(
'de' => '0',
'en' => '1',
),
/*'valueDefault' => 'en',*/
'noMatch' => 'bypass',
),
),
'pagePath' => array(
'type' => 'user',
'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
'spaceCharacter' => '-',
'languageGetVar' => 'L',
'expireDays' => 3,
'rootpage_id' => 1,
),
'fileName' => array (
'defaultToHTMLsuffixOnPrev' => 0,
'acceptHTMLsuffix' => 1,
'index' => array(
'_DEFAULT' => array(
'keyValues' => array(
)
),
),
),
);
?>
Und im Anhang die modifizierte Extensiondatei.
Hope it helps
Thomas
EDIT PS: Läuft unter TYPO3 4.7.7 und 6.0