[TYPO3] how to make content other lanuages in English?
Søren Schaffstein
soeren.schaffstein at media-lights.de
Tue Nov 14 09:28:58 CET 2006
Did you provide a way in the frontend to switch the languages? Like a
language menu?
If not try to test your language settings by adding the L-parameter to
the URL of your site.
www.domain.com/index.php?id=5&L=1
may work for spanish.
A menu for one additional lang could be done like this:
## Menu Localisation [Begin]
lib.menuLang = HMENU
lib.menuLang {
special = language
special.value = 0,1
special.normalWhenNoLanguage = 0
1 = GMENU
1 {
# translation exists
NO {
XY = [5.w], [5.h]
backColor = white
5 = IMAGE
5.file = fileadmin/templates/images/flags-label-german-act.gif ||
fileadmin/templates/images/flags-label-england-act.gif
}
# rollover effect
RO < .NO
RO = 1
RO {
5.file = fileadmin/templates/images/flags-label-german-act2.gif
|| fileadmin/templates/images/flags-label-england-act2.gif
}
# translation exists - currently selected
ACT < .NO
ACT = 1
ACT {
5.file = fileadmin/templates/images/flags-label-german-act.gif ||
fileadmin/templates/images/flags-label-england-act.gif
}
# missing translation
USERDEF1 < .NO
USERDEF1 = 1
USERDEF1 {
5.file = fileadmin/templates/images/flags-label-german.gif ||
fileadmin/templates/images/flags-label-england.gif
noLink = 1
}
# missing translation - currently selected
USERDEF2 < .USERDEF1
USERDEF2 = 1
USERDEF2 {
backColor = green
}
}
}
## Menu Localisation [End]
And have a look in the localisation guide on typo3.org
all the best
Søren
Bing Du wrote:
> Hi,
>
> When I add a Text type element, I can see the Language drop-down list
> which has [All], Default, Spanish and Chinese. If I select Spanish and
> save/close, the content doesn't show up in the browser. If I change it
> back to Default (which is English in our case), the content appears fine.
> So in order for other languages to work, what need to be done? Where
> should I go to check what's missing? I had a look at our TS template and
> found the following settings
>
> ### Setup Spanish
> [globalVar = GP:L = 1]
> config.sys_language_uid = 3
> config.language = es
> config.locale_all = es_US.utf8
> page.config.language = es
> config.htmlTag_langKey = es
> [global]
>
> ### Setup Chinese
> [globalVar = GP:L = 2]
> config.sys_language_uid = 4
> config.language = cn
> config.locale_all = zh_CN.utf8
> page.config.language = cn
> config.htmlTag_langKey = cn
> [global]
>
> Thanks much in advance for any help,
>
> Bing
More information about the TYPO3-english
mailing list