Zum Inhalt springen

realurl [fileName] fehlt bei arabischer Sprachauswahl

Erstellt am 12. Januar 2008 · 1 Antwort · letzte Antwort am 12. Januar 2008

Tags: RealURL, TYPO3 4, Frage

chth ·

Hallo Forum,

Installation Typo3 Version 4.1.2
realurl 1.2.1

bei Auswahl der Sprache arabisch (arabische Schriftzeichen) wird der fileName (Page title auf arabisch) einer gewählten Seite in der URL nicht vollständig generiert, die Seite wird nicht vollständig wiedergegeben, es fehlen z.B. content_normal oder das logo. Die URL sieht so aus:

.... /ar/3.html

3 ist die übergeordnete Seite.

Die URL muß aber z.B. so aussehen:

.... /ar/3/(Pagetitle auf arabisch).html

es fehlen also: /(Pagetitle auf arabisch)

Hinweis:
Realurl läuft auf german oder english einwandfrei.

localconf.php

$TYPO3_CONF_VARS['EXTCONF']['realurl']['_DEFAULT'] = array(
  'init' => array(
    'enableCHashCache' => 1,
    'appendMissingSlash' => 'ifNotFile',
    'enableUrlDecodeCache' => 1,
    'enableUrlEncodeCache' => 1,
    'respectSimulateStaticURLs' => 0,
    'postVarSet_failureMode' => 'redirect_goodUpperDir',
  ),
  
  'redirects_regex' => array (   
  ),
    'preVars' => array(
      array(
        'GETvar' => 'no_cache',
        'valueMap' => array(
          'no_cache' => 1,
          ),
        'noMatch' => 'bypass',
      ),
      array(
        'GETvar' => 'L',
        'valueMap' => array(
                'de' => '0',
                'en' => '1',
                'ar' => '2',
                ),
        'valueDefault' => 'de',
      ),
    ),
    
    'pagePath' => array(
      'type' => 'user',
      'userFunc' => 'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
      'spaceCharacter' => '-',
      'languageGetVar' => 'L',
      'expireDays' => 0,
      'rootpage_id' => 1,
      'firstHitPathCache' => 1,    
    ),


    'postVarSets' => array(
      '_DEFAULT' => array(
        // news archive parameters
        'archive' => array(
          array(
            'GETvar' => 'tx_ttnews[year]' ,
          ),
          array(
            'GETvar' => 'tx_ttnews[month]' ,
                'valueMap' => array(
                'january' => '01',
                'february' => '02',
                'march' => '03',
                'april' => '04',
                'may' => '05',
                'june' => '06',
                'july' => '07',
                'august' => '08',
                'september' => '09',
                'october' => '10',
                'november' => '11',
                'december' => '12',
                )
          ),
        ),

        // news pagebrowser
        'browse' => array(
          array(
            'GETvar' => 'tx_ttnews[pointer]',
          ),
        ),
        
        // news categories
        'select_category' => array (
          array(
            'GETvar' => 'tx_ttnews[cat]',
          ),
        ),
        
        // news articles and searchwords
        'article' => array(
          array(
            'GETvar' => 'tx_ttnews[tt_news]',
              'lookUpTable' => array(
                'table' => 'tt_news',
                'id_field' => 'uid',
                'alias_field' => 'title',
                'addWhereClause' => ' AND NOT deleted',
                'useUniqueCache' => 1,
                'useUniqueCache_conf' => array(
                'strtolower' => 1,
                'spaceCharacter' => '-',
              ),
          ),
        ),
         
        array(
          'GETvar' => 'tx_ttnews[swords]',
        ),
      ),
    ),            
  ),

      
        'fileName' => array(
          'defaultToHTMLsuffixOnPrev'=>1,
          	'index' => array(
			'page.html' => array(            
				'keyValues' => array(
            				'type' => 1,
       				)
			),
        		'print' => array(
 				'keyValues' => array(
 			 		'type' => 98,
 					)
 			),      
      		),
    	),
 );

.htaccess

RewriteEngine On
RewriteBase /
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteCond %{REQUEST_FILENAME} !-l
RewriteRule .* index.php
RewriteRule ^[^/]*\.html$ index.php
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/ - [L]
RewriteRule ^/(typo3|typo3temp|typo3conf|t3lib|tslib|fileadmin|uploads|showpic\.php)/.*$ - [L]

TS

 config.simulateStaticDocuments = 0
 config.baseURL = meine url
 config.tx_realurl_enable = 1

# Sprachauswahl begin 

# SprachVariable L initialisieren
  config.linkVars = L
  config.uniqueLinkVars = 1

# Zeichencodierung  
  config.additionalHeaders = Content-Type:text/html;charset=utf-8

# kein Eintrag, dann ...
  config.sys_language_mode = content_fallback

# default german  
  config.sys_language_uid = 0
  config.language = de
  config.locale_all = de_DE
  date_stdWrap.strftime = %d. %B %Y
  time_stdWrap.strftime= %H:%M
  config.sys_language_mode = content_fallback
  
# german de
  [globalVar = GP:L = 0]  
    config.sys_language_uid = 0
    config.language = de
    config.locale_all = de_DE
    date_stdWrap.strftime = %d. %B %Y
    time_stdWrap.strftime= %H:%M
    config.htmlTag_langKey = de    
    config.metaCharset = utf-8  
  [global] 

# english en
  [globalVar = GP:L = 1]    
    config.sys_language_uid = 1
    config.language = en
    config.local_all = en_EN
    config.htmlTag_langKey = en  
    config.metaCharset = utf-8  
  [global]

# arabisch ar
  [globalVar = GP:L = 2]        
    config.sys_language_uid = 2
    config.language = ar
    config.local_all = ar_AR
    config.htmlTag_langKey = ar
    config.metaCharset = utf-8        
    # Textausrichtung
    # config.htmlTag_dir = rtl  
  [global]

# Sprachauswahl end

hat jemand eine Idee? Vielen Dank.
Christoph

chth ·

Eine Möglichkeit:

Menüpunkt als subtitle ausgeben, z.B. in arabisch, title z.B in deutsch, welcher dann in der URL steht ...

chth