With "$tpl->setvariable( 'language_code', 'eng-EU');" you set a variable in the template named $language_code to further use it in the template, is that what you want?
I have the same problem with my custom extension. My "admin" siteaccess is in french, and my extension send some confirmation e-mail to customers (french or not!).
I would like to switch regional settings to good language (customer language) before parsing my mail template witch use i18n operator...
How can I do that?
You must be logged in to post messages in this topic!