extract replacements for translation