Description

This function sets the interface language for an account.

Examples 


$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$new_language = $cpanel->api1('SetLang', 'setlang', array('en') ); // Call the function.

my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $new_language = $cpliveapi->api1('SetLang', 'setlang', ['en'] ); # Call the function.

 

<cpanel Module="SetLang::setlang( $FORM('language') )">
cpapi1 --user=username SetLang setlang en

This function does not return output.

Parameters

ParameterTypeDescriptionPossible ValuesExample
languagestring

Required

The language to set.

Any valid two-letter ISO-3166 code.en

Returns

This function does not return output.