jeebee123 0 Posted August 20, 2020 Hi, Is it possible to disable cartain languages in WHMCS? I just wan't to show a few language options to my clients. Where can I select which languages they can choose? 0 Quote Share this post Link to post Share on other sites
jeebee123 0 Posted August 20, 2020 Nevermind... just delete the language files. Logic haha 0 Quote Share this post Link to post Share on other sites
brian! 3023 Posted August 20, 2020 4 minutes ago, jeebee123 said: Nevermind... just delete the language files. Logic haha that would work for now (and used to be the way to do this), but next time you run a WHMCS update, you will find that WHMCS will restore all those language files that you've just deleted - so if you're going down this road, you're going to have to remember to delete them again after every update. alternatively, there was a hook I posted almost 4 years ago that allowed you to specify the languages to include in the header dropdown and won't necessarily be affected by a WHMCS update. <?php # Specify Valid Languages for Language Chooser Hook # Written by brian! function locales_hook($vars) { $mylocal = $vars['locales']; $validlanguages = array("english","french","dutch"); foreach ($mylocal as $key => $value) { if (!in_array($value["language"],$validlanguages)) { unset($mylocal[$key]); } } return array("locales" => $mylocal); } add_hook("ClientAreaPage", 1, "locales_hook"); a user could still change their language via the URL, but there would be other solutions if you needed to ensure that they couldn't do that - though frankly, they'd only know how if they knew WHMCS. 0 Quote Share this post Link to post Share on other sites