[Typo3] TemplaVoila and Localization

Hervé Inisan typo3 at self-access.com
Thu Jul 7 09:33:31 CEST 2005


> Hello Herve 
>   
> > 
> > Using TemplaVoila 0.4.0 (Typo3 3.8.0), I'm trying to localize 
> > a website.
> > I have only a 'cosmetic' problem: 
> > 
> > Under the Page module / Localization tab is a "Switch to 
> > language" selector box. And beside this combobox, a list of 
> > flags corresponding to my website languages. But the default 
> > flag is not displayed (red cross). The others are ok.
> > 
> > Is there a way to define the flag for my default language ?
> 
> In 3.7.0 with 0.4.0  this can be made by patch
> /typo3conf/ext/templavoila/mod1/class.tx_templavoila_mod1_sidebar.php
> Line 278
> 				$optionsArr [] = '<option 
> style="'.$style.'"
> value="'.$language['uid'].'"'.($pObj->MOD_SETTINGS['language'] ==
> $language['uid'] ? ' selected="selected"' :
> '').'>'.htmlspecialchars($language['title']).'</option>';
> //patch 2005_05_10
> if ($language['uid']==0)
> $language['flagIcon']="../../../../typo3/../t3lib/gfx/flags/de.gif";  
> 				$availableTranslationsFlags .= '<img
> src="'.$language['flagIcon'].'"
> title="'.htmlspecialchars($language['title']).'" alt="" /> ';
> 
> (path for German flag)

Thank you Valery, I'm going to try that on v3.8

In your case, the missing content elements are not displayed in the "Unused
elements" of the Page module?
On a fresh 3.8 install, the CE get well displayed on the frontend.

-- Hervé Inisan.





More information about the TYPO3-english mailing list