PEAR Manual
Prev |  | Next

# Translation2::getLang()

Translation2::getLang() -- get lang info

## Synopsis

    require_once 'Translation2.php';

``mixed Translation2::getLang` ([string $langID = `NULL` [, string $format = 'name']])`

## Description

Get some extra information about the language (its full name, the localized error text, ...)

## Parameter

string `$langID`

string `$format`

  ['name', 'meta', 'error_text', 'array']

## Return value

returns [string | array], depending on `$format`

## Note

This function can not be called statically.

Prev | Home | Next
Translation2::getDecorator() | Up | Translation2::getLangs()