PEAR Manual
Prev |  | Next

# I18Nv2_Locale::setLocale()

I18Nv2_Locale::setLocale() -- Set locale

## Synopsis

    require_once 'I18Nv2/Locale.php';

``mixed I18Nv2_Locale::setLocale` (string $locale)`

## Description

Transforms the I18Nv2_Locale object to the specified locale.

## Parameter

string `$locale`

  the locale like en_US or de_DE

## Return value

Returns `TRUE` on success, PEAR_Error on failure.

Returns a PEAR_Error if the supplied locale was invalid.

## Note

This function can not be called statically.

Prev | Home | Next
I18Nv2_Locale::loadExtension() | Up | I18Nv2_Locale::setDefaults()