Child pages
  • cPanel API 1 Functions - SetLang::listlangsopt

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Description

Excerpt

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


Include Page
LIB:_cPanelAPI1NoEquivalent
LIB:_cPanelAPI1NoEquivalent

Panel
bgColor#F2F2F2
borderStylenone

Examples 


Panel
bgColor#FFFFFF
borderStylenone
Expand
titleLiveAPI PHP Class
Code Block
languagephp
linenumberstrue
$cpanel = new CPANEL(); // Connect to cPanel - only do this once.
$language_list = $cpanel->api1('SetLang', 'listlangsopt'); // Call the function.

Include Page
LIB:_LiveAPIPHPLink
LIB:_LiveAPIPHPLink

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

Include Page
LIB:_LiveAPIPerlLink
LIB:_LiveAPIPerlLink

Expand
titlecPanel Tag System (deprecated)

Include Page
LIB:_cPanelTagsWarning
LIB:_cPanelTagsWarning

Code Block
languagetext
<cpanel Module="SetLang::listlangsopt()">
Expand
titleCommand Line
Code Block
languagebash
cpapi1 --user=username SetLang listlangsopt

Include Page
LIB:_cPanelAPI1CLINote
LIB:_cPanelAPI1CLINote

Expand
titleOutput (HTML)
Code Block
languagexml
<option
 value="ar" dir="rtl">Arabic 
(&#1575;&#1604;&#1593;&#1585;&#1576;&#1610;&#1577;)</option>
 <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>
 <option
 value="ru" dir="ltr">Russian 
(&#1088;&#1091;&#1089;&#1089;&#1082;&#1080;&#1081;)</option>
 <option value="zh" dir="ltr">Chinese (&#20013;&#25991;)</option>

   

Parameters

This function does not accept parameters.

Returns

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