Description
This function retrieves a user's locale's name in that locale'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
This function does not accept parameters.
Returns
Return |
Type |
Description |
Possible values |
Example |
name |
string |
The authenticated user's locale, in the locale's language.
|
Any available locale. |
English |
reason |
string |
A reason for failure. Note:
This function only returns a reasonvalue if there was an error.
|
A string that describes the error. |
This is an error message. |
result |
Boolean |
Whether the function succeeded.
|
|
1 |