|
@@ 65-72 (lines=8) @@
|
| 62 |
|
} |
| 63 |
|
$this->next(); |
| 64 |
|
/** @noinspection PhpMissingBreakStatementInspection */ |
| 65 |
|
case 1: |
| 66 |
|
$forcedLang = $this->config->getSystemValue('force_language', false); |
| 67 |
|
if(is_string($forcedLang) |
| 68 |
|
&& ($truncated = $this->getTruncatedLanguage($forcedLang)) !== $forcedLang |
| 69 |
|
) { |
| 70 |
|
return $truncated; |
| 71 |
|
} |
| 72 |
|
$this->next(); |
| 73 |
|
/** @noinspection PhpMissingBreakStatementInspection */ |
| 74 |
|
case 2: |
| 75 |
|
$userLang = $this->config->getUserValue($this->user->getUID(), 'core', 'lang', null); |
|
@@ 81-88 (lines=8) @@
|
| 78 |
|
} |
| 79 |
|
$this->next(); |
| 80 |
|
/** @noinspection PhpMissingBreakStatementInspection */ |
| 81 |
|
case 3: |
| 82 |
|
$userLang = $this->config->getUserValue($this->user->getUID(), 'core', 'lang', null); |
| 83 |
|
if(is_string($userLang) |
| 84 |
|
&& ($truncated = $this->getTruncatedLanguage($userLang)) !== $userLang |
| 85 |
|
) { |
| 86 |
|
return $truncated; |
| 87 |
|
} |
| 88 |
|
$this->next(); |
| 89 |
|
case 4: |
| 90 |
|
return $this->config->getSystemValue('default_language', 'en'); |
| 91 |
|
/** @noinspection PhpMissingBreakStatementInspection */ |
|
@@ 92-97 (lines=6) @@
|
| 89 |
|
case 4: |
| 90 |
|
return $this->config->getSystemValue('default_language', 'en'); |
| 91 |
|
/** @noinspection PhpMissingBreakStatementInspection */ |
| 92 |
|
case 5: |
| 93 |
|
$defaultLang = $this->config->getSystemValue('default_language', 'en'); |
| 94 |
|
if(($truncated = $this->getTruncatedLanguage($defaultLang)) !== $defaultLang) { |
| 95 |
|
return $truncated; |
| 96 |
|
} |
| 97 |
|
$this->next(); |
| 98 |
|
default: |
| 99 |
|
return 'en'; |
| 100 |
|
} |