i am building a multilingual web site. i used "browser language" and "redirect page" tags on main page, so i can redirect visitors to the page in their language...
problem is that i want to insert a photo and give a short message to visitors in their language but i could not do that.
Code: Select all
{browser_lang accepted='fr,ru,en,es' default='en' assign='lang'}
{if $lang == 'fr'}
{redirect_page page="fr"}
{elseif $lang == 'ru'}
{redirect_page page="ru"}
{elseif $lang == 'es'}
{redirect_page page="es"}
{else}
{redirect_page page="en"}
{/if}
what i tried ? php sleep, jq and java timeout etc. but it does not read the code between functions.
lets say browser language is Spanish , it should give message "bienvenida", wait 5 seconds and after redirect page to es.
could you help me ?
thank you.