mkilani Posted October 17, 2013 Share Posted October 17, 2013 Hello, What's the way to detect the language please in header.tpl? I've tried this code but it didn't work, $language is always empty: {if $language eq "English"} Language is English {else} Language is not English {/if} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 17, 2013 Share Posted October 17, 2013 i've just used {debug} in footer.tpl (which is where the language dropdown is) and I got the following result... {$language} "english" switching to Russian in the dropdown gives... {$language} "russian" so perhaps your code is correct, but you need to specify the language in lowercase. 0 Quote Link to comment Share on other sites More sharing options...
Tobraq44 Posted October 19, 2013 Share Posted October 19, 2013 Okay.. I agree with this, but Is there any specific Language translator to translating language in Forum home page. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS Chris Posted October 19, 2013 Share Posted October 19, 2013 Hey guys, Check this post out:http://blog.whmcs.com/guests.php?t=67990 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted October 19, 2013 Share Posted October 19, 2013 Okay.. I agree with this, but Is there any specific Language translator to translating language in Forum home page. tried using Google Translate ? 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.