Index: branches/5.2.x/core/kernel/db/dblist.php =================================================================== diff -u -N -r16096 -r16298 --- branches/5.2.x/core/kernel/db/dblist.php (.../dblist.php) (revision 16096) +++ branches/5.2.x/core/kernel/db/dblist.php (.../dblist.php) (revision 16298) @@ -1,6 +1,6 @@ getCalculatedFields($aggregated); if ( is_array($fields) && count($fields) > 0 ) { + $fields = str_replace('%2$s', $this->Application->GetVar('m_lang'), $fields); + foreach ($fields as $field_name => $field_expression) { $clause = preg_replace('/(\\(+)[(,` ]*' . $field_name . '[` ]{1}/', '\1 (' . $field_expression . ') ', $clause); $clause = preg_replace('/[,` ]{1}' . $field_name . '[` ]{1}/', ' (' . $field_expression . ') ', $clause);