[TYPO3-shop] multi-language through locallang.xml?

Franz Holzinger franz at ttproducts.de
Mon Dec 29 22:34:32 CET 2008


Hello Maarten,

> Franz Holzinger schreef:
>>> I started implementing tt_products and I'm pretty impressed that it 
>>> works out of the box. I'm now trying to make it in two languages. In 
>>> the newsgroup I found a solution for this through:
>>>
>>> plugin.tt_products.templateFile = 
>>> fileadmin/template/products_css_de.html
>>> [globalVar = GP:L = 1]
>>> plugin.tt_products.templateFile = 
>>> fileadmin/template/products_css_en.html
>>> [global]
>>>
>>> but I'm wondering if it would be possible to do it with one template 
>>> and  a translation file, such as the pi1/locallang.xml that is used 
>>> in other extensions?
>>
>> This is already possible with tt_products 2.8.0 which is available at 
>> http://ttproducts.de .
> 
> I just installed the 2.8.0 extension, but I have problems figuring out 
> how to do it. There are pretty much template files in the template 
> folder of the extension. I already tried to match the markers that are 
> present in the pi1/locallang.xml with markers in the different template 
> files, but without succes. I wasn't able to find the example marker of 
> the setup either:
> 
> # Example of how to overrule LOCAL_LANG values for the plugin:
> #plugin.tt_products._LOCAL_LANG.default {
> #  pi_list_searchBox_search = Search!
> #}
> 
> Could you tell me if there is one 'overall' template with all markers 
> and could you give me an example of which xml to use, where the markers 
> are already translated?
> 
> I'm trying to find this language part out before I start with templating 
> and styling, because I think this is the basis of the implementation. I 
> hope you could help me.

This feature with a multiple language texts support for the template 
file is really very new. I have just uploaded the new extension 
addons_tt_products today into the TYPO3 TER.

See the file README.txt for a small description of the files.

The file template/pob_ttp_marker_xml.htm is the one which contains all 
the new text markers. The translation of these markers can be found in 
tt_products/marker/locallang.xml . Please send me any translations into 
missing languages.

If you need additional markers or want to modify one of the other 
example template files then you are invited to join the team for 
addons_tt_products on http://forge.typo3.org .

You can use this in TypoScript:

plugin.tt_products._LOCAL_LANG.default {
   pi_list_searchBox_search = Search!
}


- Franz



More information about the TYPO3-project-tt-products mailing list