The language files are provided unencoded to allow you to view the language strings that WHMCS uses.
However we do not recommend editing these files directly. Instead overrides should be used.
Language file overrides allow you to customise language strings and phrases in a way that is safely preserved through the upgrade process.
Steps for customising language strings via overrides are as follows:
- Create a directory named
- Create or copy the language file you want to override. For example, to create an override for the English language you create
- Open the newly created file in your preferred editor.
- Start the file with a PHP tag
<?phpindicating PHP code is to be used.
- Enter the variable(s) you wish to override. For example, if you wanted to change “Welcome to our members area” you would locate the proper variable within
/path/to/whmcs/lang/english.phpand place it into the overrides english file with your preferred change:
$_LANG['headertext'] = "Welcome to our members area.";
$_LANG['headertext'] = "Welcome home!";
- For each variable you wish you change, repeat step #5. For example, a completed overrides file should look something like this:
<?php $_LANG['headertext'] = "Welcome home!"; $_LANG['addtocart'] = "Add to Basket"; $_LANG['cartproductaddons'] = "Product Extras";
- Save, and you’re done!