WHMCS Firewall can be translated to any language. To enable this, text used throughout the WHMCS Firewall module is stored within language files.
English is the default language that comes with WHMCS Firewall.
Adding your language
We rely on the dedication and generosity of our users for contributing translations, as we find real life translations are a much higher quality compared with using automated translation systems as some softwares do. So if you have any suggestions for improvements, or a new language file you are willing to contribute, please get in touch.
Adding a New Language
If a language you operate in is not available as standard, then you can create your own translation. Here’s how:
Begin by opening an existing language file
1. Save this file with a new name – the name should only consist of a-z/0-9 characters and end with the extension “.php”
2. Once the file has been created, you can then begin going through and translating the lines within it
$_LANG[‘accountinfo’] = “Account Information”;
Be careful not to delete any of the quotation marks (“) around the text strings or the semi-colons on the ends of each line (;).
Also, should you want to use a quote character (“) within your translated text, you must escape it – for example: \” The language files are written in PHP syntax so valid PHP code must be maintained.
By default the language files in WHMCS use the UTF-8 encoding without a Byte Order Marker character at the start. When modifying these files it is important to maintain the same encoding.
If you have chosen to change the system charset setting to something other than UTF-8 (eg. iso-8859-1) then the language files will need to be re-saved with ANSI encoding without a Byte Order Marketer. Most text editors have this option (including Notepad).
Overriding Language Strings
The language files are provided unencoded to allow you to view the language strings that WHMCS Firewall uses.