We have a new documentation site for cPanel & WHM! You can find our new documentation site at docs.cpanel.net.

We will continue to maintain our API documentation on this server.

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



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.


This method and the lang system are deprecated. We strongly recommend that you update all of your custom code to use the locale system.


LiveAPI PHP Class

// Retrieve the "key" value in the appropriate language.

LiveAPI Perl Module

# Retrieve the "key" value in the appropriate language.


ParameterTypeDescriptionPossible valuesExample
keystringA lang system key.

A valid lang system key.

Generally, this is either a variable, or the key's string in English.



This method returns the key's value from the language file for the cPanel user's current locale.