also this on line 284 method get_post_parent_query_string
It will allow you to swich the language while a filter is applied, and still show the child posts of the translated post filter.
if (isset($_GET['post_parent']))
$retv = intval($_GET['post_parent']);
else if (isset($_COOKIE['pages-children-'. $_GET['post_type'] .'-parent-id']))
$retv = intval($_COOKIE['pages-children-'. $_GET['post_type'] .'-parent-id']);
else
$retv = 0;
if (function_exists('icl_object_id')) {
$xlat = icl_object_id($retv, $_GET['post_type'], isset($_GET['lang']) ? $_GET['lang'] : null);
}
return $xlat;
ps, you will probably want to include other parameters, this is a harcoded way to add the lang parameter, other plugins may use other get variables you should take care of that in a better way.