Post by wooody » Sat Jun 19, 2010 2:12 am

Hi ALl,
can we make template for each language.. ??

and what is code to make if condition in any file ..

ex./

if Lang_en { load ...}

elseif lang_fr { load ...}

etc.


thanks

Newbie

Posts

Joined
Tue Jun 15, 2010 4:06 pm

Post by JAY6390 » Sat Jun 19, 2010 3:41 am

in your template use the code

Code: Select all

$this->language->get('code') 
to get a two letter representation of the language (like en for english)
(not 100% on this, not worked with mutli-lingual carts yet)

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom

Post by wooody » Sat Jun 19, 2010 5:19 am

Thank u ,

Newbie

Posts

Joined
Tue Jun 15, 2010 4:06 pm

Post by JAY6390 » Sat Jun 19, 2010 6:19 am

No problem :)

Image


User avatar
Guru Member

Posts

Joined
Wed May 26, 2010 11:47 pm
Location - United Kingdom
Who is online

Users browsing this forum: No registered users and 3 guests