mirror of
https://gitlab.easter-eggs.com/ee/ldapsaisie.git
synced 2024-12-22 16:33:48 +01:00
LSsearch : Added translation support for predefinedFilters labels
This commit is contained in:
parent
0dd705b18a
commit
f7d45c390f
1 changed files with 7 additions and 1 deletions
|
@ -978,7 +978,13 @@ class LSsearch {
|
|||
return $this -> _canCopy;
|
||||
}
|
||||
elseif ($key=='predefinedFilters') {
|
||||
return ((is_array($this -> config['predefinedFilters']))?$this -> config['predefinedFilters']:array());
|
||||
$retval=array();
|
||||
if (is_array($this -> config['predefinedFilters'])) {
|
||||
foreach($this -> config['predefinedFilters'] as $filter => $label) {
|
||||
$retval[$filter]=__($label);
|
||||
}
|
||||
}
|
||||
return $retval;
|
||||
}
|
||||
else {
|
||||
throw new Exception('Incorrect property !');
|
||||
|
|
Loading…
Reference in a new issue