Nanox Flow Posted June 21, 2021 Share Posted June 21, 2021 Hi I would like to know how I can change WHMCS Language name, i have multiples languages English, Portuguese-Br and so on, i want replace language name to country name, for e.g English to USA, Portugue-br to Brazil... Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 22, 2021 Share Posted June 22, 2021 18 hours ago, Nanox Devz said: I would like to know how I can change WHMCS Language name, i have multiples languages English, Portuguese-Br and so on, i want replace language name to country name, for e.g English to USA, Portugue-br to Brazil... 0 Quote Link to comment Share on other sites More sharing options...
Nanox Flow Posted June 22, 2021 Author Share Posted June 22, 2021 Hi Thanks, but on this article i have only found example of 1 Language, i want for multiples at same time, can you send me the ready made hook Thanks 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted June 22, 2021 Share Posted June 22, 2021 1 hour ago, Nanox Devz said: Thanks, but on this article i have only found example of 1 Language, i want for multiples at same time, can you send me the ready made hook yeah sure cos the entire WHMCS development here is at your beck and call just waiting to spend their time writing hooks for you.... sighs... you're months too late for that to occur. i'll add another language option to each - all you have to do is just copy the if statements and add how many you need for your languages. <?php /** * Change Hindi Language Localised Name * @author brian! */ function locales_hook($vars) { $mylocal = $vars['locales']; foreach ($mylocal as $key => $value) { if ($value["language"] == "english") { $mylocal[$key]["localisedName"] = "USA"; } if ($value["language"] == "french") { $mylocal[$key]["localisedName"] = "France"; } } $activelocale = $vars['activeLocale']; if ($activelocale["language"] == "english") { $activelocale["localisedName"] = "USA"; } if ($activelocale["language"] == "french") { $activelocale["localisedName"] = "France"; } return array("locales" => $mylocal, "activeLocale" => $activelocale); } add_hook("ClientAreaPage", 1, "locales_hook"); 0 Quote Link to comment Share on other sites More sharing options...
Nanox Flow Posted June 22, 2021 Author Share Posted June 22, 2021 Thanks, and how I can add a language translator? 0 Quote Link to comment Share on other sites More sharing options...
Quard Posted September 21, 2021 Share Posted September 21, 2021 (edited) Why whmcs using two format of language template? As i can see two method we can fire same string {$LANG.accountSecurity} and {lang key='accountSecurity'} What is the latest method? Edited September 21, 2021 by Quard 0 Quote Link to comment Share on other sites More sharing options...
Quard Posted September 23, 2021 Share Posted September 23, 2021 Any reply/ 0 Quote Link to comment Share on other sites More sharing options...
Quard Posted September 27, 2021 Share Posted September 27, 2021 No body? 😕 0 Quote Link to comment Share on other sites More sharing options...
Quard Posted October 6, 2021 Share Posted October 6, 2021 Why whmcs using two format of language template? As i can see two method we can fire same string {$LANG.accountSecurity} and {lang key='accountSecurity'} What is the latest method? 0 Quote Link to comment Share on other sites More sharing options...
pRieStaKos Posted October 6, 2021 Share Posted October 6, 2021 57 minutes ago, Quard said: Why whmcs using two format of language template? As i can see two method we can fire same string {$LANG.accountSecurity} and {lang key='accountSecurity'} What is the latest method? Latest method is {lang key='accountSecurity'} but both are working as well. It's Smarty new method. You can use whatever you like. 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.