mirror of
https://github.com/the-djmaze/snappymail.git
synced 2026-09-09 17:37:02 +03:00
Different solution to use Nextcloud languages #1293
This commit is contained in:
parent
8984726fd7
commit
e56415aa51
5 changed files with 25 additions and 20 deletions
|
|
@ -23,7 +23,9 @@ trait Localization
|
|||
$sLanguage = $this->ValidateLanguage($this->detectUserLanguage($bAdmin), $sLanguage, false);
|
||||
}
|
||||
}
|
||||
return $this->ValidateLanguage($sLanguage, '', $bAdmin) ?: 'en';
|
||||
$sHookLanguage = $sLanguage = $this->ValidateLanguage($sLanguage, '', $bAdmin) ?: 'en';
|
||||
$this->Plugins()->RunHook('filter.language', array(&$sHookLanguage, $bAdmin));
|
||||
return $this->ValidateLanguage($sHookLanguage, $sLanguage, $bAdmin);
|
||||
}
|
||||
|
||||
public function ValidateLanguage(string $sLanguage, string $sDefault = '', bool $bAdmin = false, bool $bAllowEmptyResult = false): string
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue