Home
last modified time | relevance | path

Searched refs:langCode (Results 1 – 1 of 1) sorted by relevance

/web-php/src/
H A DLangChooser.php40 $langCode = $this->normalize(htmlspecialchars($langParam, ENT_QUOTES, 'UTF-8'));
41 $explicitly_specified = $langCode;
42 if ($this->isAvailableLanguage($langCode)) {
43 return [$langCode, $explicitly_specified];
152 private function normalize(string $langCode): string argument
155 $langCode = strtolower(htmlspecialchars($langCode));
158 if ($langCode == 'pt_br') {
161 return $langCode;
164 private function isAvailableLanguage(string $langCode): bool argument
166 … return isset($this->availableLanguages[$langCode]) && !isset($this->inactiveLanguages[$langCode]);

Completed in 4 milliseconds