Description
The cpanellangprint()
method is a wrapper for the deprecated lang system's langprint
tag. The lang system used the langprint
tag to retrieve the appropriate translated version of a lang key from the user's selected language.
Warning:
This method and the lang system are deprecated. We strongly recommend that you update all of your custom code to use the locale system.
Example
LiveAPI PHP Class
1
2
|
// Retrieve the "key" value in the appropriate language. $cpanel ->cpanellangprint( 'key' ); |
LiveAPI Perl Module
1
2
|
# Retrieve the "key" value in the appropriate language. $cpliveapi ->cpanellangprint( 'key' ); |
Parameters
Parameter |
Type |
Description |
Possible values |
Example |
key |
string |
A lang system key. |
A valid lang system key. Generally, this is either a variable, or the key's string in English. |
key |
Returns
This method returns the key's value from the language file for the cPanel user's current locale.