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

Maarten ten Brinke mtenbrinke at sundayafternoon.nl
Mon Dec 29 18:21:07 CET 2008


Franz Holzinger schreef:
> Hello Maarten,
> 
>> 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.

Thanx,
Maarten


> 
>> I also saw the extension mkl_products, but that seems to be integrated 
>> in tt_products by now, right?
> 
> The multiple language feature of mkl_products has been implemented into 
> tt_products about 2 years ago, and even for categories.
> 
>> I'm a bit hesitating to create two templates (and possible more) that 
>> I need to update everytime I change something.
> In tt_products 2.8.0 (beta) you can use one template with markers which 
> will be substituted either by an entry in a XML file or overwritten by 
> TypoScript.
> 
> 
> - Franz


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