mihai666g Posted January 5, 2016 Share Posted January 5, 2016 Hi, I want to add a language variable into a hook and I have something like this. $balancePanel->setFooterHtml( '<a href="clientarea.php?action=addfunds" class="btn btn-success btn-sm btn-block"> <i class="fa fa-plus"></i> Add Funds</a>' ); How can I add instead of "Add Funds" text something like{$LANG.addFunds} The guy from whmcs suport told something like this: Thanks for contacting technical support. It would be done along the lines of: $specialOfferHtml .= Lang::trans('languagefilekeyhere'); $specialOfferHtml .= <<<EOT </em></strong> for making us the best web host! </a> EOT; But I don't know how to make it work. Can somebody help me ? 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 5, 2016 Share Posted January 5, 2016 from your current code, just change it to... $balancePanel->setFooterHtml( '<a href="clientarea.php?action=addfunds" class="btn btn-success btn-sm btn-block"> <i class="fa fa-plus"></i> '.Lang::trans('addfunds').'</a>' ); 0 Quote Link to comment Share on other sites More sharing options...
mihai666g Posted January 5, 2016 Author Share Posted January 5, 2016 working, thanks. 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 5, 2016 Share Posted January 5, 2016 sentq has now updated his Credit Balance sidebar hook with the above multi-language code change. http://forum.whmcs.com/showthread.php?106891-Display-Credit-Balance-In-Six-Template&p=449555#post449555 0 Quote Link to comment Share on other sites More sharing options...
sentq Posted January 5, 2016 Share Posted January 5, 2016 sentq has now updated his Credit Balance sidebar hook with the above multi-language code change. http://forum.whmcs.com/showthread.php?106891-Display-Credit-Balance-In-Six-Template&p=449555#post449555 yes, thought it will be helpful for others I have done the same for the title as well 1 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.