Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Arabic: error messages for confirmation in ar.yml #715

Open
pion139 opened this issue Feb 18, 2017 · 0 comments
Open

Arabic: error messages for confirmation in ar.yml #715

pion139 opened this issue Feb 18, 2017 · 0 comments

Comments

@pion139
Copy link

pion139 commented Feb 18, 2017

Hi folks,
I am new here, so please don't blame me if this is not the right place to submit my question/bug report.
In the ar.yml file, the format of error messages is set as:

errors:
  format: "%{message}"

this works fine for most of the messages, however, for confirmation it looks like:

 confirmation: محتوى %{attribute} لا يتوافق مع %{attribute}

which leads to error messages looking like
"password content doesn't match password"
this is obviously a wrong error message, cause the right one should read something like:
"password confirmation doesn't match password"

I checked the en.yml file, and there the code looks like:

errors:
  format: "%{attribute} %{message}"
...
    confirmation: doesn't match %{attribute}

which magically works fine!!! (somehow rails resolves that the %{attribute} in the format and the %{attribute} in the message are two different fields, in Arabic, %{attribute} appears twice in the message, which leads to the wrong error message.)

Is there a way to fix this issue in the ar.yml without rewriting all error messages with the format set to "%{attribute} %{message}"?

@digitalfrost digitalfrost changed the title error messages for confirmation in ar.yml Arabic: error messages for confirmation in ar.yml Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant