The Lagom WHMCS Website Builder supports multiple languages, allowing your website to serve a diverse range of customers. This section explains how to manage and customize language settings to meet your needs.
Lagom WHMCS Website Builder partially uses its own translation strings. Where possible, we have applied strings provided by the WHMCS system (opens new window) and by our Lagom WHMCS Client Theme but there are places where we had to create custom strings.
For effective translation management within the Lagom WHMCS Website Builder, it is recommended to use language overrides. This ensures that your custom translations are not overwritten by future updates, maintaining the integrity of your personalized language settings.
"Overrides" have been implemented to let you override the existing Lagom WHMCS Website Builder translations or to create new translation strings that then can be used in the Lagom WHMCS Website Builder. Here, you will find detailed instructions on how to access the override directory, create override files, and define custom language strings that will be exclusive to your installation.
/templates/lagom2/core/lang/cms and create the overrides folder. All files created in the overrides folder will not be overwritten by future Lagom updates.<?php indicating that the PHP code will be used./templates/lagom2/core/lang/cms/english.php file: 'tld' => [
'register_now' => 'Register Now',
Then place it in the overrides English file along with your preferred change:
<?php
return [
'tld' =>[
'register_now' => 'Register Now',
],
];
<?php
return [
'key_1' =>[
'key_2' => 'Your custom translation string',
],
];
Your new translation can work in the Lagom WHMCS Website Builder files using the {$rslang->trans(key_1.key_2')} variable.
The language system in the Lagom WHMCS Website Builder allows you to add your own additional language translations. Before you begin, ensure that the language is properly created and configured in your WHMCS system. For detailed instructions on creating and customizing language files within WHMCS, visit Creating and Customizing Language Files (opens new window). Next, we recommend starting by duplicating one of the existing language files.
/templates/lagom2/core/lang/cms and duplicate the english.php file..php.