[TYPO3-english] Navigation and Translation Problem

Joshua Heinrich Karp jhkarp at gmail.com
Tue Nov 13 01:16:18 CET 2012


Hi folks,

I've got a problem I haven't been able to solve on my own. I'd love your
help.

At www.india-ava.org, I have an English site with a Hindi localization
whose navigation menu is broken in the Hindi localized version. Here's the
problem:

The pages all look good in English (for example,
http://www.india-ava.org/news.html) and in Hindi (
http://www.india-ava.org/hi/news.html). But the Hindi navigation menu
directs *every single navigation menu link* to
http://www.india-ava.org/hi.html.

If you go to the Hindi version of the website and click any of the
navigation links, you'll see that they all go to the same place. Your help
on fixing this issue would be deeply appreciated!

Thanks,
Joshua


PS: Below, I have pasted my template setup and my RealURL setup scripts.


This is the template setup:

# Display the admin panel on the frontend
config.admPanel = 1

# Disable the HTML comments Typo3 loves to print
config.disablePrefixComment = 1

# Clean up the source HTML
config.sourceopt.removeComments.keep.95 =
config.sourceopt.formatHtml.tabSize = 3
config.sourceopt.removeGenerator = 0
# Remove p.bodyclass
lib.parseFunc_RTE.nonTypoTagStdWrap.encapsLines.addAttributes.P.class >

# RealURL Setup
config.simulateStaticDocuments = 0
config.baseURL = http://www.india-ava.org/
config.tx_realurl_enable = 1
config.prefixLocalAnchors = all
config.pageTitleFirst = 0
config.uniqueLinkVars = 1
config.defaultToHTMLsuffixOnPrev = 1

## l18n

# Language: Default (English)
config {
    sys_language_mode = content_fallback
    sys_language_overlay = hideNonTranslated
    locale_all = en_US
    linkVars = L
}

# Language: Hindi
[globalVar = GP:L=1]
config {
    sys_language_uid = 1
    locale_all = hi_IN
    language = hi
}

## Return to global processing
[global]

# Set up the menu and the overall wrap
lib.mainMenu = HMENU
lib.mainMenu.entryLevel = 0
lib.mainMenu  {
wrap = <ul id="menu">|</ul>

# Configures the first level of the menu
 1 = TMENU
1 {
noBlur = 1
 expAll = 1

NO = 1
NO {
 wrapItemAndSub = <li class="leaf">|</li>
 wrapItemAndSub = <li class="leaf first">|</li> |*| <li class="leaf">|</li>
|*| <li class="leaf last">|</li>
 }
ACT = 1
ACT {
 wrapItemAndSub = <li class="leaf active-leaf first">|</li> |*| <li
class="leaf active-leaf">|</li> |*| <li class="leaf active-leaf last">|</li>
 ATagParams = class="link active-link"
}
}

# Configures the second level of the menu
# 2 < .1
# 2.wrap = <ul id="submenu">|</ul>
}

page = PAGE
page.typeNum = 0
page.10 = USER
page.10.userFunc = tx_templavoila_pi1->main_page


page {

headerData.10 = TEXT
headerData.10.value = <link rel="shortcut icon" type="image/jpg"
href="favicon.jpg" />

headerData.20 = TEXT
headerData.20.value = <link href="/fileadmin/css/blueprint/screen.css"
rel="stylesheet" type="text/css" media="screen, projection" />

headerData.30 = TEXT
headerData.30.value = <link href="/fileadmin/css/blueprint/print.css"
rel="stylesheet" type="text/css" media="print" />

headerData.40 = TEXT
headerData.40.value (
<!--[if lt IE 8]>
      <link rel="stylesheet" href="/fileadmin/css/blueprint/ie.css"
type="text/css" media="screen, projection">
    <![endif]-->
)

headerData.50 = TEXT
headerData.50.value = <link href="/fileadmin/css/site.css" rel="stylesheet"
type="text/css" />


}


lib.logo = IMAGE
lib.logo.file = fileadmin/img/header_logo.png
lib.logo.stdWrap.wrap = <a href="/index.php">|</a>

lib.footer = HTML
lib.footer.value (

<div class="footer_box" id="footer_contact">
   <p><strong>&copy; 2011 India Armed Violence Assessment</strong><br />
     Email: <a href="mailto:sonal.marwah at smallarmssurvey.org">
sonal.marwah at smallarmssurvey.org</a><br />
     Website: <a href="http://www.india-ava.org">www.india-ava.org</a></p>
</div>

<div class="footer_box" id="survey_logo">
   <a href="http://www.smallarmssurvey.org" target="_blank"><img
src="/fileadmin/img/survey_logo.jpg" alt="Small Arms Survey" /></a>
</div>

<div class="footer_box" id="graduate_inst_logo">
   <a href="http://graduateinstitute.ch/" target="_blank"><img
src="/fileadmin/img/graduate_inst_logo.jpg" alt="Graduate Institute |
Geneva" /></a>
</div>

)



And this is the RealURL setup:

<?php

/**
 *
 * aeUrlTool default realurl configuration
 * based on realurl-configuration of news.typo3.org
 * http://news.typo3.org/about/realurl-configuration/
 *
 */

$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['realurl'] = array (
    '_DEFAULT' => array (
        'init' => array (
            'enableCHashCache' => '1',
            'appendMissingSlash' => 'ifNotFile',
            'enableUrlDecodeCache' => '1',
            'enableUrlEncodeCache' => '1',
        ),
        'redirects' => array (
        ),
        'preVars' => array (
            '0' => array (
                'GETvar' => 'no_cache',
                'valueMap' => array (
                    'nc' => '1',
                ),
                'noMatch' => 'bypass'
            ),
            '1' => array (
                'GETvar' => 'L',
                'valueMap' => array (
                    'en' => '0',
                    'hi' => '1',
                ),
                'noMatch' => 'bypass',
            ),
            '2' => array (
                'GETvar' => 'lang',
                'valueMap' => array (
                    'en' => 'en',
                    'fr' => 'fr',
                    'es' => 'es',
                ),
                'noMatch' => 'bypass',
            ),
        ),
        'pagePath' => array (
            'type' => 'user',
            'userFunc' =>
'EXT:realurl/class.tx_realurl_advanced.php:&tx_realurl_advanced->main',
            'spaceCharacter' => '-',
            'languageGetVar' => 'L',
            'expireDays' => '7',
            'rootpage_id' => '119',
        ),
        'fixedPostVars' => array (
        ),
        'postVarSets' => array (
            '_DEFAULT' => array (
                'archive' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[year]',
                    ),
                    '1' => 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',
                        ),
                    ),
                ),
                'browse' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[pointer]',
                    ),
                ),
                'select_category' => array (
                    '0' => array (
                        'GETvar' => 'tx_ttnews[cat]',
                    ),
                ),
                'article' => array (
                    '0' => 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' => '-',
                            ),
                        ),
                    ),
                    '1' => array (
                        'GETvar' => 'tx_ttnews[swords]',
                    ),
                ),
            ),
        ),
        'fileName' => array (
//
// if you don't want .html-URLs set the following to "false" (e.g.
'defaultToHTMLsuffixOnPrev' => false,)
// then you get http://www.yourdomain.com/imprint/ instead of
http://www.yourdomain.com/imprint.html
//
            'defaultToHTMLsuffixOnPrev' => true,
            'index' => array (
                'rss.xml' => array (
                    'keyValues' => array (
                        'type' => '100',
                    ),
                ),
                'rss091.xml' => array (
                    'keyValues' => array (
                        'type' => '101',
                    ),
                ),
                'rdf.xml' => array (
                    'keyValues' => array (
                        'type' => '102',
                    ),
                ),
                'atom.xml' => array (
                    'keyValues' => array (
                        'type' => '103',
                    ),
                ),
            ),
        ),
    ),

);

?>


More information about the TYPO3-english mailing list