$_language
$_language :string
language
I18n
provides internationalization tools like translation, browser language detection, etc.
loadTranslations()
loads translations
From: https://stackoverflow.com/questions/3770513/detect-browser-language-in-php#3771447
getBrowserLanguages(): array
detect the clients supported languages and return them ordered by preference
From: https://stackoverflow.com/questions/3770513/detect-browser-language-in-php#3771447
_getPluralForm(integer $n): integer
determines the plural form to use based on current language and given number
From: https://docs.translatehouse.org/projects/localization-guide/en/latest/l10n/pluralforms.html
integer | $n |
_getMatchingLanguage(array $acceptedLanguages,array $availableLanguages): string
compares two language preference arrays and returns the preferred match
From: https://stackoverflow.com/questions/3770513/detect-browser-language-in-php#3771447
array | $acceptedLanguages | |
array | $availableLanguages |
_matchLanguage(string $a,string $b): float
compare two language IDs and return the degree they match
From: https://stackoverflow.com/questions/3770513/detect-browser-language-in-php#3771447
string | $a | |
string | $b |