Jump to content

php with variable from language


squad1frogs

Recommended Posts

$_LANG['serverCA']['reissueCertificate'] = 'Reissue certificate';

 

function SSLCENTERWHMCS_ClientAreaCustomButtonArray() {
    $lang = \MGModule\SSLCENTERWHMCS\mgLibs\Lang::getInstance();
    return [
        $lang->t('reissueCertificate') => 'ClientAreaCustomReissueCertificate' ( how can I translate this line? )
        //$lang->T('contactDetails')     => 'ClientAreaCustomContactDetails'
    ];
}

Link to comment
Share on other sites

Link to comment
Share on other sites

6 hours ago, pRieStaKos said:

yes, tried it, it doesn't work

it outputs text to me "reissueCertificate"

Edited by squad1frogs
Link to comment
Share on other sites

On 10/15/2021 at 3:13 PM, squad1frogs said:

yes, tried it, it doesn't work

it outputs text to me "reissueCertificate"

$_ADDONLANG['reissueCertificate'] = "Reissue Certificate" ??

Also check here and either apply your lang. text on `addons/SSLCENTERWHMCS/lang/`, either on servers `servers/SSLCENTERWHMCS/langs/` depending where you want to show this.

If you can't manage to fix this, open an issue on GOGETSSL, on https://github.com/gogetssl/whmcs-addon/issues

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.

×
×
  • 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