Description
This function displays a locale's name in the user's language.
Warning:
We strongly recommend that you use the following UAPI function instead of this function:
-
Locale::get_attributes
— This function retrieves information about the user's current locale setting.
Examples
Note:
Use cPanel's API Shell interface (Home >> Advanced >> API Shell) to directly test cPanel API calls.
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
locale |
string |
The locale's name. This parameter defaults to the user's locale. |
Any available locale. |
French |
Returns
Return |
Type |
Description |
Possible values |
Example |
name |
string |
The locale's name. |
Any available locale, in the authenticated user's language. |
French |
reason |
string |
A reason for failure. Note:
This function only returns areason value if there was an error.
|
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded.
|
|
1 |