mirror of
https://github.com/Combodo/iTop.git
synced 2026-02-13 07:24:13 +01:00
Search: better translation of search criteria in "natural language" for ISNULL function
SVN:trunk[5957]
This commit is contained in:
@@ -1803,6 +1803,7 @@ class FunctionExpression extends Expression
|
||||
$sVerb = '';
|
||||
switch ($this->m_sVerb)
|
||||
{
|
||||
case 'ISNULL':
|
||||
case 'NOW':
|
||||
$sVerb = $this->VerbToNaturalLanguage();
|
||||
break;
|
||||
@@ -1833,7 +1834,7 @@ class FunctionExpression extends Expression
|
||||
{
|
||||
$sOperation .= $sVerb;
|
||||
}
|
||||
return $sOperation;
|
||||
return '('.$sOperation.')';
|
||||
}
|
||||
|
||||
private function VerbToNaturalLanguage()
|
||||
|
||||
@@ -1515,6 +1515,7 @@ When associated with a trigger, each action is given an "order" number, specifyi
|
||||
Dict::Add('EN US', 'English', 'English', array(
|
||||
'Expression:Operator:AND' => ' AND ',
|
||||
'Expression:Operator:OR' => ' OR ',
|
||||
'Expression:Operator:=' => ': ',
|
||||
|
||||
'Expression:Unit:Short:DAY' => 'd',
|
||||
'Expression:Unit:Short:WEEK' => 'w',
|
||||
@@ -1526,4 +1527,5 @@ Dict::Add('EN US', 'English', 'English', array(
|
||||
'Expression:Unit:Long:MINUTE' => 'minute(s)',
|
||||
|
||||
'Expression:Verb:NOW' => 'now',
|
||||
'Expression:Verb:ISNULL' => ': undefined',
|
||||
));
|
||||
|
||||
@@ -1348,6 +1348,7 @@ Lors de l\'association à un déclencheur, on attribue à chaque action un numé
|
||||
Dict::Add('FR FR', 'French', 'Français', array(
|
||||
'Expression:Operator:AND' => ' ET ',
|
||||
'Expression:Operator:OR' => ' OU ',
|
||||
'Expression:Operator:=' => ' : ',
|
||||
|
||||
'Expression:Unit:Short:DAY' => 'j',
|
||||
'Expression:Unit:Short:WEEK' => 's',
|
||||
@@ -1359,4 +1360,5 @@ Dict::Add('FR FR', 'French', 'Français', array(
|
||||
'Expression:Unit:Long:MINUTE' => 'minute(s)',
|
||||
|
||||
'Expression:Verb:NOW' => 'maintenant',
|
||||
'Expression:Verb:ISNULL' => ' : non défini',
|
||||
));
|
||||
|
||||
Reference in New Issue
Block a user