English 中文(简体)
3. 在《章程》中设立多语文网站
原标题:Setting a multilanguage site in TYPO3

我试图建立一个多语文网站,有打字3,但有一些麻烦。 该网站的缺省语是德语,但我也希望有英文和法文版本。 因此,我再界定了2种语文:英文,ID=2和法文,ID=3

下一步 我在模板中添加了这一文字:

config.linkVars = L
config.uniqueLinkVars = 2
config.sys_language_overlay = content_fallback
config.language = de
config.locale_all = de_DE
config.htmlTag_langKey = de-DE
config.sys_language_uid = 0

[globalVar = GP:L = 2]
config.language = en
config.locale_all = en_EN
config.htmlTag_langKey = en-EN
config.sys_language_uid = 2

[globalVar = GP:L = 3]
config.language = fr
config.sys_language_uid = 3
config.locale_all = fr_FR
config.htmlTag_langKey = fr-FR
[end]

And then I added this language menu, from the extension srlanguagemenu:

10 < plugin.tx_srlanguagemenu_pi1
10{
    languagesUidsList = 0,2,3
    defaultLayout = 2
    showLinkWithFlag = 0
    showCurrent = 1
}

但菜单只显示“英语”。 这是确切的标志:

<div class="tx-srlanguagemenu-pi1">
    <div class="CUR"><img src="typo3/gfx/content_client.gif" alt="" style="width:7px; height:10px;"><a href="index.php?id=46">English</a></div>
    <div class="SPC"> &nbsp; </div> <div class="INACT"></div>
    <div class="SPC"> &nbsp; </div> <div class="INACT"></div>
</div>

Also. In the menu, the name of the pages doesn t show the translated version.

我做了什么错误?

最佳回答

You need to translate not only the content of your page, but also the page. This is done via creating an "alternative_page_language" ("alternative Seitensprache" in german).

http://typo3.org/documentation/document-library/core-documentation/doc_core_tsref/4.7.0/view/1/7/#id784990“rel=” HMENU.special = 语言。

For working with translations, have a look at the INFO-Modul. There is a "Localization Overview", don t miss it:) I guess you already found the language View in the Page Modul.

问题回答

暂无回答




相关问题
Translation of labels

I already have one application running (in English language). I want to translate those application text to some native langauges with my program. It it possible to change it?

Implementing multi languages with CSS and PHP

I m building a small site, that needs to support 2 languages for the same page. Each language has different buttons on the page, the buttons are basically some images with text inside. The positioning ...

Multilingual virtual keyboard in java

I am planning to create a multi lingual keyboard using Java. can u give some ideas or suggestions for doing that? Is there any open source code or interface which i can use in my code?

How to make multilingual login in django?

I need to create multilingual website. But there is a problem with the login address. Do you know, how I can have /login/ for EN and /prihlasit/ for CS, etc... ? I can specify just one login url in ...

SEO of multi-language website

i am building a website with a multi-language feature. it would be hard if each of the pages are to be created manually for each language so instead, i have different php files for each language ...

Drupal Multi-language: Simple strings not translated

I m adding additional languages to a Drupal site that I m building. Getting the translation of content working is fairly easy using the Internationalisation module. Yet, simple things such as date ...

PHP - Mulilingual application design

There are many ways to design a multilingual application in PHP. Some language file based, others database based. I am looking to use it for mostly small amounts of text e.g errors - at most a ...

热门标签