[TYPO3-english] "one-tree-fits-all-languages" problem

Tomiţă MILITARU tomita.militaru at gmail.com
Thu Sep 24 12:36:37 CEST 2009


On Thu, Sep 24, 2009 at 12:06 PM, Michael Leibenson <gramatron at gmail.com>wrote:

> 1. Why do you override styles.content? Maybe better to use temp.content <
> styles.content.get?
>
I was following the tutorial and I had in my template setup after the
override "temp.content < styles.content.get".
As I understood, I need to override it to take only the content that
corresponds with the current language.

> 2. Do you have page and content translated?
>
Yes, I have.

@Tomas Mrozek  Didn't understand the part with "config.locale_all" , it
should not be de_DE? Instead it should be en_DE at he German section too?
I have removed that part and the effect is the same.

>
>
> On Thu, Sep 24, 2009 at 11:37 AM, Tomiţă MILITARU <
> tomita.militaru at gmail.com
> > wrote:
>
> > Hello,
> > I have my website in 2 languages, english (default) and german (de). I've
> > followed this tutorial
> >
> >
> http://typo3.org/documentation/tips-tricks/multi-language-sites-in-typo3/and
> > deactivated RealURL for now, so I can try it.
> > But when I access a translated page for German, the content is still in
> > English. Here is some code:
> > Template setup:
> > # Default lang
> > config.linkVars = L
> > config.sys_language.uid = 0
> > config.language = en
> > config.locale_all = en_UK
> >
> > # German
> > [globalVar GP:L = 1]
> > config.sys_language_uid = 1
> > config.language = de
> > config.locale.all = de_DE
> > [GLOBAL]
> >
> > # Content
> > styles.content = CONTENT
> > styles.content.get {
> > table = tt_content
> > select.orderBy = sorting
> > select.where = colPos=0
> > select.languageField = sys_language_uid
> > }
> >
> > For example when I click the "View page" from the backend to see the
> > translated page, it goes to www.site.com/index.php?id=1&L=1 but the
> > content
> > is the same. (english)
> > Thanks.
> >
> >
> > --
> > Tomiţă MILITARU
> > AIESEC Sibiu Member
> > Board Member SbLUG
> > Junior Java Developer
> > Tel. +40741064681
> > _______________________________________________
> > TYPO3-english mailing list
> > TYPO3-english at lists.netfielders.de
> > http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>



-- 
Tomiţă MILITARU
AIESEC Sibiu Member
Board Member SbLUG
Junior Java Developer
Tel. +40741064681


More information about the TYPO3-english mailing list