Méthode |
Description |
|
collect_matches ( array &$possible, integer $site_id, Inpsyde\MultilingualPress\Common\Type\Translation $translation, array $user ) : void |
|
|
get_fallback_match ( ) : array |
|
|
get_possible_matches ( array $translations ) : array |
|
|
get_short_form ( string $long ) : string |
Get the first characters of a language code until an '-'. |
|
get_user_priority ( Inpsyde\MultilingualPress\Common\Type\Language $language, array $user ) : float |
|
|
parse_accept_header ( string $accept_header ) : array |
Inspect HTTP_ACCEPT_LANGUAGE and parse priority parameters. |
|
sort_priorities ( array $a, array $b ) : integer |
Helper to sort URLs by priority. |
|