UNB Components Code Reference

UnbLocale::Prefer method

Prefer the specified locale.

public static function UnbLocale::Prefer ($code, $clientSorted = false);

Parameters

code

(string) Locale code

clientSorted  –  optional, default: false

(bool) true to sort language-only by client accepted language, false to sort by locale-provided importance.
(Only applies to language-only (two-letter) codes.)

Remarks

The locales are preferred in the order in that they have been passed to this function, the first added being regarded first, i.e. having the highest priority.

Member of class: UnbLocale

Implementation file: locale.class.php, line 144

© 2011 Yves Goergen. UNB Components Homepage. Reference generated on 2011-02-22.