[TYPO3] A mess with the languages
Sander van Gelderen
mail at NOSPsandervangelderen.nl
Sat May 19 12:22:58 CEST 2007
Hello Niels,
I have solved some similar problems by going into the db (phpMyAdmin) and simply changing de uid. I do not have a record for the default language as you do.
So I would delete the record for spanish(uid=0), and update the records for en/de so their id's are 1 and 2.
After this you will have to check all your alternative language records, they will most likely show [INVALID VALUE] in the Language selector.
Also note I had some problems with static_info_tables, an update (2.0.3) is now available.
HTH,
Sander
Niels Fröhling schreef:
> Hy;
>
> I have a problem with a skew between the languages uid and the L-get.
>
> I have the following languages:
>
> default(0): spanish
> english(2): english
> german(3): german
>
> The missing 1 was another spanish, I deleted it when I realized, that it's
> even worst when the default is nothing.
>
> Now this whole messes the language-menu up. I'm not able to assign:
>
> L=0 default(0)
> L=1 english(2)
> L=2 german(3)
>
> Then the language-menu doesn't produce links anymore at all.
> If I assign:
>
> L=0 default(0)
> L=2 english(2)
> L=3 german(3)
>
> The language-menu produces links, but the UID gets deleted:
>
> index.php?id=28&L=0 Espanol
> index.php?id=2&L=2 English
> index.php?id=3&L=3 Deutsch
>
> If I enter manually index.php?id=28&L=2, the language menu becomes
> link-free again.
> There are no menu-titles in the other languages either. The content
> changes language though.
>
> Any explanation for this?
> http://adsignum.com/ for looking the case.
>
> Thanks
> Niels
>
> ####################################################################################
>
>
> config {
> sys_language_uid = 0
> language = es
> locale_all = es_SV
> }
>
> [globalVar = GP:L=0]
>
> config {
> sys_language_uid = 0
> language = es
> locale_all = es_SV
> }
>
> [globalVar = GP:L=2]
>
> config {
> sys_language_uid = 2
> language = en
> locale_all = en_UK
> }
>
> [globalVar = GP:L=3]
>
> config {
> sys_language_uid = 3
> language = de
> locale_all = de_DE
> }
>
> ####################################################################################
>
> # language menu template ----------------
> tmpl.language = HMENU
> tmpl.language.special = language
> tmpl.language.special.value = 0,2,3
> tmpl.language.special.normalWhenNoLanguage = 0
> tmpl.language.1 = GMENU
> tmpl.language.1.noBlur = 1
> tmpl.language.1.NO {
> backColor = #FF00FF
> transparentBackground = 1
> XY = 16, 16
>
> 1 = IMAGE
> 1.file = fileadmin/templates/pics/ui/_sv.png ||
> fileadmin/templates/pics/ui/_uk.png || fileadmin/templates/pics/ui/_de.png
>
> ATagTitle = Espanol || English || Deutsch
> ATagParams = style="opacity: 0.25"
> }
> tmpl.language.1.ACT < tmpl.language.1.NO
> tmpl.language.1.ACT = 1
> tmpl.language.1.ACT {
> ATagParams = style="opacity: 1.0"
> }
> tmpl.language.1.USERDEF1 < tmpl.language.1.NO
> tmpl.language.1.USERDEF1 = 1
> tmpl.language.1.USERDEF1 {
> backColor = #FF0000
> ATagParams = style="opacity: 0.5;"
> }
> tmpl.language.1.USERDEF2 < tmpl.language.1.NO
> tmpl.language.1.USERDEF2 = 1
> tmpl.language.1.USERDEF2 {
> backColor = #00FF00
> ATagParams = style="opacity: 1.0;"
> }
>
More information about the TYPO3-english
mailing list