Child pages
  • Guide to the LiveAPI System - The cpanellangprint() Method
Skip to end of metadata
Go to start of metadata

 

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

// Retrieve the "key" value in the appropriate language.
$cpanel->cpanellangprint('key');

LiveAPI Perl Module

# Retrieve the "key" value in the appropriate language.
$cpliveapi->cpanellangprint('key');

Parameters

ParameterTypeDescriptionPossible valuesExample
keystringA 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.