13. 12. 2012, 16:55

Hallo Forum,
eigenartiger Weise kommt in der URL in der alternativen Sprache (z.B. Engl. oder Chinesisch) immer am Ende der Dateiname in Deutscher Sprache. Fuer den Kontakt immer /en/kontakt.html anstelle von /en/contact.html. Weiss jemand, wo der Fehler liegt?

Folgend die Scripte:

REALURLCONF.PHP:

  1. <?php
  2. $TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
  3. 'init' => array(
  4. 'enableCHashCache' => 1,
  5. 'appendMissingSlash' => 'ifNotFile',
  6. 'enableUrlDecodeCache' => 1,
  7. 'enableUrlEncodeCache' => 1,
  8. 'postVarSet_failureMode' => '',
  9. ),
  10. 'preVars' => array(
  11. 'GETvar' => 'no_cache',
  12. 'valueMap' => array(
  13. 'no_cache' => 1,
  14. ),
  15. 'noMatch' => 'bypass',
  16. ),
  17. 'GETvar' => 'L',
  18. 'valueMap' => array(
  19. 'de' => '0',
  20. 'en' => '1',
  21. 'cn' => '3'
  22. ),
  23. 'valueDefault' => 'de',
  24. 'noMatch' => 'bypass',
  25. ),
  26. ),
  27. 'pagePath' => array(
  28. 'type' => 'user',
  29. 'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
  30. 'spaceCharacter' => '-',
  31. 'languageGetVar' => 'L',
  32. 'expireDays' => 7,
  33. 'rootpage_id' => 1,
  34. 'firstHitPathCache' => 1,
  35. ),
  36. 'fixedPostVars' => array(),
  37. 'postVarSets' => array(),
  38. 'backPID' => array(
  39. 'GETvar' => 'tt_products[backPID]',
  40. 'lookUpTable' => array(
  41. 'table' => 'pages',
  42. 'id_field' => 'uid',
  43. 'alias_field' => 'title',
  44. 'addWhereClause' => ' AND NOT deleted',
  45. 'useUniqueCache' => 1,
  46. 'useUniqueCache_conf' => array(
  47. 'strtolower' => 1,
  48. 'spaceCharacter' => '-',
  49. ),
  50. ),
  51. ),
  52. ),
  53. 'categories' => array(
  54. 'GETvar' => 'tt_products[cat]',
  55. 'lookUpTable' => array(
  56. 'table' => 'tt_products_cat',
  57. 'id_field' => 'uid',
  58. 'alias_field' => 'title',
  59. 'addWhereClause' => ' AND NOT deleted',
  60. 'useUniqueCache' => 1,
  61. 'useUniqueCache_conf' => array(
  62. 'strtolower' => 1,
  63. 'spaceCharacter' => '-',
  64. ),
  65. ),
  66. ),
  67. ),
  68. 'products' => array(
  69. 'GETvar' => 'tt_products[product]',
  70. 'lookUpTable' => array(
  71. 'table' => 'tt_products',
  72. 'id_field' => 'uid',
  73. 'alias_field' => 'title',
  74. 'addWhereClause' => ' AND NOT deleted',
  75. 'useUniqueCache' => 1,
  76. 'useUniqueCache_conf' => array(
  77. 'strtolower' => 1,
  78. 'spaceCharacter' => '-',
  79. ),
  80. ),
  81. ),
  82. ),
  83. 'fileName' => array (
  84. 'defaultToHTMLsuffixOnPrev' => 1,
  85. 'index' => array(
  86. '_DEFAULT' => array(
  87. 'keyValues' => array(),
  88. ),
  89. 'print.html' => array(
  90. 'keyValues' => array(
  91. 'type' => 98,
  92. ),
  93. ),
  94. 'rss.xml' => array(
  95. 'keyValues' => array(
  96. 'type' => 100,
  97. ),
  98. ),
  99. 'rss091.xml' => array(
  100. 'keyValues' => array(
  101. 'type' => 101,
  102. ),
  103. ),
  104. 'rdf.xml' => array(
  105. 'keyValues' => array(
  106. 'type' => 101,
  107. ),
  108. ),
  109. 'rdf.xml' => array(
  110. 'keyValues' => array(
  111. 'type' => 102,
  112. ),
  113. ),
  114. 'atom.xml' => array(
  115. 'keyValues' => array(
  116. 'type' => 103,
  117. ),
  118. ),
  119. 'sitemap.xml' => array(
  120. 'keyValues' => array(
  121. 'type' => 200,
  122. ),
  123. ),
  124. ),
  125. ),
  126. );
  127. ?>

TYPOSCRIPT SETUP:
  1. ## RealURL
  2. config.simulateStaticDocuments = 0
  3. config.baseURL = http://mydomain.com/
  4. config.tx_realurl_enable = 1
  5. ## Spracheinstellung start
  6. config.uniqueLinkVars = 1
  7. config.linkVars = L
  8. config.sys_language_mode = strict
  9. config.sys_language_overlay = hideNonTranslated
  10. config.sys_language_uid = 0
  11. config.language = de
  12. config.locale_all = de_DE.UTF-8
  13. # Standardsprache UID 0 -> Deutsch
  14. [globalVar = GP:L = 0]
  15. config.sys_language_uid = 0
  16. config.language = de
  17. config.locale_all = de_DE.UTF-8
  18. plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 0
  19. [end]
  20. # Sprache UID 1 -> Englisch
  21. [globalVar = GP:L = 1]
  22. config.sys_language_uid = 1
  23. config.language = en
  24. config.locale_all = en_EN.UTF-8
  25. plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 1
  26. [end]
  27. # Sprache UID 2 -> Chinesisch
  28. [globalVar = GP:L = 3]
  29. config.sys_language_uid = 3
  30. config.language = cn
  31. config.locale_all = zh_CN.UTF-8
  32. plugin.tx_indexedsearch._DEFAULT_PI_VARS.lang = 3
  33. [global]