CanadianDeer Posted May 17, 2019 Share Posted May 17, 2019 Hello, When i confirm my domain name registration in my form it's write in english. But i'm french and i want to translate this in french. Where i can to translate this? This is my url when i here on this page: https://lounce.hosting/cart.php?a=confdomains Thank you 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted May 19, 2019 Share Posted May 19, 2019 On 17/05/2019 at 14:54, CanadianDeer said: When i confirm my domain name registration in my form it's write in english. But i'm french and i want to translate this in french. Where i can to translate this? that output is from the Additional Domain Fields settings for .fr domains... https://docs.whmcs.com/Additional_Domain_Fields Quote Editing an Existing Field Begin by copying and pasting the field definition from the /resources/domains/dist.additionalfields.php file into your custom /resources/domains/additionalfields.php file Remove any key/value pairs for parameters you do not wish to customise Customise the remaining options as desired (in the example below the option values are being customised to just the 3 most commonly used options) Options can have a Display Name defined by adding the "|" symbol followed by the desired display name - e.g., "1|Individual" the docs page should walk you through the whole process - but just remember that it's better to create a custom file, additionalfields.php in the resources/domains folder, as specified above and then modifying your fields, rather than modifying the existing dist.additionalfields.php - which would work fine, but you'd lose all your modifications after updating WHMCS (which shouldn't occur if you use the method specified in the docs). <?php // .FR $additionaldomainfields[".fr"][] = array("Name" => "Legal Type", "LangVar" => "fr_legaltype", "Type" => "dropdown", "Options" => "Individual,Company", "Default" => "Individual",); $additionaldomainfields[".fr"][] = array("Name" => "Info", "LangVar" => "fr_info", "Type" => "display", "Default" => "{$_LANG['enomfrregistration']['Heading']} <ul> <li><strong>{$_LANG['enomfrregistration']['French Individuals']['Name']}</strong>: {$_LANG['enomfrregistration']['French Individuals']['Requirements']}</li> <li><strong>{$_LANG['enomfrregistration']['EU Non-French Individuals']['Name']}</strong>: {$_LANG['enomfrregistration']['EU Non-French Individuals']['Requirements']}</li> <li><strong>{$_LANG['enomfrregistration']['French Companies']['Name']}</strong>: {$_LANG['enomfrregistration']['French Companies']['Requirements']}</li> <li><strong>{$_LANG['enomfrregistration']['EU Non-French Companies']['Name']}</strong>: {$_LANG['enomfrregistration']['EU Non-French Companies']['Requirements']}</li> </ul> <em>{$_LANG['enomfrregistration']['Non-EU Warning']}</em>",); $additionaldomainfields[".fr"][] = array("Name" => "Birthdate", 'LangVar' => 'fr_indbirthdate', "Type" => "text","Size" => "16","Default" => "1900-01-01","Required" => false); $additionaldomainfields[".fr"][] = array("Name" => "Birthplace City", 'LangVar' => 'fr_indbirthcity', "Type" => "text","Size" => "25","Default" => "","Required" => false); $additionaldomainfields[".fr"][] = array("Name" => "Birthplace Country", 'LangVar' => 'fr_indbirthcountry', "Type" => "text", "Size" => "2", "Default" => "", "Required" => false, "Description" => "Please enter your country code (eg. FR, IT, etc...)"); $additionaldomainfields[".fr"][] = array("Name" => "Birthplace Postcode", 'LangVar' => 'fr_indbirthpostcode', "Type" => "text","Size" => "6","Default" => "","Required" => false); $additionaldomainfields[".fr"][] = array("Name" => "SIRET Number", 'LangVar' => 'fr_cosiret', "Type" => "text","Size" => "50","Default" => "","Required" => false); $additionaldomainfields[".fr"][] = array("Name" => "DUNS Number", 'LangVar' => 'fr_coduns', "Type" => "text","Size" => "50","Default" => "","Required" => false); $additionaldomainfields[".fr"][] = array("Name" => "VAT Number", 'LangVar' => 'fr_vat', "Type" => "text","Size" => "50","Default" => "","Required" => false); $additionaldomainfields[".fr"][] = array("Name" => "Trademark Number", 'LangVar' => 'fr_trademarknumber', "Type" => "text","Size" => "50","Default" => "","Required" => false); $additionaldomainfields[".re"] = $additionaldomainfields[".fr"]; $additionaldomainfields[".pm"] = $additionaldomainfields[".fr"]; $additionaldomainfields[".tf"] = $additionaldomainfields[".fr"]; $additionaldomainfields[".wf"] = $additionaldomainfields[".fr"]; $additionaldomainfields[".yt"] = $additionaldomainfields[".fr"]; and then just change Birthdate, Birthplace City etc to French and save. 1 Quote Link to comment Share on other sites More sharing options...
CanadianDeer Posted May 20, 2019 Author Share Posted May 20, 2019 Thank you so much Brian for your help! 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.