static function getPriorityName($value)
{
switch ($value) {
case 6:
return _x('priority', 'Major');
case 5:
return _x('priority', 'Very high');
case 4:
return _x('priority', 'High');
case 3:
return _x('priority', 'Medium');
case 2:
return _x('priority', 'Low');
case 1:
return _x('priority', 'Very low');
// No standard one :
// No standard one :
case 0:
return _x('priority', 'All');
case -1:
return _x('priority', 'At least very low');
case -2:
return _x('priority', 'At least low');
case -3:
return _x('priority', 'At least medium');
case -4:
return _x('priority', 'At least high');
case -5:
return _x('priority', 'At least very high');
default:
// Return $value if not define
return $value;
}
}