Index: branches/RC/core/kernel/kbase.php =================================================================== diff -u -r8929 -r9027 --- branches/RC/core/kernel/kbase.php (.../kbase.php) (revision 8929) +++ branches/RC/core/kernel/kbase.php (.../kbase.php) (revision 9027) @@ -563,8 +563,10 @@ if( isset($field_options['options_sql']) ) { // replace with query result + $language_id = $this->Application->GetVar('m_lang'); $select_clause = '`'.$field_options['option_title_field'].'`,`'.$field_options['option_key_field'].'`'; - $sql = sprintf($field_options['options_sql'], $select_clause, $this->Application->GetVar('m_lang')); + $sql = sprintf($field_options['options_sql'], $select_clause, $language_id); + $sql = str_replace('%2$s', $language_id, $sql); // replace langauge in field names $options_hash = getArrayValue($field_options,'options'); if($options_hash === false) $options_hash = Array();