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

Return value

Returns TRUE on success, PEAR_Error on failure.

Returns a PEAR_Error if the supplied locale was invalid.


This function can not be called statically.

Loads corresponding locale extension (Previous) Set defaults (Next)
Last updated: Sun, 22 Jan 2017 — Download Documentation
Do you think that something on this page is wrong? Please file a bug report or add a note.
View this page in:
  • English

User Notes:

There are no user contributed notes for this page.