Jump to content

Language Change

Recommended Posts

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...


Link to comment
Share on other sites

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. wave-smiley.gif

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.


* 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");
Link to comment
Share on other sites

  • 2 months later...
  • 2 weeks later...
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.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated