WHMCS comes with a lot of available languages for its interface, few of them also quite exotic.
So many languages may not to be useful, especially if your system is specially addressed to a specific country.

The quick and easy way to reduce the number of languages requires simply to delete the files/languages you don't need from the lang folder.
This way, the delete language(s) will be removed from the menu.

Beware: when WHMCS will be updated, the deleted languages files will be restored; so these language files will be needed to be deted again.

Another (and more elegant) way is to use an action hook:



function locales_hook($vars) {
     $mylocal = $vars['locales'];
     foreach ($mylocal as $key => $value) { 
        if ($value["language"] != "english" && $value["language"] != "italian" && $value["language"] != "deutsch") {
            unset($mylocal[$key]); 
        }
     }
    return array("locales" => $mylocal);
}
add_hook("ClientAreaPage", 1, "locales_hook");



This hook will show only the specified languages (in the sample: english, italian, deutsch)

Found this article interesting?
Subscribe to DomainRegister´s newsletter!

You can unsubscribe at any time by simply clicking the link in the footer of our emails. For information about our privacy practices, please visit our website.

We use Mailchimp as our marketing platform. By clicking below to subscribe, you acknowledge that your information will be transferred to Mailchimp for processing. Learn more about Mailchimp s privacy practices here.

  • WHMCS
  • 3 uporabniku/om je bi članek v pomoč
Vam je bil odgovor v pomoč?

Povezani članki

 How to add a favicon in WHMCS

To add a favicon to your WHMCS install: copy your favicon (es. myfavicon.ico) in WHMCS folder...

 How to comment in template (.tpl) files

If you need to insert a comment in a .tpl file, or comment a block of code to disable it, you...

 How to insert a Youtube video in WHMCS knowledgebase article

To insert a YouTube video in an article of the WHMCS knowledge base, you need to insert following...

 How to disable a customer to pay invoices partly with credit balance

in WHMCS if a customer has not enough credit balance for full payment of an invoice, WHMCS allows...

 How to add a cookie bar to WHMCS

In order to add a cookie bar to your own installation of WHMCS: copy somewhere on your WHMCS...