Sonu2007 Posted June 11, 2014 Share Posted June 11, 2014 We are using condition if $pagetitle eq "Client Area" xx else yyy this works normally as long as client's default language is English but it is not working for other languages. What string to use which works for all languages 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 11, 2014 Share Posted June 11, 2014 perhaps it would be... if $pagetitle eq $_LANG.clientareatitle xx else yyy 0 Quote Link to comment Share on other sites More sharing options...
Sonu2007 Posted June 11, 2014 Author Share Posted June 11, 2014 perhaps it would be... if $pagetitle eq $_LANG.clientareatitle xx else yyy not working 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 11, 2014 Share Posted June 11, 2014 apologies, it should be this... if $pagetitle eq $LANG.clientareatitle xx else yyy 0 Quote Link to comment Share on other sites More sharing options...
Sonu2007 Posted June 11, 2014 Author Share Posted June 11, 2014 works gr8 thanks, what to use in case of ALL default pages of WHMCS, i am thinking to use something like following, It is working good in case of english language but no with other language {if $pagetitle eq "Client Area" || $pagetitle eq "Shopping Cart" || $pagetitle eq "Announcements" || $pagetitle eq "Knowledgebase" || $pagetitle eq "Submit Ticket" || $pagetitle eq "Downloads" || $pagetitle eq "Support Tickets" || $pagetitle eq "Affiliates" || $pagetitle eq "Logout" || $pagetitle eq "Network Issues" || $pagetitle eq "View Ticket" || $pagetitle eq "Lost Password Reset" || $pagetitle eq "Register" || $pagetitle eq "Espace client"} 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 11, 2014 Share Posted June 11, 2014 take a look at the lang/english.php file and find the variables for these entries... e.g, Client Area is... $_LANG['clientareatitle'] = "Client Area"; therefore, you can use $LANG.clientareatitle if your {if} statement... Shopping Cart... $_LANG['carttitle'] = "Shopping Cart"; use $LANG.carttitle if your {if} statement... then it's just a case of finding all the entries you want in the language file and adding them to your {if} statement. 0 Quote Link to comment Share on other sites More sharing options...
Sonu2007 Posted June 11, 2014 Author Share Posted June 11, 2014 Thanks.... 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.