I noticed that in the i18n rails guide, they have the following code:
en:
activerecord:
errors:
template:
header:
one: "1 error prohibited this %{model} from being saved"
other: "%{count} errors prohibited this %{model} from being saved"
body: "There were problems with the following fields:"
What do the %{...} mean? How is this different from #{...}?
If you read the guide a little more, you’ll come across the Passing variables to translations section:
and the Interpolation section:
So the
%{...}stuff doesn’t have anything to do with YAML, that’s I18n’s way of handling variable interpolation in the messages.