Learn how to change the language of Lagom WHMCS One Step Order Form module.
english.phpfile and rename the newly copied directory with your desired language, for example
The language file
english.php is uncoded and can be freely modified. However, it is advised not to change this file itself, it is recommended to use overrides.
<?phpfor PHP code.
$_LANG['order_new_product'] = 'You’re almost there! Complete your order';
$_LANG['order_new_product'] = 'Complete the order';
All fields related to configurable options, including groups and suboptions, and order fields where you can enter a name or description can be translated to any language using the Smarty Langs method. Take a look below to learn how to do that easily.
italian.phpand add a new entry at the very bottom:
$_LANG['ToBeTranslated'] = "Titolo Tradotto";. As a reesult, you will receive "Titolo Tradotto" visible in the order form.
Important! It is possible to add translations from both the module level and directly in the WHMCS files. If you wish to add translation from the WHMCS level you will have to use a different variable that the one used in case of module translations, i.e.: $_LANG:
$LANG - without the "_" sign in the middle
$LANG['Titolo Tradotto'] = "Titolo Tradotto";