Improved the translation feature, now partial lines get properly changed.