i want display different message on footer ( /catalog/view/theme/themename/template/common/footer.tpl ) for each respective language of my opencart theme , i tried some code like:
$lang = $this->language->get('code');
echo $lang;
$data['lang'] = $this->language->get('code');
$this->data['language_code'] = $this->session->data['language'];
never of this work;
i want a code like this
if ( $language == 'en' ) { echo 'en'; } elseif ( $language == 'DE' ) { echo 'DE'; } .......
how i can do this with opencart 2.x ?