Home
last modified time | relevance | path

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

/web-php/src/I18n/
H A DLanguages.php66 public function convert(string $languageCode): string argument
68 return match ($languageCode) {
71 default => array_key_exists($languageCode, self::LANGUAGES) ? $languageCode : 'en',
/web-php/
H A Dmy.php20 $userPreferences->languageCode = $_POST['my_lang'];
31 elseif (isset($langs[$userPreferences->languageCode])) {
34 $options[] = '<option value="' . $userPreferences->languageCode . '" selected>' .
35 $langs[$userPreferences->languageCode] . "</option>\n";
38 unset($langs[$userPreferences->languageCode]);
/web-php/src/
H A DUserPreferences.php26 public string $languageCode = '', argument
34 $this->languageCode = '';
50 $this->languageCode = $preferences[0] ?? '';
82 $preferences = [$this->languageCode, $this->searchType, '', $this->isUserGroupTipsEnabled];
/web-php/tests/Unit/
H A DUserPreferencesTest.php19 string $languageCode, argument
28 self::assertSame($languageCode, $userPreferences->languageCode);
/web-php/tests/Unit/I18n/
H A DLanguagesTest.php18 public function testConvert(string $languageCode, string $expected): void argument
20 self::assertSame($expected, (new Languages())->convert($languageCode));
/web-php/releases/8.4/
H A Drelease.inc52 private string $languageCode;
55 public function __construct(string $languageCode, string $countryCode)
57 $this->setLanguageCode($languageCode);
63 return $this->languageCode;
66 public function setLanguageCode(string $languageCode): void
68 $this->languageCode = $languageCode;
83 [$languageCode, $countryCode] = explode('_', $combinedCode, 2);
85 $this->setLanguageCode($languageCode);
91 return \sprintf("%s_%s", $this->languageCode, $this->countryCode);
111 public string $languageCode;
[all …]
/web-php/include/
H A Dlangchooser.inc41 …s::LANGUAGES, Languages::INACTIVE_ONLINE_LANGUAGES, $userPreferences->languageCode, default_langua…

Completed in 13 milliseconds