Learn how to change the language of Lagom WHMCS One Step 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';
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.
{$_LANG.ToBeTranslated}
italian.php
and 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:
WHMCS:
$LANG
- without the "_" sign in the middle
Exemplary entries:
{$LANG.Titolo Tradotto}
$LANG['Titolo Tradotto'] = "Titolo Tradotto";