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.

Constants defined in and used by I18Nv2 (Previous) Get current/prior locale (Next)
Last updated: Tue, 16 Sep 2014 — 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:

User Notes:

There are no user contributed notes for this page.