adds a function to translate placeholders