{"templateId":"markdown","sharedDataIds":{"sidebar":"sidebar-sidebars.yaml"},"props":{"metadata":{"markdoc":{"tagList":[]},"type":"markdown"},"seo":{"title":"Overrides","description":"Developer documentation for the WHMCS API — the","llmstxt":{"hide":false,"sections":[{"title":"Table of contents","includeFiles":["**/*"],"excludeFiles":[]}],"excludeFiles":[]}},"dynamicMarkdocComponents":[],"compilationErrors":[],"ast":{"$$mdtype":"Tag","name":"article","attributes":{},"children":[{"$$mdtype":"Tag","name":"Heading","attributes":{"level":1,"id":"overrides","__idx":0},"children":["Overrides"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["The language files are provided unencoded to allow you to view the language strings that WHMCS uses."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["However we do not recommend editing these files directly. Instead overrides should be used."]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Language file overrides allow you to customise language strings and phrases in a way that is safely preserved through the upgrade process."]},{"$$mdtype":"Tag","name":"Heading","attributes":{"level":2,"id":"using-overrides","__idx":1},"children":["Using Overrides"]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":["Steps for customising language strings via overrides are as follows:"]},{"$$mdtype":"Tag","name":"ol","attributes":{},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Create a directory named ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["overrides"]}," within the ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/path/to/whmcs/lang/"]}," directory."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Create or copy the language file you want to override. For example, to create an override for the English language you create ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/path/to/whmcs/lang/overrides/english.php"]}]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Open the newly created file in your preferred editor."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Start the file with a PHP tag ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["<?php"]}," indicating PHP code is to be used."]},{"$$mdtype":"Tag","name":"li","attributes":{},"children":["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 ",{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/path/to/whmcs/lang/english.php"]}," and place it into the overrides english file with your preferred change:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/path/to/whmcs/lang/english.php"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$_LANG['headertext'] = \"Welcome to our members area.\";\n"},"children":[]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/path/to/whmcs/lang/overrides/english.php"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"$_LANG['headertext'] = \"Welcome home!\";\n"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":6},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["For each variable you wish you change, repeat step #5. For example, a completed overrides file should look something like this:"]}]},{"$$mdtype":"Tag","name":"p","attributes":{},"children":[{"$$mdtype":"Tag","name":"code","attributes":{},"children":["/path/to/whmcs/lang/overrides/english.php"]}]},{"$$mdtype":"Tag","name":"CodeBlock","attributes":{"header":{"controls":{"copy":{}}},"source":"<?php\n$_LANG['headertext'] = \"Welcome home!\";\n$_LANG['addtocart'] = \"Add to Basket\";\n$_LANG['cartproductaddons'] = \"Product Extras\";\n"},"children":[]},{"$$mdtype":"Tag","name":"ol","attributes":{"start":7},"children":[{"$$mdtype":"Tag","name":"li","attributes":{},"children":["Save, and you're done!"]}]}]},"headings":[{"value":"Overrides","id":"overrides","depth":1},{"value":"Using Overrides","id":"using-overrides","depth":2}],"frontmatter":{"title":"Overrides","seo":{"title":"Overrides"}},"lastModified":"2026-08-03T17:00:42.000Z","pagePropGetterError":{"message":"","name":""}},"slug":"/languages/overrides","userData":{"isAuthenticated":false,"teams":["anonymous"]},"isPublic":true}