Our documentation is getting an overhaul! We would like your input! Click here to take a look at the beta launch of our new documentation site! Only cPanel & WHM version 82 documentation exists on our beta at this time. 84 will be added to the new site soon! Leave your feedback here: https://go.cpanel.net/docsfeedback
cPanel API 1 Functions - SetLang::listlangsopt - Developer Documentation - cPanel Documentation
Child pages
  • cPanel API 1 Functions - SetLang::listlangsopt
Skip to end of metadata
Go to start of metadata


This function lists the interface languages that are available to an account.


  • We removed this function in cPanel & WHM version 82.
  • cPanel API 1 is deprecated. Do not use this function. Instead, we strongly recommend that you use the following newer functions:


 LiveAPI PHP Class
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$language_list = $cpanel->api1('SetLang', 'listlangsopt'); // Call the function.


For more information, read our Guide to the LiveAPI System.

 LiveAPI Perl Module
my $cpliveapi = Cpanel::LiveAPI->new(); # Connect to cPanel - only do this once.
my $language_list = $cpliveapi->api1('SetLang', 'listlangsopt'); # Call the function.


For more information, read our Guide to the LiveAPI System.

 cPanel Tag System (deprecated)


In cPanel & WHM version 11.30 and later, cPanel tags are deprecated. We provide this example to help developers move from the old cPanel tag system to our LiveAPI system. We strongly recommend that you only use the LiveAPI system to call the cPanel APIs.

<cpanel Module="SetLang::listlangsopt()">
 Command Line
cpapi1 --user=username SetLang listlangsopt


  • You must URI-encode these values.
  • username represents your account-level username.
  • For more information and additional output options, read our Guide to cPanel API 1 documentation or run the cpapi1 --help command.
  • If you run CloudLinux™, you must use the full path of the cpapi1 command:


 Output (HTML)
 value="ar" dir="rtl">Arabic 
 <option value="bn" dir="ltr">Bengali (&#2476;&#2494;&#2434;&#2482;&#2494;)</option>
 <option value="de" dir="ltr">German (Deutsch)</option>
 <option value="en" selected="selected" dir="ltr">English</option>
 <option value="es" dir="ltr">Spanish (español)</option>
 <option value="fr" dir="ltr">French (français)</option>
 <option value="hi" dir="ltr">Hindi (&#2361;&#2367;&#2344;&#2381;&#2342;&#2368;)</option>
 <option value="ja" dir="ltr">Japanese (&#26085;&#26412;&#35486;)</option>
 <option value="nl" dir="ltr">Dutch (Nederlands)</option>
 <option value="pt" dir="ltr">Portuguese (português)</option>
 <option value="pt_br" dir="ltr">Brazilian Portuguese (português do Brasil)</option>
 value="ru" dir="ltr">Russian 
 <option value="zh" dir="ltr">Chinese (&#20013;&#25991;)</option>



This function does not accept parameters.


This function returns HTML that contains a list of interface languages.