Guide to the LiveAPI System - The cpanellangprint() Method

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.

  • 12 Users Found This Useful
Was this answer helpful?

Related Articles

The cPanel Interface

For  cPanel  &  WHM  version  58 Overview The cPanel interface is...

User Preferences

For cPanel & WHM version 58 Overview This document outlines how to access your cPanel...

Manage External Authentications

For cPanel & WHM version 58 Overview Manage credentials Additional documentation...

What is cPanelID?

In This Article:  Overview ServicesHow to get a cPanelID cPanelID External...

Guide to cPanel Interface Customization - cPanel Style Development

Introduction You can develop custom styles that modify the appearance of the cPanel interface....