The `t()` function takes a third hash parameter.
So instead of `t('files', 'message {p1}, {p2}').replace(...)` use `t('files', 'message {p1}, {p2}', {p1: value1, p2: value2})`