I18Nv2_Locale::setLocale()

I18Nv2_Locale::setLocale()  -- Set locale

概要

require_once 'I18Nv2/Locale.php';

mixed I18Nv2_Locale::setLocale (string $locale)

説明

Transforms the I18Nv2_Locale object to the specified locale.

パラメータ

string $locale

the locale like en_US or de_DE

返り値

成功時には TRUE、 失敗時には PEAR_Error を返します。

Returns a PEAR_Error if the supplied locale was invalid.

注意

この関数は、スタティックにコールする ことはできません。