如何在 Typo3 CMS 中配置语言菜单

How To configure Language menu in Typo3 CMS

您好,我想在本地设置语言菜单,如何在我的网站上配置多语言?我想要完全一样:

德驰 |英语

如果我点击英文,所有页面内容都是英文的,如果可能的话,请逐步描述,因为我是 typo3 的新手。

下面的脚本可以帮助您更多地设置语言

    NO{
    {
      linkWrap = <li> | </li> 
      stdWrap.override = DEUTSCH || ENGLISH
      ATagTitle = DEUTSCH || ENGLISH
      stdWrap.typolink.parameter.data = page:uid
      stdWrap.typolink.additionalParams = &L=0 || &L=1
    }

更多详情请访问https://jainishsenjaliya.wordpress.com/2012/11/05/language-menu-via-typoscript/

    # Language Menu
    lib.lang_menu = COA
    lib.lang_menu {
        10 = HMENU
        10 {
            special = language
            special.value = 0,1
            1 = TMENU
            1 {
                expAll = 0
                wrap = <div class="lang"><span aria-hidden="true" class="glyphicon glyphicon-globe"></span><div class="btn-group"><button class="btn btn-default btn-xs dropdown-toggle language_menu" type="button" data-toggle="dropdown" aria-expanded="false">DE  <span class="caret"></span></button><ul class="dropdown-menu" role="menu">|</ul></div></div>
                wrap = <ul class="language">|</ul>
                NO = 1
                NO {
                    stdWrap.cObject = TEXT
                    stdWrap.cObject {
                        value =  DE || EN

                    } 
                    allWrap = <li>|</li>

                }
                RO < .NO
                RO = 1
                RO.ATagParams = class="hover"

                ACT < .NO
                ACT = 1
                ACT {
                    #ATagParams = |*| class="active" |*| class="active"
                    #doNotLinkIt = 1
                    allWrap = <li class="active">|</li>

                }

                USERDEF1 < .NO
                USERDEF1.allWrap =  <li>|</li>  
                USERDEF1.doNotLinkIt = 1    
            }
        }
    }


Also you need to configure in config.ts

# Considered DE is default.
config {
    htmlTag_langKey = de
    sys_language_uid = 0
    language = en
    locale_all = en_US
}


[globalVar = GP:L = 1]
config {
    htmlTag_langKey = en
    sys_language_uid = 1
    language = en
    locale_all = en_US
}
[global]

以上错别字已放入您的配置错字中

http://typo3.org/extensions/repository/view/static_info_tables

安装上面的扩展然后按照说明进行操作

然后在 select 网站语言之后创建您自己的语言,然后 select 从下拉菜单中选择