previousI18Nv2 Constants (Previous) (Next) I18Nv2::lastLocalenext

View this page in Last updated: Sun, 18 Oct 2009
English | Brazilian Portuguese | Chinese | Dutch | French | German | Hungarian | Japanese | Polish | Russian | Spanish | Turkish

I18Nv2::setLocale

I18Nv2::setLocale() – Set locale

Synopsis

require_once 'I18Nv2.php';

mixed I18Nv2::setLocale ( string $locale , int $cat = LC_ALL )

Description

Set environment to the specified locale.

Set a locale:

<?php
1  
require_once 'I18Nv2.php';
2  I18Nv2::setLocale('en_GB');
?>

Parameter

string $locale

a valid locale like en_US or de_DE

integer $cat

the locale category - usually LC_ALL

Return value

Returns string used system locale or false on failure.

Note

This function should be called statically.

previousI18Nv2 Constants (Previous) (Next) I18Nv2::lastLocalenext

Download Documentation Last updated: Sun, 18 Oct 2009
Do you think that something on this page is wrong? Please file a bug report or add a note.
User Notes:
There are no user contributed notes for this page.