Implement translation of selected text