making gen_impfunc work with the new doctree
update id translation strings