I18Nv2::lastLocale() – Get current/prior locale


require_once 'I18Nv2.php';

string I18Nv2::lastLocale ( int $prior = 0 , bool $full = false )


Retrieve kinda history of locales that have been already set.

This only works, if I18Nv2::setLocale() has already been called.


integer $prior

if 0, the current otherwise n prior to the current locale

boolean $full

whether to return the array with locale, language and actually used system locale

Return value

Returns mixed prior locale.


This function should be called statically.


See also I18Nv2::setLocale().

Set locale (Previous) Get several locale specific information (Next)
Last updated: Sun, 04 Oct 2015 — 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.