simplify and fix selection translation (babelfish plugin)