IF LANGUAGE - different costum footer

My eshop will be translated in 2 languages.

I have made a costum footer editing templates in 2.0.14.





Should i place code something like

{if $smarty.const.CART_LANGUAGE == "ENG"}
english html
{else}
other language html
{if}




or i better to do this through BLIOCK and languages in admin panel?



I find the second solution more difficult to costumize but if it is better i will go on with this.



thanks for any hint

Why is it with block manager more difficult? Because i think it is easyier… faster when you like to change it.

Reason you want to make this conditional at all versus simply having different language variables for the content? Assuming the layout/fllow is the same and it’s only the content that’s language sensitive.



And the value to test for would be ‘EN’, not ‘ENG’. Language codes are 2 character codes.

thanks for the tips



When i said this:[QUOTE]I find the second solution more difficult to costumize but if it is better i will go on with this.[/QUOTE]

I was trying to say that i find more difficult to make a costum design through blocks becouse you must fully understand existing structure and classes and make your code coexist with all sourounding cscart code.



Editing templates(using hooks) is more straight forward but i came across others ‘difficulties’



Difficulties editing templates

-too many IF ELSE checking the language or make additional language variables {lang.costum_text1}, {lang.costum_text1}

-difficult for the no expert people to change html and templates.



Difficulties using blocks

-usefull variables such as {$index_script}, {$images_dir} are unvailable



Sample code from my costum templates hooks

```php


style=“background-image: url(‘{$images_dir}/footer-bg.jpg’);

background-repeat: repeat-x;”>











```


Any tips how you work with costum design(trying to keep all cscart bock goodies available) are more than welcome
{$lang.payment_options}

Why do you need this?


[quote]

Difficulties using blocks

-usefull variables such as {$index_script}, {$images_dir} are unvailable

[/quote]



I have test it, i can add with blocks images or test depending on the language… no problem. I dont know what for problems you have…?



When i understand you right in your first post, you like only that the customer see a depending footer as the language…



O.K. maybe i do not understand it right, because my english isnt very good.