Jump to content

language variables in hooks


mihai666g

Recommended Posts

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 ?

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated