Learn how to change the language of Lagom WHMCS Smart Order Form module.
/modules/addons/LagomOrderForm/langs folder.english.php file and rename the newly copied directory with your desired language, for example italian.php.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.
overrides within the ~/lang/ directory.~/lang/overrides/english.php.<?php for PHP code.For example:
~/lang/english.php
$_LANG['order_new_product'] = 'You’re almost there! Complete your order';
~/lang/overrides/english.php
$_LANG['order_new_product'] = 'Complete the order';
You can translate configurable options, groups, suboptions, and order fields using language variables. This allows you to display different text depending on the selected language.
Open the field you want to translate in the addon, for example a configurable option (Lagom Smart Order Form → Display Manager → Configurable Options).
Instead of entering plain text, use a language variable, for example:
{$_LANG.ToBeTranslated}
Open your language file, for example italian.php, and add a new entry:
$_LANG['ToBeTranslated'] = "Titolo Tradotto";
The translated value will now be displayed in the order form.
When adding translations, you can use two types of language variables.
{$_LANG.key}
Use this when translating content managed inside the addon. These values are defined in module language files located in /modules/addons/LagomOrderForm/langs.
{$LANG.key}
Use this when translating content using standard WHMCS language files, located in /lang/.
← Orders Custom Hooks →