Jump to content

Comparing words with special characters in smarty using language plugin


Guest

Recommended Posts

{if ($smarty.get.season == {l s='Summer'})} OK {/if}

Consider this example where both $smarty.get.season and {l s='Summer'} are equal to Été. This comparison does not seem to work.

 

Consider this example where both $smarty.get.season and {l s='Summer'} are equal to Sommer. This comparison works fine. Same for Summer and Zomer.

 

Things get strange when I noticed it does work when inside blockcart.tpl:

{if ($smarty.get.season == {l s='Summer' mod='blockcart'})} OK {/if}

 

Hope you have a clue for me,

cheers

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...